From 71b69e865947cfdbaa60097a6f538b0303e6764b Mon Sep 17 00:00:00 2001 From: Brent Eagles Date: Tue, 16 Jul 2019 13:11:52 -0230 Subject: [PATCH] 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 --- deployment/octavia/octavia-deployment-config.j2.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/deployment/octavia/octavia-deployment-config.j2.yaml b/deployment/octavia/octavia-deployment-config.j2.yaml index f3808e8ce6..f9374acc24 100644 --- a/deployment/octavia/octavia-deployment-config.j2.yaml +++ b/deployment/octavia/octavia-deployment-config.j2.yaml @@ -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 %}