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

* designate_internal_fqdn
* designate_external_fqdn

These default to the old values of kolla_internal_fqdn or
kolla_external_fqdn.

This also adds a designate_api_listen_port option, which defaults to
designate_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: I654bb3d1109b96cbaff6f450655cd65f349a94e6
Implements: blueprint service-hostnames
2019-03-06 15:08:28 -05:00

55 lines
1.6 KiB
YAML

---
- name: Get container facts
kolla_container_facts:
name:
- designate_api
- designate_backend_bind9
- designate_mdns
register: container_facts
- name: Checking free port for designate API
wait_for:
host: "{{ api_interface_address }}"
port: "{{ designate_api_listen_port }}"
connect_timeout: 1
timeout: 1
state: stopped
when:
- container_facts['designate_api'] is not defined
- inventory_hostname in groups['designate-api']
- name: Checking free port for designate mdns
wait_for:
host: "{{ hostvars[inventory_hostname]['ansible_' + dns_interface]['ipv4']['address'] }}"
port: "{{ designate_mdns_port }}"
connect_timeout: 1
timeout: 1
state: stopped
when:
- container_facts['designate_mdns'] is not defined
- inventory_hostname in groups['designate-mdns']
- name: Checking free port for designate backend bind9 port
wait_for:
host: "{{ api_interface_address }}"
port: "{{ designate_bind_port }}"
connect_timeout: 1
timeout: 1
state: stopped
when:
- designate_backend == 'bind9'
- container_facts['designate_backend_bind9'] is not defined
- inventory_hostname in groups['designate-backend-bind9']
- name: Checking free port for designate backend rndc port
wait_for:
host: "{{ api_interface_address }}"
port: "{{ designate_rndc_port }}"
connect_timeout: 1
timeout: 1
state: stopped
when:
- designate_backend == 'bind9'
- container_facts['designate_backend_bind9'] is not defined
- inventory_hostname in groups['designate-backend-bind9']