updated to EG 1.3.2 version 89/4589/1
authorkhemendra kumar <khemendra.kumar@huawei.com>
Fri, 24 Dec 2021 13:35:56 +0000 (19:05 +0530)
committerkhemendra kumar <khemendra.kumar@huawei.com>
Fri, 24 Dec 2021 13:35:56 +0000 (19:05 +0530)
Signed-off-by: khemendra kumar <khemendra.kumar@huawei.com>
Change-Id: Ifc6346ef48991013c47108149fc7116078276e17

14 files changed:
blueprints/iotgateway/playbooks/default-var.yml
blueprints/iotgateway/playbooks/hosts-muno [new file with mode: 0644]
blueprints/iotgateway/playbooks/muno-config/controller/var.yml
blueprints/iotgateway/playbooks/muno-config/edge/var.yml
blueprints/iotgateway/playbooks/password-var.yml [new file with mode: 0644]
blueprints/iotgateway/playbooks/roles/egallery-all-aiomode/tasks/install.yml
blueprints/iotgateway/playbooks/roles/egallery-all-aiomode/tasks/uninstall.yml
blueprints/iotgateway/playbooks/roles/egallery-munomode-controller/tasks/install.yml
blueprints/iotgateway/playbooks/roles/egallery-munomode-controller/tasks/uninstall.yml
blueprints/iotgateway/playbooks/roles/egallery-munomode-edge/tasks/install.yml
blueprints/iotgateway/playbooks/roles/egallery-munomode-edge/tasks/uninstall.yml
blueprints/iotgateway/playbooks/roles/egallery-tar/tasks/install.yml
blueprints/iotgateway/playbooks/roles/egallery-tar/tasks/uninstall.yml
blueprints/iotgateway/playbooks/var.yml

index 22d0dc7..baf793f 100644 (file)
@@ -14,8 +14,8 @@
 #   limitations under the License.
 
 # The image tag here could only be latest, and helm tag could only be 1.1.0
-EG_IMAGE_TAG: latest
-HELM_TAG: 1.1.0
+EG_IMAGE_TAG: v1.3.2
+HELM_TAG: 1.3.2
 
 # Mode for online or offline install, currently only support offline
 NETWORK_MODE: offline
@@ -33,23 +33,58 @@ COPY_TAR_TO_TARGET: yes
 # true means clean and false means not clean
 TARBALL_PATH_CLEANUP: true
 
+# Whether enable ingress
+# true means enable and false means disable
+ENABLE_INGRESS: true
+
+# Whether deploy appPkgTransTool
+# true means deploy and false means undeploy
+ENABLE_APPD: true
+
 HELM_CHARTS_PATH: "{{ TARBALL_PATH }}/helm/helm-charts"
 
+MEP_HELM_RELEASE_NAME: mep-edgegallery
+MEPM_HELM_RELEASE_NAME: mecm-mepm-edgegallery
 APPSTORE_HELM_RELEASE_NAME: appstore-edgegallery
 DEVELOPER_HELM_RELEASE_NAME: developer-edgegallery
-MECM_FE_HELM_RELEASE_NAME: mecm-fe-edgegallery
+MECM_MEO_HELM_RELEASE_NAME: mecm-meo-edgegallery
 ATP_HELM_RELEASE_NAME: atp-edgegallery
+EG_VIEW_HELM_RELEASE_NAME: eg-view-edgegallery
 
+MEPM_PORT: 30097
 APPSTORE_PORT: 30091
 DEVELOPER_PORT: 30092
 MECM_PORT: 30093
 ATP_PORT: 30094
+EDGEGALLERY_PORT: 30095
 USER_MGMT_PORT: 30067
 LAB_PORT: 30096
+HEALTHCHECK_PORT: 32759
+HEALTHCHECK_M_PORT: 32757
+
+# Set the Passwords for developer OpenStack Ubuntu VM
+developerVMImagePassword: 123456
+
+# certPassword is used for generating SSL keys
+certPassword: te9Fmv%qaq
+
+# used for signature
+SIGNATURE_SECRET_NAME: edgegallery-signature-secret
+
+# If harbor is setup in a remote system, then mention the remote system IP as harbor IP
+#HarborIP: xxx.xxx.xxx.xxx
+
+# If SIGNATURE_CERT_P12 and SIGNATURE_CERT_CER are set here, will use it. Otherwise will generate them automatically
+#SIGNATURE_CERT_P12: xxx/xxx/xxx.p12
+#SIGNATURE_CERT_CER: xxx/xxx/xxx.cer
 
