Srikanth Vavilapalli | a7ae651 | 2017-02-13 02:29:21 +0000 | [diff] [blame] | 1 | --- |
| 2 | # onboard-monitoringservice.yml |
| 3 | # Adds the monitoringservice to the currently running pod |
| 4 | |
| 5 | - name: Include vars |
| 6 | hosts: all |
| 7 | tasks: |
| 8 | - name: Include variables |
| 9 | include_vars: "{{ item }}" |
| 10 | with_items: |
| 11 | - "profile_manifests/{{ cord_profile }}.yml" |
| 12 | - profile_manifests/local_vars.yml |
| 13 | |
| 14 | - name: Create monitoringservice config |
| 15 | hosts: head |
| 16 | roles: |
| 17 | - monitoringservice-config |
| 18 | |
| 19 | - include: add-bootstrap-containers-playbook.yml |
| 20 | |
| 21 | - name: Onboard monitoringservice |
| 22 | hosts: xos_bootstrap_ui |
| 23 | connection: docker |
| 24 | roles: |
| 25 | - monitoringservice-onboard |
| 26 | |
| 27 | - include: add-onboard-containers-playbook.yml |
| 28 | |
| 29 | - name: Check to see if XOS UI is ready |
| 30 | hosts: xos_ui |
| 31 | connection: docker |
| 32 | roles: |
| 33 | - xos-ready |
| 34 | |
| 35 | - name: Instantiate monitoringservice and channel |
| 36 | hosts: xos_ui |
| 37 | connection: docker |
| 38 | roles: |
| 39 | - monitoringservice-instantiate |
| 40 | |