- k8s
- helm
- docker
+ - eg_prerequisite
- eg_registry
- eg_helm-repo
- eg_certs
- master
roles:
+ - eg_trans_certs
- eg_prerequisite
- helm
- eg_set-helm-repo
- edge
roles:
+ - eg_trans_certs
- docker
- eg_prerequisite
- k3s
- name: Delete Execute script for docker daemon
command: rm -rf /tmp/eg_prerequisite
-
-- name: Certificate copy
- debug:
- msg: Copy certificate from ocd to center and edge
-
-- synchronize:
- src: /tmp/ssl-eg-keys-certs
- dest: /tmp/
--- /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: Certificate copy
+ debug:
+ msg: Copy certificate from ocd to center and edge
+
+- synchronize:
+ src: /tmp/ssl-eg-keys-certs
+ dest: /tmp/
--- /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.
+#
+
+---
+
+# tasks file for eg_trans_certs
+- include: "install.yml"
+ static: false
+ when: operation == 'install'
- name: "INSTALL: Add helm repo"
# yamllint disable rule:line-length
- command: helm repo add stable https://kubernetes-charts.storage.googleapis.com/
+ command: helm repo add stable https://charts.helm.sh/stable
# yamllint disable rule:line-length
when: result is failed
- name: "UNINSTALL: Helm Uninstall on x86_64"
command: rm -rf linux-amd64/helm
+ ignore_errors: yes
+ no_log: True
when: result is succeeded and ansible_architecture == 'x86_64'
- name: "UNINSTALL: Remove download helm file on x86_64"
command: rm ~/helm-v3.0.2-linux-amd64.tar.gz
+ ignore_errors: yes
+ no_log: True
when: result is succeeded and ansible_architecture == 'x86_64'
- name: "UNINSTALL: Helm Uninstall on aarch64"
# yamllint disable rule:line-length
when: result.stdout == ""
-- name: "INSTALL: Install prometheus on x86_64"
- shell:
- cmd: helm install mep-prometheus stable/prometheus --version v9.3.1
- ignore_errors: yes
- no_log: True
- when: result is failed and ansible_architecture == 'x86_64'
-
- name: "INSTALL: copy values.yaml to host"
copy:
src: values.yaml
# yamllint disable rule:line-length
ignore_errors: yes
no_log: True
- when: result is failed and ansible_architecture == 'aarch64'
- name: Expose promethious server
# yamllint disable rule:line-length