Include upstream and short names in hosts

This commit is contained in:
Joshua Boniface 2020-04-06 13:36:15 -04:00
parent e37f2af6cd
commit c591b1e39f
1 changed files with 3 additions and 2 deletions

View File

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