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

Cleanup old (non-existant) hosts #6

Open TaiSHiNet opened 9 years ago

TaiSHiNet commented 9 years ago

If no mined data exists for a host, it should be deleted from the hostsfiles to keep it clean

sf-devops commented 9 years ago

This would be very useful!

bentwire commented 8 years ago

The only way I could think of actually doing this would be to use a reactor. There is no way to get the missing info on what needs to be deleted otherwise.

simonclausen commented 8 years ago

Just mark entries by the formula, so it can find them again, compare to mine and remove if not present.