-# Could be true or false, currently only support false
-ENABLE_PERSISTENCE: false
+# If the above 2 files are given, should also give the password used to generate them
+#SIGNATURE_PWD: xxx
 
-# Should set the following 2 params if ENABLE_PERSISTENCE is true
-# NFS_SERVER_IP:
-# NFS_PATH:
+# Params used by EG NFS persistence storage
+EGUSER_NAME: eguser
+EGGROUP_NAME: eggroup
+EGUSER_UID: 166
+EGGROUP_GID: 166
+APPSTORE_PACKAGES: /edgegallery/appstore/packages
+FILE_SYSTEM_PACKAGES: /edgegallery/filesystem/images
diff --git a/blueprints/iotgateway/playbooks/hosts-muno b/blueprints/iotgateway/playbooks/hosts-muno
new file mode 100644 (file)
index 0000000..c0ed94b
--- /dev/null
@@ -0,0 +1,20 @@
+#
+#   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.
+
+[master]
+master-ip
+
+[worker]
+worker-ip
index 1f40dda..c4ea708 100644 (file)
 #   See the License for the specific language governing permissions and
 #   limitations under the License.
 
-# Set the Password of Harbor admin account, no default value,
-# must set by users here
-HARBOR_ADMIN_PASSWORD: any_password
+# Set the regex name of the network interface for calico
+NETWORK_INTERFACE: ens.*
 
 # Could be true or false
 # true: Deploy k8s NFS Server to keep the persistence of all pods' data
 # false: No need to keep the persistence of all pods' data
+ENABLE_PERSISTENCE: true
 
-# ENABLE_PERSISTENCE: true
-ENABLE_PERSISTENCE: false
-
-# ip for portals, will be set to private IP of master node default or
-# reset it to be the public IP of master node here
+# ip for portals, will be set to private IP of master node default or reset it to be the public IP of master node here
 # PORTAL_IP: xxx.xxx.xxx.xxx
-PORTAL_IP: IP_master_node
+
+# IP of the Controller master which is used for Edge to connect
+# If you deploy Controller and Edge together in one cluster, then ther is no need to set this param
+# CONTROLLER_MASTER_IP: xxx.xxx.xxx.xxx
+
+# NIC name of master node
+# If master node is with single NIC, not need to set it here and will get the default NIC name during the run time
+# If master node is with multiple NICs, should set it here to be 2 different NICs
+# EG_NODE_EDGE_MP1: eth0
+# EG_NODE_EDGE_MM5: eth0
+
+# Email Server Config for User Mgmt
+usermgmt_mail_enabled: false
+# If usermgmt_mail_enabled is true, then the following 4 params need to be set
+# usermgmt_mail_host: xxxxx
+# usermgmt_mail_port: xxxxx
+# usermgmt_mail_sender: xxxxx
+# usermgmt_mail_authcode: xxxxx
index e584b7a..c4ea708 100644 (file)
 #   See the License for the specific language governing permissions and
 #   limitations under the License.
 
-# Set the Password of Harbor admin account, no default value,
-# must set by users here
-HARBOR_ADMIN_PASSWORD: Harbor@edge
+# Set the regex name of the network interface for calico
+NETWORK_INTERFACE: ens.*
 
 # Could be true or false
 # true: Deploy k8s NFS Server to keep the persistence of all pods' data
 # false: No need to keep the persistence of all pods' data
-ENABLE_PERSISTENCE: false
+ENABLE_PERSISTENCE: true
 
-# ip for portals, will be set to private IP of master node default or
-# reset it to be the public IP of master node here
+# ip for portals, will be set to private IP of master node default or reset it to be the public IP of master node here
 # PORTAL_IP: xxx.xxx.xxx.xxx
 
+# IP of the Controller master which is used for Edge to connect
+# If you deploy Controller and Edge together in one cluster, then ther is no need to set this param
+# CONTROLLER_MASTER_IP: xxx.xxx.xxx.xxx
+
 # NIC name of master node
-# If master node is with single NIC, not need to set it here and will get
-# the default NIC name during the run time
-# If master node is with multiple NICs, should set it here to be
-# 2 different NICs
+# If master node is with single NIC, not need to set it here and will get the default NIC name during the run time
+# If master node is with multiple NICs, should set it here to be 2 different NICs
 # EG_NODE_EDGE_MP1: eth0
 # EG_NODE_EDGE_MM5: eth0
 
