Set canonical hostname in octavia config inventory

Use the canonical hostname from the tripleo-ansible-inventory instead of
the host name to catch the proper fqdn for that host. This is required
for proper binding of the health manager ports within neutron.

Closes-Bug: #1837043

Change-Id: I5d23b02ca46a40b39dc25a8367541b0a6e517982
This commit is contained in:
Brent Eagles 2019-07-16 13:11:52 -02:30
parent dac0f85f7a
commit 71b69e8659
1 changed files with 1 additions and 0 deletions

View File

@ -284,6 +284,7 @@ outputs:
{{ hostvars.raw_get(host)['ansible_hostname'] }}:
ansible_user: {{ hostvars.raw_get(host)['ansible_ssh_user'] | default('heat-admin') }}
ansible_host: {{ hostvars.raw_get(host)['ansible_host'] | default(host) }}
canonical_hostname: {{ hostvars.raw_get(host)['canonical_hostname'] | default(host) }}
ansible_become: true
{% endfor %}