ganeti-ansible/roles/node/templates/etc-hosts.j2

14 lines
299 B
Plaintext
Raw Permalink Normal View History

2024-11-26 14:56:58 +00:00
127.0.0.1 localhost
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
{% for node in groups['nodes'] %}
{{ node }} ganeti-{{ groups['nodes'].index(node) + 1 }}.ganeti
{% endfor %}
{% for item in hostnames %}
{{ item.ip }} {{ item.name }}
{% endfor %}