-OCD_IP: 10.0.0.33
+# Email Server Config for User Mgmt
+usermgmt_mail_enabled: false
+# If usermgmt_mail_enabled is true, then the following 4 params need to be set
+# usermgmt_mail_host: xxxxx
+# usermgmt_mail_port: xxxxx
+# usermgmt_mail_sender: xxxxx
+# usermgmt_mail_authcode: xxxxx
diff --git a/blueprints/iotgateway/playbooks/password-var.yml b/blueprints/iotgateway/playbooks/password-var.yml
new file mode 100644 (file)
index 0000000..35311db
--- /dev/null
@@ -0,0 +1,26 @@
+#
+#   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.
+
+# Set the Password of Harbor admin account, no default value, must set by users here
+HARBOR_ADMIN_PASSWORD: xxxxx
+
+# postgresPassword is used for all postgres DB of all roles, no default value, must set by users here
+postgresPassword: xxxxx
+
+# oauth2ClientPassword is used for user mgmt, no default value, must set by users here
+oauth2ClientPassword: xxxxx
+
+# Redis Password used by user mgmt, no default value, must set by users here
+userMgmtRedisPassword: xxxxx
index d633069..96d5a9b 100644 (file)
@@ -27,5 +27,5 @@
     # yamllint disable rule:line-length
     cmd: ansible-playbook --inventory hosts-aio -e "ansible_user=root" eg_all_aio_install.yml >> aio_log
     # yamllint disable rule:line-length
-    chdir: /tmp/eg_download/deploy/ansible-all-x86-latest/install
+    chdir: /tmp/eg_download/deploy/EdgeGallery-v1.3.2-all-x86/install
   when: ansible_architecture == 'x86_64'
index 6896328..737d4b2 100644 (file)
@@ -18,7 +18,7 @@
     # yamllint disable rule:line-length
     cmd: ansible-playbook --inventory hosts-aio eg_all_aio_uninstall.yml -e "ansible_user=root" >> aio_remove.log
     # yamllint disable rule:line-length
-    chdir: /tmp/eg_download/deploy/ansible-all-arm-latest/install
+    chdir: /tmp/eg_download/deploy/EdgeGallery-v1.3.2-all-x86/install
   when: ansible_architecture == 'aarch64'
 
 - name: Uninstall edgegallery on x86
     # yamllint disable rule:line-length
     cmd: ansible-playbook --inventory hosts-aio  eg_all_aio_uninstall.yml -e "ansible_user=root" >> aio_remove.log
     # yamllint disable rule:line-length
-    chdir: /tmp/eg_download/deploy/ansible-all-x86-latest/install
+    chdir: /tmp/eg_download/deploy/EdgeGallery-v1.3.2-all-x86/install
   when: ansible_architecture == 'x86_64'
 
 - name: Remove edgegallery tar
   shell:
-    cmd: rm -rf ansible-all*
+    cmd: rm -rf EdgeGallery*
     chdir: /tmp/eg_download/deploy/
 
 - name: Remove aio log
index add7807..902279f 100644 (file)
 
 - name: Check edgegallery tar ball present
   stat:
-    path: /tmp/eg_download/deploy/EdgeGallery-v1.1.1-controller-x86.tar.gz
+    path: /tmp/eg_download/deploy/EdgeGallery-v1.3.2-controller-x86.tar.gz
   register: tar_var
 
 - name: Download 1.1 edgegallery x86 controller
 # yamllint disable rule:line-length
-  command: wget https://edgegallery.obs.cn-east-3.myhuaweicloud.com/releases/v1.1.1/x86/EdgeGallery-v1.1.1-controller-x86.tar.gz
+  command: wget https://edgegallery.obs.cn-east-3.myhuaweicloud.com/releases/v1.3.2/x86/EdgeGallery-v1.3.2-controller-x86.tar.gz
 # yamllint disable rule:line-length
   args:
     chdir: /tmp/eg_download/deploy/
   when: not tar_var.stat.exists
 
 - name: Untar Edgegallery offline controller tar file
