Merge "Move gnocchi precheck into its own role"
This commit is contained in:
commit
5b06cd75f8
@ -1 +1,16 @@
|
|||||||
---
|
---
|
||||||
|
- name: Get container facts
|
||||||
|
kolla_container_facts:
|
||||||
|
name:
|
||||||
|
- gnocchi_api
|
||||||
|
register: container_facts
|
||||||
|
|
||||||
|
- name: Checking free port for Gnocchi API
|
||||||
|
wait_for:
|
||||||
|
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
|
||||||
|
port: "{{ gnocchi_api_port }}"
|
||||||
|
connect_timeout: 1
|
||||||
|
state: stopped
|
||||||
|
when:
|
||||||
|
- container_facts['gnocchi_api'] is not defined
|
||||||
|
- inventory_hostname in groups['gnocchi-api']
|
||||||
|
@ -113,6 +113,17 @@
|
|||||||
- inventory_hostname in groups['haproxy']
|
- inventory_hostname in groups['haproxy']
|
||||||
- "{{ 'glance_registry' not in haproxy_stat }}"
|
- "{{ 'glance_registry' not in haproxy_stat }}"
|
||||||
|
|
||||||
|
- name: Checking free port for Gnocchi API HAProxy
|
||||||
|
wait_for:
|
||||||
|
host: "{{ kolla_internal_vip_address }}"
|
||||||
|
port: "{{ gnocchi_api_port }}"
|
||||||
|
connect_timeout: 1
|
||||||
|
state: stopped
|
||||||
|
when:
|
||||||
|
- enable_gnocchi | bool
|
||||||
|
- "{{ 'gnocchi_api' not in haproxy_stat }}"
|
||||||
|
- inventory_hostname in groups['haproxy']
|
||||||
|
|
||||||
- name: Checking free port for Heat API HAProxy
|
- name: Checking free port for Heat API HAProxy
|
||||||
wait_for:
|
wait_for:
|
||||||
host: "{{ kolla_internal_vip_address }}"
|
host: "{{ kolla_internal_vip_address }}"
|
||||||
|
@ -53,26 +53,6 @@
|
|||||||
- enable_etcd | bool
|
- enable_etcd | bool
|
||||||
- inventory_hostname in groups['etcd']
|
- inventory_hostname in groups['etcd']
|
||||||
|
|
||||||
- name: Checking free port for Gnocchi API
|
|
||||||
wait_for:
|
|
||||||
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
|
|
||||||
port: "{{ gnocchi_api_port }}"
|
|
||||||
connect_timeout: 1
|
|
||||||
state: stopped
|
|
||||||
when:
|
|
||||||
- enable_gnocchi | bool
|
|
||||||
- inventory_hostname in groups['gnocchi-api']
|
|
||||||
|
|
||||||
- name: Checking free port for Gnocchi API HAProxy
|
|
||||||
wait_for:
|
|
||||||
host: "{{ kolla_internal_vip_address }}"
|
|
||||||
port: "{{ gnocchi_api_port }}"
|
|
||||||
connect_timeout: 1
|
|
||||||
state: stopped
|
|
||||||
when:
|
|
||||||
- enable_gnocchi | bool
|
|
||||||
- inventory_hostname in groups['haproxy']
|
|
||||||
|
|
||||||
- name: Checking free port for Kuryr
|
- name: Checking free port for Kuryr
|
||||||
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