saltstack-formulas / hostsfile-formula

Use minion IDs to keep /etc/hosts and hostnames consistent for clusters without DNS
http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html
Other
33 stars 89 forks source link

virtual ip will be config in /etc/hosts, if config /etc/hosts vip will in fqdn ip list #24

Open edwin--zhao opened 6 years ago

edwin--zhao commented 6 years ago

When I use keepalived , the interface have more then one ip address, if use network.ip_addrs we will get all ips , so virtual ips will be config to /etc/hosts, I change the mine function and sls , use network.interface_ip to get one ip address. I hope fqdn keep only one ip address.

If anyone have the same problems with me, you can refer to my practice, if most people don't want to virtual IP become the FQDN, we may consider to submit PR

mdschmitt commented 2 years ago

Closable. The minealias pillar value exists to allow for this.