Fix octavia_nodes rendering in octavia-deployment-config.j2.yaml

Regression from earlier patch[1].

[1] https://review.opendev.org/c/openstack/tripleo-heat-templates/+/791414

Closes-Bug: #1929402
Change-Id: I780e48e9b116ea381ae3a55f5147d1e65fe6d50f
This commit is contained in:
ramishra 2021-05-24 16:51:25 +05:30 committed by Rabi Mishra
parent 098df978cf
commit 83668920ec
1 changed files with 4 additions and 0 deletions

View File

@ -291,9 +291,11 @@ outputs:
content: |
octavia_nodes:
hosts:
{%- set octavia_groups = ['worker'] -%}
{%- for octavia_group in octavia_groups -%}
{%- if 'octavia_' ~ octavia_groups %}
{% for host in groups['octavia_' ~ octavia_group] -%}
{{ hostvars.raw_get(host)['ansible_facts']['hostname'] | lower}}:
ansible_user: {{ hostvars.raw_get(host)['ansible_ssh_user'] | default('heat-admin') }}
@ -301,8 +303,10 @@ outputs:
canonical_hostname: {{ hostvars.raw_get(host)['canonical_hostname'] | default(host) | lower }}
ansible_become: true
{% endfor %}
{%- endif -%}
{%- endfor %}
Undercloud:
hosts:
{% for host in groups['Undercloud'] -%}