summaryrefslogtreecommitdiffstats
path: root/ansible/node/roles/common/templates/hosts.j2
blob: c575ea2cb8ac5fe26329cc060a0f654e2ec40d37 (plain)
1
2
3
4
5
6
7
8
9
10
# Generated by autocluster
127.0.0.1	localhost localhost.localdomain localhost4 localhost4.localdomain4
::1		localhost localhost.localdomain localhost6 localhost6.localdomain6

{{ virthost }}	kvmhost

# autocluster {{ cluster }}
{% for hostname, n in nodes | dictsort %}
{{ n.ips[0] }}	{{ hostname }}.{{ resolv_conf.domain | lower }} {{ hostname }}
{% endfor                              %}