Merge "Move kibana precheck into its own role"

This commit is contained in:
Jenkins 2017-01-13 13:51:22 +00:00 committed by Gerrit Code Review
commit 1cdda5b4ad
3 changed files with 26 additions and 10 deletions

View File

@ -179,6 +179,17 @@
- "{{ 'ironic_api' not in haproxy_stat }}" - "{{ 'ironic_api' not in haproxy_stat }}"
- inventory_hostname in groups['haproxy'] - inventory_hostname in groups['haproxy']
- name: Checking free port for Kibana HAProxy
wait_for:
host: "{{ kolla_internal_vip_address }}"
port: "{{ kibana_server_port }}"
connect_timeout: 1
state: stopped
when:
- enable_kibana | bool
- "{{ 'kibana' not in haproxy_stat }}"
- inventory_hostname in groups['haproxy']
- name: Checking free port for Magnum API HAProxy - name: Checking free port for Magnum API HAProxy
wait_for: wait_for:
host: "{{ kolla_internal_vip_address }}" host: "{{ kolla_internal_vip_address }}"

View File

@ -1 +1,16 @@
--- ---
- name: Get container facts
kolla_container_facts:
name:
- kibana
register: container_facts
- name: Checking free port for Kibana Server
wait_for:
host: "{{ hostvars[inventory_hostname]['ansible_' + storage_interface]['ipv4']['address'] }}"
port: "{{ kibana_server_port }}"
connect_timeout: 1
state: stopped
when:
- container_facts['kibana'] is not defined
- inventory_hostname in groups['kibana']

View File

@ -193,16 +193,6 @@
- inventory_hostname in groups['haproxy'] - inventory_hostname in groups['haproxy']
- enable_mongodb | bool - enable_mongodb | bool
- name: Checking free port for Kibana Server
wait_for:
host: "{{ hostvars[inventory_hostname]['ansible_' + storage_interface]['ipv4']['address'] }}"
port: "{{ kibana_server_port }}"
connect_timeout: 1
state: stopped
when:
- inventory_hostname in groups['kibana']
- enable_kibana | bool
- name: Checking free port for Rsync - name: Checking free port for Rsync
wait_for: wait_for:
host: "{{ hostvars[inventory_hostname]['ansible_' + storage_interface]['ipv4']['address'] }}" host: "{{ hostvars[inventory_hostname]['ansible_' + storage_interface]['ipv4']['address'] }}"