name:
kongpgpwd:
name:
+interface1:
+ name:
+interface2:
+ name:
+ipaddregmep1:
+ name:
+ipaddregmep5:
+ name:
msg: Setup_interfaces execution start
- name: Link eg mep macvlan
- command: ip link add eg-mp1 link eth0 type macvlan mode bridge
+ command: ip link add eg-mp1 link {{ vardata.interface1.name}} type macvlan mode bridge
args:
chdir: /tmp/eg_mep/deploy/
ignore_errors: yes
no_log: True
- name: Link eg mep macvlan
- command: ip addr add 200.1.1.2/24 dev eg-mp1
+ command: ip addr add {{ vardata.ipaddregmep1.name}} dev eg-mp1
args:
chdir: /tmp/eg_mep/deploy/
ignore_errors: yes
no_log: True
- name: Link eg eg mm5 with eth1
- command: ip link add eg-mm5 link eth1 type macvlan mode bridge
+ command: ip link add eg-mm5 link {{ vardata.interface2.name}} type macvlan mode bridge
args:
chdir: /tmp/eg_mep/deploy/
ignore_errors: yes
no_log: True
- name: Link eg eg mm5 ip addr
- command: ip addr add 100.1.1.2/24 dev eg-mm5
+ command: ip addr add {{ vardata.ipaddregmep5.name}} dev eg-mm5
args:
chdir: /tmp/eg_mep/deploy/
ignore_errors: yes
- name: Edge gallery mep installation pull chart
# yamllint disable rule:line-length
- command: helm install mep-edgegallery edgegallery/mep --set networkIsolation.phyInterface.mp1=eth1 --set networkIsolation.phyInterface.mm5=eth2 --set ssl.secretName=mep-ssl
+ command: helm install mep-edgegallery edgegallery/mep --set networkIsolation.phyInterface.mp1={{ vardata.interface1.name}} --set networkIsolation.phyInterface.mm5={{ vardata.interface2.name}} --set ssl.secretName=mep-ssl
# yamllint disable rule:line-length
args:
chdir: /tmp/eg_mep/deploy/
#
---
+
# tasks file for eg_user-mgmt
- include: "install.yml"
static: false
when: operation == 'install'
+
+- include: "uninstall.yml"
+ static: false
+ when: operation == 'uninstall'
--- /dev/null
+#
+# Copyright 2020 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.
+#
+
+---
+
+- name: Uninstall user management
+ command: helm uninstall user-mgmt-edgegallery
+
+- name: Uninstall user mngmt jwt
+ command: kubectl delete secret user-mgmt-jwt-secret
- include: "install.yml"
static: false
when: operation == 'install'
+
+- include: "uninstall.yml"
+ static: false
+ when: operation == 'uninstall'
--- /dev/null
+#
+# Copyright 2020 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.
+#
+
+---
+
+- name: Uninstall service center
+ command: helm uninstall service-center-edgegallery