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

Allow explicit host entries in pillar. #17

Closed andrew-vant closed 8 years ago

andrew-vant commented 8 years ago

This is useful for distributing names that are not in mine for whatever reason (e.g. external dependencies).

This also changes the name of the hostsfile:filter subkey to hostsfile:minions, which I think is more intuitive relative to what this PR adds. My previous PR got merged before I was done updating it (I didn't think about the difference until after putting it in). I doubt anyone's written anything depending on it yet so I don't think the change will break anything.

andrew-vant commented 8 years ago

Updated to account for @puneetk's comment; if some host is provided by both pillar and mine, pillar gets priority.

gravyboat commented 8 years ago

Thanks!