-
Notifications
You must be signed in to change notification settings - Fork 9
Description
Hello,
Shouldn't pass an entry if the hostname is the same as primary_name ?
As an example, we're using this module on a cluster. Each machine use a public network and a private one. We want all traffic to go through the private network so all nodes has been added as entries.
We end up with a hosts file like this on node01 :
1.2.3.1 node01.domain.com node01
dead::beef node01.domain.com node01
10.10.10.1 node01.domain.com node01
10.10.10.2 node02.domain.com node02
and so on ...
This create a duplicate entry for the local node. AFAIK the first one is used by this could potentially create strange behavior right ?
A good practice would be to filter entries corresponding to primary_name.
Sorry, I tried to create the code in the template file but it far above my skills.
Thanks !