Srikanth Vavilapalli | a7ae651 | 2017-02-13 02:29:21 +0000 | [diff] [blame] | 1 | --- |
| 2 | # instantiate-monitoringservice.yml |
| 3 | # Adds the monitoringservice to the currently running pod |
| 4 | # TODO: Due to some timing issues, the monitroing service synchronizer is not completely getting |
| 5 | # onboarded with in the retries of onboard-monitoringservice.yml, so the ansible script would |
| 6 | # eventually fail. Until it is fixed, once monitoring service synchronizer is ready, run this |
| 7 | # ansible playbook which has only tasks for instantiating the monitoring service models. |
| 8 | |
| 9 | - name: Include vars |
| 10 | hosts: all |
| 11 | tasks: |
| 12 | - name: Include variables |
| 13 | include_vars: "{{ item }}" |
| 14 | with_items: |
| 15 | - "profile_manifests/{{ cord_profile }}.yml" |
| 16 | - profile_manifests/local_vars.yml |
| 17 | |
| 18 | - name: Create monitoringservice config |
| 19 | hosts: head |
| 20 | roles: |
| 21 | - monitoringservice-config |
| 22 | |
| 23 | - include: add-onboard-containers-playbook.yml |
| 24 | |
| 25 | - name: Check to see if XOS UI is ready |
| 26 | hosts: xos_ui |
| 27 | connection: docker |
| 28 | roles: |
| 29 | - xos-ready |
| 30 | |
| 31 | - name: Instantiate monitoringservice and channel |
| 32 | hosts: xos_ui |
| 33 | connection: docker |
| 34 | roles: |
| 35 | - monitoringservice-instantiate |
| 36 | |