-  command: tar -xvf EdgeGallery-v1.1.1-controller-x86
+  command: tar -xvf EdgeGallery-v1.3.2-controller-x86
   args:
     chdir: /tmp/eg_download/deploy/
   when: not tar_var.stat.exists
 
 - name: Set inventory file for muno controller
 # yamllint disable rule:line-length
-  command: cp muno-config/controller/hosts-muno-controller /tmp/eg_download/deploy/EdgeGallery-v1.1.1-controller-x86/install
+  command: cp muno-config/controller/hosts-muno-controller /tmp/eg_download/deploy/EdgeGallery-v1.3.2-controller-x86/install
 # yamllint disable rule:line-length
   args:
     chdir: "{{playbook_dir}}"
 
 - name: Set var.yml file for muno controller
 # yamllint disable rule:line-length
-  command: cp muno-config/controller/var.yml /tmp/eg_download/deploy/EdgeGallery-v1.1.1-controller-x86/install
+  command: cp muno-config/controller/var.yml /tmp/eg_download/deploy/EdgeGallery-v1.3.2-controller-x86/install
 # yamllint disable rule:line-length
   args:
     chdir: "{{playbook_dir}}"
@@ -61,5 +61,5 @@
     # yamllint disable rule:line-length
     cmd: ansible-playbook --inventory hosts-muno-controller -e "ansible_user=root" eg_controller_aio_install.yml >> muno_controller_log
     # yamllint disable rule:line-length
-    chdir: /tmp/eg_download/deploy/EdgeGallery-v1.1.1-controller-x86/install
+    chdir: /tmp/eg_download/deploy/EdgeGallery-v1.3.2-controller-x86/install
   when: ansible_architecture == 'x86_64'
index 75ca312..5e9641c 100644 (file)
     # yamllint disable rule:line-length
     cmd: ansible-playbook --inventory hosts-muno-controller  eg_controller_aio_uninstall.yml -e "ansible_user=root" >> muno_controller_remove.log
     # yamllint disable rule:line-length
-    chdir: /tmp/eg_download/deploy/EdgeGallery-v1.1.1-controller-x86/install
+    chdir: /tmp/eg_download/deploy/EdgeGallery-v1.3.2-controller-x86/install
   when: ansible_architecture == 'x86_64'
 
 - name: Remove edgegallery tar ball
   shell:
-    cmd: rm -rf EdgeGallery-v1.1.1-*
+    cmd: rm -rf EdgeGallery*
     chdir: /tmp/eg_download/deploy/
   when: ansible_architecture == 'x86_64'
index fafeae9..0dad5b4 100644 (file)
 
 - name: Check edgegallery tar ball present
   stat:
-    path: /tmp/eg_download/deploy/EdgeGallery-v1.1.1-edge-x86.tar.gz
+    path: /tmp/eg_download/deploy/EdgeGallery-v1.3.2-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
+  command: wget https://edgegallery.obs.cn-east-3.myhuaweicloud.com/releases/v1.3.2/x86/EdgeGallery-v1.3.2-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
+  command: tar -xvf EdgeGallery-v1.3.2-edge-x86
   args:
     chdir: /tmp/eg_download/deploy/
   when: not edge_tar_var.stat.exists
@@ -53,5 +53,5 @@
     # 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
+    chdir: /tmp/eg_download/deploy/EdgeGallery-v1.3.2-edge-x86/install
   when: ansible_architecture == 'x86_64'
index 71274da..694181f 100644 (file)
     # yamllint disable rule:line-length
     cmd: ansible-playbook --inventory hosts-muno-edge  eg_edge_aio_uninstall.yml -e "ansible_user=root" >> muno_edge_remove.log
     # yamllint disable rule:line-length
-    chdir: /tmp/eg_download/deploy/EdgeGallery-v1.1.1-edge-x86/install
-  when: ansible_architecture == 'x86_64'
+    chdir: /tmp/eg_download/deploy/EdgeGallery-v1.3.2-edge-x86/install
+  when: ansible_architecture == 'x86_64
 
 - name: Remove edgegallery tar ball
   shell:
-    cmd: rm -rf EdgeGallery-v1.1.1-*
+    cmd: rm -rf EdgeGallery*
     chdir: /tmp/eg_download/deploy/
   when: ansible_architecture == 'x86_64'
index b8e9fc2..2329137 100644 (file)
 
 - name: Download 1.1 edgegallery x86
 # yamllint disable rule:line-length
