On Friday, September 27, 2013 04:54:46 PM Sagar Srivastava wrote:
> I love this wonderful salt, it has spiced my work life!
>
> My problem is my salt minions keep changing their name ( on reboots,
> patching etc ). since names are case sensitive, I have to keep changing
> top.sls and Node group definition to continue to keep things working.
I am way late to the party on this, but for archive / posterity purposes....
I'd like to point out a possible cause for this that I encountered for
understanding.
The name of your minion is based on the DNS lookup if something else is not
defined (like id in the minion.conf file). If your DNS has more than one name
for the server, it will grab one of them randomly. Hence, you'll approve the
key under one name, then try to run something, it might fail when it finds the
other name.
The solution like others have said is to assign an id in the minion.conf file.
Or clean out your DNS server of unneeded names. Or in my case it was a little
of each since I had to keep some of the multiple DNS names.