Skip to content
Snippets Groups Projects
Commit fca27bf0 authored by Jenkins's avatar Jenkins Committed by Gerrit Code Review
Browse files

Merge "Move horizon precheck into its own role"

parents 70ccea2b 779b0f83
No related branches found
No related tags found
No related merge requests found
...@@ -80,6 +80,17 @@ ...@@ -80,6 +80,17 @@
- "{{ 'heat_api_cfn' not in haproxy_stat }}" - "{{ 'heat_api_cfn' not in haproxy_stat }}"
- inventory_hostname in groups['haproxy'] - inventory_hostname in groups['haproxy']
- name: Checking free port for Horizon HAProxy
wait_for:
host: "{{ kolla_internal_vip_address }}"
port: "80"
connect_timeout: 1
state: stopped
when:
- enable_horizon | bool
- "{{ 'horizon' not in haproxy_stat }}"
- inventory_hostname in groups['haproxy']
- name: Checking free port for watcher API HAProxy - name: Checking free port for watcher API HAProxy
wait_for: wait_for:
host: "{{ kolla_internal_vip_address }}" host: "{{ kolla_internal_vip_address }}"
......
--- ---
- name: Get container facts
kolla_container_facts:
name:
- horizon
register: container_facts
- name: Checking free port for Horizon
wait_for:
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
port: "80"
connect_timeout: 1
state: stopped
when:
- container_facts['horizon'] is not defined
- inventory_hostname in groups['horizon']
...@@ -193,30 +193,6 @@ ...@@ -193,30 +193,6 @@
- enable_haproxy | bool - enable_haproxy | bool
- inventory_hostname in groups['haproxy'] - inventory_hostname in groups['haproxy']
- name: Checking free port for Horizon
wait_for:
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
port: "80"
connect_timeout: 1
state: stopped
when:
- enable_horizon | bool
- inventory_hostname in groups['horizon']
- name: Checking free port for Horizon HAProxy
wait_for:
host: "{{ kolla_internal_vip_address }}"
port: "80"
connect_timeout: 1
state: stopped
when:
- enable_horizon | bool
- inventory_hostname in groups['haproxy']
- name: Checking free port for Ironic - name: Checking free port for Ironic
wait_for: wait_for:
host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}" host: "{{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment