blob: 9e9c657d9e0c32078dbf911e6361d09b9966682c [file] [log] [blame]
Matteo Scandolo3896c472017-08-01 13:31:42 -07001
2# Copyright 2017-present Open Networking Foundation
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
16
Srikanth Vavilapallia7ae6512017-02-13 02:29:21 +000017---
18# instantiate-monitoringservice.yml
19# Adds the monitoringservice to the currently running pod
20# TODO: Due to some timing issues, the monitroing service synchronizer is not completely getting
21# onboarded with in the retries of onboard-monitoringservice.yml, so the ansible script would
22# eventually fail. Until it is fixed, once monitoring service synchronizer is ready, run this
23# ansible playbook which has only tasks for instantiating the monitoring service models.
24
25- name: Include vars
26 hosts: all
27 tasks:
28 - name: Include variables
29 include_vars: "{{ item }}"
30 with_items:
31 - "profile_manifests/{{ cord_profile }}.yml"
32 - profile_manifests/local_vars.yml
33
34- name: Create monitoringservice config
35 hosts: head
36 roles:
37 - monitoringservice-config
38
39- include: add-onboard-containers-playbook.yml
40
41- name: Check to see if XOS UI is ready
42 hosts: xos_ui
43 connection: docker
44 roles:
45 - xos-ready
46
47- name: Instantiate monitoringservice and channel
48 hosts: xos_ui
49 connection: docker
50 roles:
51 - monitoringservice-instantiate
52