kolla-ansible/ansible/roles/skydive/tasks/precheck.yml
Mathieu Rohon 43900bc8b6 Add skydive service
This patch introduces the ansible materials to deploy
the skydive service, that can be used to monitor and
troubleshoot networking in an openstack deployment.

Implements: blueprint skydive-service

Co-Authored-By: Nicolas Bouron <nicolas.bouron@gmail.com>
Signed-off-by: Mathieu Rohon <mathieu.rohon@gmail.com>

Change-Id: I53051a1b0c85380416288e17040a398b6efb62c0
2017-06-06 09:09:10 +02:00

35 lines
963 B
YAML

---
- name: Get container facts
kolla_container_facts:
name:
- skydive_analyzer
- skydive_agent
register: container_facts
- name: Checking free port for Skydive Analyzer
vars:
skydive_analyzer: "{{ skydive_services['skydive-analyzer'] }}"
wait_for:
host: "{{ api_interface_address }}"
port: "{{ skydive_analyzer_port }}"
connect_timeout: 1
state: stopped
when:
- container_facts['skydive_analyzer'] is not defined
- inventory_hostname in groups[skydive_analyzer.group]
- skydive_analyzer.enabled | bool
- name: Checking free port for Skydive Agent
vars:
skydive_agent: "{{ skydive_services['skydive-agent'] }}"
wait_for:
host: "{{ api_interface_address }}"
port: "{{ skydive_agents_port }}"
connect_timeout: 1
state: stopped
when:
- container_facts['skydive_agent'] is not defined
- inventory_hostname in groups[skydive_agent.group]
- skydive_agent.enabled | bool