Include upstream and short names in hosts

This commit is contained in:
Joshua Boniface 2023-09-01 15:42:23 -04:00
parent 6a3c32f306
commit 7e653d52c3
1 changed files with 3 additions and 2 deletions

View File

@ -7,8 +7,9 @@ ff02::1 ip6-allmodes
ff02::2 ip6-allrouters
{% for node in pvc_nodes %}
{{ node.cluster_ip }} {{ node.hostname }}.{{ pvc_cluster_domain }} {{ node.hostname }}
{{ node.storage_ip }} {{ node.hostname }}.{{ pvc_storage_domain }}
{{ node.cluster_ip }} {{ node.hostname.split('.')[0] }}.{{ pvc_cluster_domain }} {{ node.hostname.split('.')[0] }}
{{ node.storage_ip }} {{ node.hostname.split('.')[0] }}.{{ pvc_storage_domain }}
{{ node.upstream_ip }} {{ node.hostname.split('.')[0] }}.{{ local_domain }}
{% endfor %}
{% if hosts is defined %}