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

This commit is contained in:
Zuul 2021-05-27 22:23:23 +00:00 committed by Gerrit Code Review
commit 4f8de07442
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'] -%}