Use fqdn

andrewbastien:

The use_fqdn param doesn't affect the localhost entries, only the entry for the nodes own fqdn. It is useful when the fqdn determined by the $::fqdn fact doesn't resolve to the ip address that you want to include in the hosts file. For example, when your node has both a public and private ip address, the dns record points to the public address, and you want to include the private address in /etc/hosts.

One option to using the use_fqdn parameter could be to change the fqdn_entry_enabled parameter to not define the Host value for the local node instead of defining it and setting ensure => absent.

But regardless of how it is implemented, the module should have the ability to override how or whether it includes a node's fqdn in /etc/hosts.

We need this capability so our boost nodes can connect to each other by hostname over infiniband. Without it we have to put in every node's yaml file host::host_entries for all the boost nodes except for it's own. With it, we can just put them all in the role file. So we only have to manage one file and 60 entries instead of 60 files and 3540 entries.