Add fqdn and cloud_domain templates to tripleo-hieradata

These templates will take the place of the {{role}} and host_extraconfig
hieradata from Heat.

Change-Id: I9c038399fccc4730b73e1a52281d7256ea689ee9
This commit is contained in:
James Slagle 2019-07-03 09:38:30 -04:00 committed by Emilien Macchi
parent b29b44c34b
commit 59f823175c
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,3 @@
{
"tripleo::clouddomain": "{{cloud_domain}}"
}

View File

@ -0,0 +1,11 @@
{
"fqdn_ctlplane": "{{ inventory_hostname ~ '.ctlplane.' ~ cloud_domain }}",
"fqdn_canonical": "{{ inventory_hostname ~ '.' ~ cloud_domain }}"{% if enabled_networks | length > 0 and role_networks | length > 0 %},{% endif %}
{% for network in enabled_networks %}
{% if network in role_networks %}
"fqdn_{{ networks[network]['name_lower'] }}": "{{ inventory_hostname ~ '.' ~ network | lower ~ '.' ~ cloud_domain }}"
{%- endif %}{% if not loop.last and loop.nextitem | default("") in role_networks %},
{% endif %}
{%- endfor %}
}