summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
f31ea50)
Added some comments in the various tasks
Signed-off-by: abhijit_onap <abhijit.das.gupta@huawei.com>
Change-Id: Ie9e269cf7cb9ef381ca69946dbd2e0c89be0f1d5
- k3s
- hosts: infra-helm
- k3s
- hosts: infra-helm
- helm
- grafana
- kubeconfig
- helm
- grafana
- kubeconfig
- helm
- rabbitmq
- prometheus
- kubeconfig
- helm
- rabbitmq
- prometheus
- kubeconfig
+- hosts: mecm
+ become: yes
+ tags:
+ - infra
+ - infra-mecm
+ - mecm
+
+ roles:
+ - mepconfig
+
- hosts: mepautomate
become: yes
tags:
- hosts: mepautomate
become: yes
tags:
# limitations under the License.
---
# limitations under the License.
---
+# tasks file for transferring kubeconfig files
- name: debug msg
debug:
msg: transfering config file to OCD Host
- name: debug msg
debug:
msg: transfering config file to OCD Host
src: /root/.kube/config
dest: /root/.kube/config-{{ ansible_host }}
flat: yes
src: /root/.kube/config
dest: /root/.kube/config-{{ ansible_host }}
flat: yes
-
-- name: Fetch the file from the edge nodes to ocd-host
- run_once: yes
- fetch:
- src: /root/.kube/config
- dest: /root/.kube/kubeconfig/{{ ansible_host }}
- flat: yes
# limitations under the License.
---
# limitations under the License.
---
+# tasks file for transferring mep k3s cluster config file to mecm k8s
- name: debug msg
debug:
msg: transfering MEP kubeconfig files to MECM Server
- name: Transfer kubeconfig files from all MEP Nodes to MEP Server
- name: debug msg
debug:
msg: transfering MEP kubeconfig files to MECM Server
- name: Transfer kubeconfig files from all MEP Nodes to MEP Server
copy:
src: /root/.kube/kubeconfig
dest: /
copy:
src: /root/.kube/kubeconfig
dest: /
# limitations under the License.
---
# limitations under the License.
---
+# tasks file for k3s kube-config file transfer
- name: debug msg
debug:
msg: transfering mep config file to OCD Host
- name: debug msg
debug:
msg: transfering mep config file to OCD Host
# yamllint disable rule:line-length
when: result.stdout == ""
# yamllint disable rule:line-length
when: result.stdout == ""
-- name: "INSTALL: copy common folder to host for rabbitmg installation"
+- name: "INSTALL: copy common folder to host for rabbitmq installation"
copy:
src: common
dest: /tmp/rabbitmq/
when: result is failed
copy:
src: common
dest: /tmp/rabbitmq/
when: result is failed
-- name: "INSTALL: Install common for rabbitmg installation"
+- name: "INSTALL: Install common for rabbitmq installation"
shell:
cmd: kubectl apply -f /tmp/rabbitmq/common
when: result is failed
shell:
cmd: kubectl apply -f /tmp/rabbitmq/common
when: result is failed
-- name: "INSTALL: copy statefulset_x86.yaml to host for rabbitmg installation"
+- name: "INSTALL: copy statefulset_x86.yaml to host for rabbitmq installation"
copy:
src: statefulset_x86.yaml
dest: /tmp/rabbitmq/
copy:
src: statefulset_x86.yaml
dest: /tmp/rabbitmq/
cmd: kubectl apply -f /tmp/rabbitmq/statefulset_x86.yaml
when: result is failed and ansible_architecture == 'x86_64'
cmd: kubectl apply -f /tmp/rabbitmq/statefulset_x86.yaml
when: result is failed and ansible_architecture == 'x86_64'
-- name: "INSTALL: copy statefulset_arm.yaml to host for rabbitmg installation"
+- name: "INSTALL: copy statefulset_arm.yaml to host for rabbitmq installation"
copy:
src: statefulset_arm.yaml
dest: /tmp/rabbitmq/
copy:
src: statefulset_arm.yaml
dest: /tmp/rabbitmq/