I am using the puppet example42/hosts module to have a dynamic /etc/hosts file.
Its working fine so far but i have one more requirement, i need to force update on all other nodes if one node changes or get added.
I have a cluster where all nodes must use hostnames, so we use /etc/hosts. I want to configure autoscaling for this cluster, but my biggest problem is the hosts file, so when a new node comes up all other nodes need to be notify that the hosts file changed, so the make pull the new file.
--You received this message because you are subscribed to the Google Groups "Puppet Users" group.To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/52DE1692.1060703%40recommind.com.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
About the offtopic dhcp vs hosts file, most clusters like to have the ips defined on the hosts file, f.e. in Hacmp cluster it is mandatory. Also, imho, it is not a good idea to have dhcp for cluster nodes.
I think this could be accomplished with exported resources, on every node export a file with his IP, and collect the other ones. Then with a custom script you could verify if the entry is on the hosts file.
About the offtopic dhcp vs hosts file, most clusters like to have the ips defined on the hosts file, f.e. in Hacmp cluster it is mandatory. Also, imho, it is not a good idea to have dhcp for cluster nodes.