Merge "add etcd to precheck"

This commit is contained in:
Jenkins 2016-10-17 11:31:45 +00:00 committed by Gerrit Code Review
commit 37aa948663

View File

@ -95,6 +95,22 @@
state: stopped
when: inventory_hostname in groups['haproxy']
- name: Checking free port for Etcd Peer
wait_for:
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
port: "{{ etcd_peer_port }}"
connect_timeout: 1
state: stopped
when: inventory_hostname in groups['etcd']
- name: Checking free port for Etcd Client
wait_for:
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
port: "{{ etcd_client_port }}"
connect_timeout: 1
state: stopped
when: inventory_hostname in groups['etcd']
- name: Checking free port for Glance API
wait_for:
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"