X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=blueprints%2Fiotgateway%2Fplaybooks%2Froles%2Fegallery-munomode-edge%2Ftasks%2Finstall.yml;fp=blueprints%2Fiotgateway%2Fplaybooks%2Froles%2Fegallery-munomode-edge%2Ftasks%2Finstall.yml;h=fafeae9a07532d59f8bc51a359621ab212da326d;hb=233fedcbae7166783277ed538d454b106b9d52ae;hp=0000000000000000000000000000000000000000;hpb=8d3b452ed742e3b9e3e7e5ed9633038437fbdca9;p=eliot.git diff --git a/blueprints/iotgateway/playbooks/roles/egallery-munomode-edge/tasks/install.yml b/blueprints/iotgateway/playbooks/roles/egallery-munomode-edge/tasks/install.yml new file mode 100644 index 0000000..fafeae9 --- /dev/null +++ b/blueprints/iotgateway/playbooks/roles/egallery-munomode-edge/tasks/install.yml @@ -0,0 +1,57 @@ +# Copyright 2021 Huawei Technologies Co., Ltd. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +--- +### MUNO edge installation ### + +- name: Check edgegallery tar ball present + stat: + path: /tmp/eg_download/deploy/EdgeGallery-v1.1.1-edge-x86.tar.gz + register: edge_tar_var + +- name: Download 1.1 edgegallery x86 edge +# yamllint disable rule:line-length + command: wget https://edgegallery.obs.cn-east-3.myhuaweicloud.com/releases/v1.1.1/x86/EdgeGallery-v1.1.1-edge-x86.tar.gz +# yamllint disable rule:line-length + args: + chdir: /tmp/eg_download/deploy/ + when: not edge_tar_var.stat.exists + +- name: Untar Edgegallery offline edge tar file + command: tar -xvf EdgeGallery-v1.1.1-edge-x86 + args: + chdir: /tmp/eg_download/deploy/ + when: not edge_tar_var.stat.exists + +- name: Set inventory file for muno edge +# yamllint disable rule:line-length + command: scp root@{{ OCD_IP }}:"{{playbook_dir}}"/muno-config/edge/hosts-muno-edge . +# yamllint disable rule:line-length + args: + chdir: "{{playbook_dir}}" + +- name: Set var.yml file for muno edge +# yamllint disable rule:line-length + command: scp root@{{ OCD_IP }}:"{{playbook_dir}}"/muno-config/edge/var.yml . +# yamllint disable rule:line-length + args: + chdir: "{{playbook_dir}}" + +- name: Install edgegallery edge + shell: + # yamllint disable rule:line-length + cmd: ansible-playbook --inventory hosts-muno-edge -e "ansible_user=root" eg_edge_aio_install.yml >> muno_edge_log + # yamllint disable rule:line-length + chdir: /tmp/eg_download/deploy/EdgeGallery-v1.1.1-edge-x86/install + when: ansible_architecture == 'x86_64'