hosts.j2 460 Bytes
Newer Older
1
127.0.0.1       localhost
2
{% for master in groups["master"] %}
Ioannis Tsafaras's avatar
Ioannis Tsafaras committed
3
{{ hostvars[master]["internal_ip"] }}	{{ master | replace(".vm.okeanos.grnet.gr",".local") }}
4 5
{% endfor %}
{% for slave in groups["slaves"] %}
Ioannis Tsafaras's avatar
Ioannis Tsafaras committed
6
{{ hostvars[slave]["internal_ip"] }}	{{ slave | replace(".vm.okeanos.grnet.gr",".local") }}
7
{% endfor %}
8 9 10 11 12

# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters