Merge "Move congress precheck into its own role"
This commit is contained in:
commit
3bfa038b37
@ -1 +1,16 @@
|
|||||||
---
|
---
|
||||||
|
- name: Get container facts
|
||||||
|
kolla_container_facts:
|
||||||
|
name:
|
||||||
|
- congress_api
|
||||||
|
register: container_facts
|
||||||
|
|
||||||
|
- name: Checking free port for Congress API
|
||||||
|
wait_for:
|
||||||
|
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
|
||||||
|
port: "{{ congress_api_port }}"
|
||||||
|
connect_timeout: 1
|
||||||
|
state: stopped
|
||||||
|
when:
|
||||||
|
- container_facts['congress_api'] is not defined
|
||||||
|
- inventory_hostname in groups['congress-api']
|
||||||
|
@ -69,6 +69,17 @@
|
|||||||
- "{{ 'cloudkitty_api' not in haproxy_stat }}"
|
- "{{ 'cloudkitty_api' not in haproxy_stat }}"
|
||||||
- inventory_hostname in groups['haproxy']
|
- inventory_hostname in groups['haproxy']
|
||||||
|
|
||||||
|
- name: Checking free port for Congress API HAProxy
|
||||||
|
wait_for:
|
||||||
|
host: "{{ kolla_internal_vip_address }}"
|
||||||
|
port: "{{ congress_api_port }}"
|
||||||
|
connect_timeout: 1
|
||||||
|
state: stopped
|
||||||
|
when:
|
||||||
|
- enable_congress | bool
|
||||||
|
- "{{ 'congress_api' not in haproxy_stat }}"
|
||||||
|
- inventory_hostname in groups['haproxy']
|
||||||
|
|
||||||
- name: Checking free port for Designate API HAProxy
|
- name: Checking free port for Designate API HAProxy
|
||||||
wait_for:
|
wait_for:
|
||||||
host: "{{ kolla_internal_vip_address }}"
|
host: "{{ kolla_internal_vip_address }}"
|
||||||
|
@ -33,26 +33,6 @@
|
|||||||
kolla_internal_vip_address | ipaddr(ip_addr_output.stdout.split()[3]) is none"
|
kolla_internal_vip_address | ipaddr(ip_addr_output.stdout.split()[3]) is none"
|
||||||
when: enable_haproxy | bool
|
when: enable_haproxy | bool
|
||||||
|
|
||||||
- name: Checking free port for Congress API
|
|
||||||
wait_for:
|
|
||||||
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
|
|
||||||
port: "{{ congress_api_port }}"
|
|
||||||
connect_timeout: 1
|
|
||||||
state: stopped
|
|
||||||
when:
|
|
||||||
- enable_congress | bool
|
|
||||||
- inventory_hostname in groups['congress-api']
|
|
||||||
|
|
||||||
- name: Checking free port for Congress API HAProxy
|
|
||||||
wait_for:
|
|
||||||
host: "{{ kolla_internal_vip_address }}"
|
|
||||||
port: "{{ congress_api_port }}"
|
|
||||||
connect_timeout: 1
|
|
||||||
state: stopped
|
|
||||||
when:
|
|
||||||
- enable_congress | bool
|
|
||||||
- inventory_hostname in groups['haproxy']
|
|
||||||
|
|
||||||
- name: Checking free port for Etcd Peer
|
- name: Checking free port for Etcd Peer
|
||||||
wait_for:
|
wait_for:
|
||||||
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
|
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user