blob: 9538d7f0c2f87194fbcd239387fd612a70a3e18c [file] [log] [blame]
Srikanth Vavilapallia7ae6512017-02-13 02:29:21 +00001---
2# monitoringservice-onboard/tasks/main.yml
3
4- name: Disable onboarding
5 command: "python /opt/xos/tosca/run.py {{ xos_admin_user }} /opt/cord_profile/disable-onboarding.yaml"
6 tags:
7 - skip_ansible_lint # TOSCA loading should be idempotent
8
9- name: Have XOS container mount monitoringservice volume
10 command: "python /opt/xos/tosca/run.py {{ xos_admin_user }} /opt/cord_profile/xos-monitoringservice.yaml"
11 tags:
12 - skip_ansible_lint # TOSCA loading should be idempotent
13
14- name: Onboard monitoringservice
15 command: "python /opt/xos/tosca/run.py {{ xos_admin_user }} /opt/cord_profile/monitoring-onboard.yaml"
16 tags:
17 - skip_ansible_lint # TOSCA loading should be idempotent
18
19- name: Enable onboarding
20 command: "python /opt/xos/tosca/run.py {{ xos_admin_user }} /opt/cord_profile/enable-onboarding.yaml"
21 tags:
22 - skip_ansible_lint # TOSCA loading should be idempotent
23
24- name: Wait for monitoring to be onboarded
25 uri:
26 url: "http://localhost:{{ xos_bootstrap_ui_port }}/api/utility/onboarding/services/monitoring/ready/"
27 method: GET
28 return_content: yes
29 register: xos_onboard_status
30 until: '"true" in xos_onboard_status.content'
31 retries: 60
32 delay: 2
33
34- name: Wait for XOS to be onboarded after monitoringservice onboarding
35 uri:
36 url: "http://localhost:{{ xos_bootstrap_ui_port }}/api/utility/onboarding/xos/ready/"
37 method: GET
38 return_content: yes
39 register: xos_onboard_status
40 until: '"true" in xos_onboard_status.content'
41 retries: 60
42 delay: 2
43