kolla-ansible/ansible/roles/storm/tasks/precheck.yml
Doug Szumski 516b0dd34e Support deploying an Apache Storm cluster
Storm is required for running the Monasca thresholder component for
generating alerts.

Change-Id: I5e1ef74dc55a787293abbb3e629b5ab1ce5f4bbb
Partially-Implements: blueprint monasca-roles
2018-09-26 10:54:32 +00:00

42 lines
1.2 KiB
YAML

---
- name: Get container facts
kolla_container_facts:
name:
- storm_worker
- storm_nimbus
register: container_facts
- name: Checking storm nimbus thrift port is available
wait_for:
host: "{{ api_interface_address }}"
port: "{{ storm_nimbus_thrift_port }}"
connect_timeout: 1
timeout: 1
state: stopped
when:
- container_facts['storm_nimbus'] is not defined
- inventory_hostname in groups['storm-nimbus']
- name: Checking storm supervisor thrift port is available
wait_for:
host: "{{ api_interface_address }}"
port: "{{ storm_supervisor_thrift_port }}"
connect_timeout: 1
timeout: 1
state: stopped
when:
- container_facts['storm_worker'] is not defined
- inventory_hostname in groups['storm-worker']
- name: Checking storm worker ports are available
wait_for:
host: "{{ api_interface_address }}"
port: "{{ item }}"
connect_timeout: 1
timeout: 1
state: stopped
with_sequence: "start={{ storm_worker_port_range.start|int }} end={{ storm_worker_port_range.end|int }}"
when:
- container_facts['storm_worker'] is not defined
- inventory_hostname in groups['storm-worker']