-  command: wget https://edgegallery.obs.cn-east-3.myhuaweicloud.com/releases/v1.1/x86/EdgeGallery-v1.1-all-x86.tar.gz
+  command: wget https://edgegallery.obs.cn-east-3.myhuaweicloud.com/releases/v1.3.2/x86/EdgeGallery-v1.3.2-all-x86.tar.gz
 # yamllint disable rule:line-length
   args:
     chdir: /tmp/eg_download/deploy/
   when: ansible_architecture == 'x86_64'
 
 - name: Untar Edgegallery offline tarbal file
-  command: tar -xvf EdgeGallery-v1.1-all-x86.tar.gz
+  command: tar -xvf EdgeGallery-v1.3.2-all-x86.tar.gz
   args:
     chdir: /tmp/eg_download/deploy/
   when: ansible_architecture == 'x86_64'
 
 - name: Set inventory file for aio
-  command: cp hosts-aio /tmp/eg_download/deploy/ansible-all-x86-latest/install
+  command: cp hosts-aio /tmp/eg_download/deploy/EdgeGallery-v1.3.2-all-x86/install
   args:
     chdir: "{{playbook_dir}}"
   when: ansible_architecture == 'x86_64'
 
 - name: Set inventory file for muno
-  command: cp hosts-muno /tmp/eg_download/deploy/ansible-all-x86-latest/install
+  command: cp hosts-muno /tmp/eg_download/deploy/EdgeGallery-v1.3.2-all-x86/install
   args:
     chdir: "{{playbook_dir}}"
   when: ansible_architecture == 'x86_64'
 
 - name: Set var.yml to eg path
   # yamllint disable rule:line-length
-  command: cp var.yml /tmp/eg_download/deploy/ansible-all-x86-latest/install
+  command: cp var.yml /tmp/eg_download/deploy/EdgeGallery-v1.3.2-all-x86/install
   # yamllint disable rule:line-length
   args:
     chdir: "{{playbook_dir}}"
@@ -56,7 +56,7 @@
 
 - name: Set default-var.yml to eg path
   # yamllint disable rule:line-length
-  command: cp default-var.yml /tmp/eg_download/deploy/ansible-all-x86-latest/install
+  command: cp default-var.yml /tmp/eg_download/deploy/EdgeGallery-v1.3.2-all-x86/install
   # yamllint disable rule:line-length
   args:
     chdir: "{{playbook_dir}}"
index 44a0f0c..1b6967d 100644 (file)
@@ -16,5 +16,5 @@
 - name: Remove edgegallery tar
   shell:
     cmd: ls
-   #cmd: rm -rf ansible-all*
+   #cmd: rm -rf EdgeGallery*
     chdir: /tmp/eg_download/deploy/
index 9cb47bd..c4ea708 100644 (file)
 #   See the License for the specific language governing permissions and
 #   limitations under the License.
 
-# Password of Harbor admin
-HARBOR_ADMIN_PASSWORD: Harbor@edge
+# Set the regex name of the network interface for calico
+NETWORK_INTERFACE: ens.*
 
-# ip for portals,will be set to private
-# iP of master node default or reset it here
-# PORTAL_IP: 111.222.333.444
+# Could be true or false
+# true: Deploy k8s NFS Server to keep the persistence of all pods' data
+# false: No need to keep the persistence of all pods' data
+ENABLE_PERSISTENCE: true
 
-# If not set, will get the default one during the run time
+# ip for portals, will be set to private IP of master node default or reset it to be the public IP of master node here
+# PORTAL_IP: xxx.xxx.xxx.xxx
+
+# IP of the Controller master which is used for Edge to connect
+# If you deploy Controller and Edge together in one cluster, then ther is no need to set this param
+# CONTROLLER_MASTER_IP: xxx.xxx.xxx.xxx
+
+# NIC name of master node
+# If master node is with single NIC, not need to set it here and will get the default NIC name during the run time
+# If master node is with multiple NICs, should set it here to be 2 different NICs
 # EG_NODE_EDGE_MP1: eth0
 # EG_NODE_EDGE_MM5: eth0
+
+# Email Server Config for User Mgmt
+usermgmt_mail_enabled: false
+# If usermgmt_mail_enabled is true, then the following 4 params need to be set
+# usermgmt_mail_host: xxxxx
+# usermgmt_mail_port: xxxxx
+# usermgmt_mail_sender: xxxxx
+# usermgmt_mail_authcode: xxxxx