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:
parent
098df978cf
commit
83668920ec
|
@ -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'] -%}
|
||||
|
|
Loading…
Reference in New Issue