kolla-ansible/ansible/roles/zookeeper/tasks/precheck.yml
Doug Szumski f87b238db5 Add support for deploying ZooKeeper
This picks up the abandoned review:
https://review.openstack.org/#/c/412423

Co-Authored-By: Sam Yaple <sam@yaple.net>
Partially-Implements: blueprint monasca-roles
Change-Id: Idc01afcb125271181ee5e15d327d0929f07b49e9
2018-03-23 16:58:51 +00:00

22 lines
519 B
YAML

---
- name: Get container facts
kolla_container_facts:
name:
- zookeeper
register: container_facts
- name: Checking zookeeper ports are available
wait_for:
host: "{{ api_interface_address }}"
port: "{{ item }}"
connect_timeout: 1
timeout: 1
state: stopped
with_items:
- "{{ zookeeper_client_port }}"
- "{{ zookeeper_peer_port }}"
- "{{ zookeeper_quorum_port }}"
when:
- container_facts['zookeeper'] is not defined
- inventory_hostname in groups['zookeeper']