# 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
# 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:
+
+# certPassword is used for generating SSL keys
+certPassword:
+
+# used for signature
+SIGNATURE_SECRET_NAME:
+
+# 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
--- /dev/null
+
+[master]
+master-ip
--- /dev/null
+
+[master]
+master-ip
# 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
+#PORTAL_IP: xxx.xxx.xxx.xxx
-# 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
-#
# Copyright 2021 Huawei Technologies Co., Ltd.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# 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
+#PORTAL_IP: xxx.xxx.xxx.xxx
-# 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
--- /dev/null
+#
+# 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
# 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-arm-latest/install
+ chdir: /tmp/eg_download/deploy/EdgeGallery-v1.3.2-all-x86/install
when: ansible_architecture == 'aarch64'
- name: Install edgegallery
# 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'
# 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
# See the License for the specific language governing permissions and
# limitations under the License.
----
-# tasks file for MUNO controller
### MUNO controller installation ###
- 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
+- name: Download 1.3.2 edgegallery x86 controller
# yamllint disable rule:line-length
- command: wget https://akraino.obs.ap-southeast-1.myhuaweicloud.com/v1.1.1/x86/EdgeGallery-v1.1.1-controller-x86.tar.gz
+ command: wget http://edgegallery-v1.3.2.obs.cn-north-4.myhuaweicloud.com/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.tar.gz
+ command: tar -xvf EdgeGallery-v1.3.2-controller-x86.tar.gz
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
+ ## yamllint disable rule:line-length
+ 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}}"
# 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'
# 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-v1.3.2-*
chdir: /tmp/eg_download/deploy/
when: ansible_architecture == 'x86_64'
# 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
+ 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://akraino.obs.ap-southeast-1.myhuaweicloud.com/v1.1.1/x86/EdgeGallery-v1.1.1-edge-x86.tar.gz
-# yamllint disable rule:line-length
+- name: Download 1.3.2 edgegallery x86 edge
+ # yamllint disable rule:line-length
+ command: wget http://edgegallery-v1.3.2.obs.cn-north-4.myhuaweicloud.com/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.tar.gz
+ command: tar -xvf EdgeGallery-v1.3.2-edge-x86.tar.gz
args:
- chdir: /tmp/eg_download/deploy/
+ chdir: /tmp/eg_download/deploy/
when: not edge_tar_var.stat.exists
- name: Set inventory file for muno edge
-# yamllint disable rule:line-length
+ # yamllint disable rule:line-length
command: scp root@{{ OCD_IP }}:"{{playbook_dir}}"/muno-config/edge/hosts-muno-edge .
-# yamllint disable rule:line-length
+ # yamllint disable rule:line-length
args:
chdir: "{{playbook_dir}}"
- name: Set var.yml file for muno edge
-# yamllint disable rule:line-length
+ # yamllint disable rule:line-length
command: scp root@{{ OCD_IP }}:"{{playbook_dir}}"/muno-config/edge/var.yml .
-# yamllint disable rule:line-length
+ # yamllint disable rule:line-length
args:
chdir: "{{playbook_dir}}"
# 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.0-edge-x86/install
when: ansible_architecture == 'x86_64'
# 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
+ chdir: /tmp/eg_download/deploy/EdgeGallery-v1.3.2-edge-x86/install
when: ansible_architecture == 'x86_64'
- name: Remove edgegallery tar ball
# See the License for the specific language governing permissions and
# limitations under the License.
----
- name: Create directory to download EG-TAR
command: mkdir -p /tmp/eg_download/deploy
chdir: "{{playbook_dir}}"
ignore_errors: yes
-- name: Download 1.1 edgegallery x86
+- name: Download 1.3.2 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 http://edgegallery-v1.3.2.obs.cn-north-4.myhuaweicloud.com/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 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}}"
when: ansible_architecture == 'x86_64'
- name: Set default-var.yml to eg path
+ # yamllint disable rule:line-length
+ command: cp default-var.yml /tmp/eg_download/deploy/EdgeGallery-v1.3.2-all-x86/install
# yamllint disable rule:line-length
- command: cp default-var.yml /tmp/eg_download/deploy/ansible-all-x86-latest/install
+ args:
+ chdir: "{{playbook_dir}}"
+ when: ansible_architecture == 'x86_64'
+
+- name: Set password-var.yml to eg path
+ # yamllint disable rule:line-length
+ command: cp password-var.yml /tmp/eg_download/deploy/EdgeGallery-v1.3.2-all-x86/install
# yamllint disable rule:line-length
args:
chdir: "{{playbook_dir}}"
-#
# Copyright 2021 Huawei Technologies Co., Ltd.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# 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.*
+
+# 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
-# ip for portals,will be set to private
-# iP of master node default or reset it here
-# PORTAL_IP: 111.222.333.444
+# 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
-# If not set, will get the default one during the run time
+# 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