kolla-ansible/ansible/roles/heat/tasks/precheck.yml
Jim Rollenhagen d0fc1ec278 Allow heat services to use independent hostnames
This allows heat service endpoints to use custom hostnames, and adds the
following variables:

* heat_internal_fqdn
* heat_external_fqdn
* heat_cfn_internal_fqdn
* heat_cfn_external_fqdn

These default to the old values of kolla_internal_fqdn or
kolla_external_fqdn.

This also adds heat_api_listen_port and heat_api_cfn_listen_port
options, which default to heat_api_port and heat_api_cfn_port for
backward compatibility.

These options allow the user to differentiate between the port the
service listens on, and the port the service is reachable on. This is
useful for external load balancers which live on the same host as the
service itself.

Change-Id: Ifb8bb55799703883d81be6a55641be7b2474fd4e
Implements: blueprint service-hostnames
2019-03-06 15:08:28 -05:00

30 lines
735 B
YAML

---
- name: Get container facts
kolla_container_facts:
name:
- heat_api
- heat_api_cfn
register: container_facts
- name: Checking free port for Heat API
wait_for:
host: "{{ api_interface_address }}"
port: "{{ heat_api_listen_port }}"
connect_timeout: 1
timeout: 1
state: stopped
when:
- container_facts['heat_api'] is not defined
- inventory_hostname in groups['heat-api']
- name: Checking free port for Heat API CFN
wait_for:
host: "{{ api_interface_address }}"
port: "{{ heat_api_cfn_listen_port }}"
connect_timeout: 1
timeout: 1
state: stopped
when:
- container_facts['heat_api_cfn'] is not defined
- inventory_hostname in groups['heat-api-cfn']