edf-hpc / puppet-hpc

Generic Puppet Configuration for HPC Clusters
http://edf-hpc.github.io/puppet-hpc/
GNU General Public License v2.0
13 stars 4 forks source link

Use adm network static IP addr instead of 127.0.1.1 in /etc/hosts #116

Closed rezib closed 7 years ago

rezib commented 7 years ago

Currently, the network module appends a line in /etc/hosts for binding the hostname + FQDN to 127.0.1.1:

https://github.com/edf-hpc/puppet-hpc/blob/81b6aeabd5536d61a78a2cb19aff4df37529e37d/puppet-config/modules/network/manifests/config.pp#L50

This is raw copy of the default behaviour of the debian-installer. This causes some issues with services running on the local machines but not listening on localhost interface, ex: ceph usespace daemons.

There is a section of the Debian Reference guide mentioning this point: https://www.debian.org/doc/manuals/debian-reference/ch05.en.html#_the_hostname_resolution

According to this section, "For a system with a permanent IP address, that permanent IP address should be used here instead of 127.0.1.1.". All clusters nodes have static IP addresses on the administration network. This address must be used in place of 127.0.1.1.