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

Fixed formula so that if the mine function returns a single IP as a s… #15

Closed bentwire closed 8 years ago

bentwire commented 8 years ago

…tring, it does not get corrupted.

bentwire commented 8 years ago

If we want to pull mine out of this and move it to pillar I could write up a patch for that instead.

iggy commented 8 years ago

Mine lookups in pillar are still kind of iffy... let's just go with this for now.

bentwire commented 8 years ago

@iggy Would you mind if I created a branch with the pillarization changes in it and give you a PR for that? You could create a separate branch for it here if you would like.

iggy commented 8 years ago

The problem is there are too many versions of Salt in the wild where mine lookups in pillar just don't work.

bentwire commented 8 years ago

@iggy Ah, yeah I see the issue there...