Move gnocchi precheck into its own role
Change-Id: I6514284ff2f67ec20f37c6953ad5f8fd36a4e90f Partially-implements: blueprint condition-pre-check
This commit is contained in:
parent
9d3a60ecf9
commit
14dcab0cee
@ -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']
|
||||
|
@ -58,6 +58,17 @@
|
||||
- inventory_hostname in groups['haproxy']
|
||||
- "{{ '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
|
||||
wait_for:
|
||||
host: "{{ kolla_internal_vip_address }}"
|
||||
|
@ -133,26 +133,6 @@
|
||||
- enable_etcd | bool
|
||||
- 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
|
||||
wait_for:
|
||||
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
|
||||
|
Loading…
Reference in New Issue
Block a user