ee7a29cf00
Since I701d495675178c3ed8ec1f00b31d09f198b38a6f merged, etcd only runs on the control hosts, not the compute hosts. We therefore no longer require the etcd group to include the compute hosts. Since the group mapping is now static, we can remove the use of host_in_groups from the etcd service, in favour of the simpler method of specifying the group. Change-Id: Id8f888d7321a30a85ff95e742f7e6c8e2b9c696f Related-Bug: #1790415
29 lines
708 B
YAML
29 lines
708 B
YAML
---
|
|
- name: Get container facts
|
|
kolla_container_facts:
|
|
name:
|
|
- etcd
|
|
register: container_facts
|
|
|
|
- name: Checking free port for Etcd Peer
|
|
wait_for:
|
|
host: "{{ api_interface_address }}"
|
|
port: "{{ etcd_peer_port }}"
|
|
connect_timeout: 1
|
|
timeout: 1
|
|
state: stopped
|
|
when:
|
|
- container_facts['etcd'] is not defined
|
|
- inventory_hostname in groups[etcd_services.etcd.group]
|
|
|
|
- name: Checking free port for Etcd Client
|
|
wait_for:
|
|
host: "{{ api_interface_address }}"
|
|
port: "{{ etcd_client_port }}"
|
|
connect_timeout: 1
|
|
timeout: 1
|
|
state: stopped
|
|
when:
|
|
- container_facts['etcd'] is not defined
|
|
- inventory_hostname in groups[etcd_services.etcd.group]
|