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

* glance_internal_fqdn
* glance_external_fqdn

These default to the old values of kolla_internal_fqdn or
kolla_external_fqdn.

This also adds a glance_api_listen_port option, which defaults to
glance_api_port for backward compatibility.

This option 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: Icb91f728533e2db1908b23dabb0501cf9f8a2b75
Implements: blueprint service-hostnames
2019-02-08 10:25:02 -05:00

17 lines
492 B
YAML

---
- name: Get container facts
kolla_container_facts:
name: "{{ glance_services.values()|map(attribute='container_name')|list }}"
register: container_facts
- name: Checking free port for Glance API
wait_for:
host: "{{ api_interface_address }}"
port: "{{ glance_api_listen_port }}"
connect_timeout: 1
timeout: 1
state: stopped
when:
- inventory_hostname in groups[glance_services['glance-api']['group']]
- container_facts['glance_api'] is not defined