blob: 9e9c657d9e0c32078dbf911e6361d09b9966682c [file] [log] [blame]
# Copyright 2017-present Open Networking Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
---
# instantiate-monitoringservice.yml
# Adds the monitoringservice to the currently running pod
# TODO: Due to some timing issues, the monitroing service synchronizer is not completely getting
# onboarded with in the retries of onboard-monitoringservice.yml, so the ansible script would
# eventually fail. Until it is fixed, once monitoring service synchronizer is ready, run this
# ansible playbook which has only tasks for instantiating the monitoring service models.
- name: Include vars
hosts: all
tasks:
- name: Include variables
include_vars: "{{ item }}"
with_items:
- "profile_manifests/{{ cord_profile }}.yml"
- profile_manifests/local_vars.yml
- name: Create monitoringservice config
hosts: head
roles:
- monitoringservice-config
- include: add-onboard-containers-playbook.yml
- name: Check to see if XOS UI is ready
hosts: xos_ui
connection: docker
roles:
- xos-ready
- name: Instantiate monitoringservice and channel
hosts: xos_ui
connection: docker
roles:
- monitoringservice-instantiate