Solved Why Do We Get IP Local Hostnames for Salt Minion Keys
-
Name like this: ip-65-75-137-152.local
These regularly show up in the Salt Master when looking for keys. But why? What is producing them? And if you accept them, even when they are obviously being produced by a known server, they never work. This seems to be a very regular and expected problem, yet I find almost no mention of it online.
-
Okay, finally got around to tracking this down. In your minion file, on Linux systems this would be /etc/salt/minion, you need to uncomment the id: field and put in the name that you want to use and restart your minion process. This will update the name as seen in the Salt Master.
-
@scottalanmiller Did you ever get this fixed?
-
No, and I'm still annoyed by it, but not enough to do a big investigation as it almost never happens anymore and only seems to with the non-production systems, so there isn't any weird impact yet.
-
@scottalanmiller said in Why Do We Get IP Local Hostnames for Salt Minion Keys:
No, and I'm still annoyed by it, but not enough to do a big investigation as it almost never happens anymore and only seems to with the non-production systems, so there isn't any weird impact yet.
I've done probably 30 fresh salt-minions, and a few from templates as well... and have yet to see this once... You are approaching snowflake status, ha ha.
-
@dafyre said in Why Do We Get IP Local Hostnames for Salt Minion Keys:
@scottalanmiller said in Why Do We Get IP Local Hostnames for Salt Minion Keys:
No, and I'm still annoyed by it, but not enough to do a big investigation as it almost never happens anymore and only seems to with the non-production systems, so there isn't any weird impact yet.
I've done probably 30 fresh salt-minions, and a few from templates as well... and have yet to see this once... You are approaching snowflake status, ha ha.
And I get it relatively regularly on several different systems!
-
And I mean several Salt Masters, not just many Minions. Several totally unique systems, all have it.
-
Okay, finally got around to tracking this down. In your minion file, on Linux systems this would be /etc/salt/minion, you need to uncomment the id: field and put in the name that you want to use and restart your minion process. This will update the name as seen in the Salt Master.
-
@scottalanmiller said in Why Do We Get IP Local Hostnames for Salt Minion Keys:
Okay, finally got around to tracking this down. In your minion file, on Linux systems this would be /etc/salt/minion, you need to uncomment the id: field and put in the name that you want to use and restart your minion process. This will update the name as seen in the Salt Master.
Is this separate from the /etc/salt/minion_id file?
-
@dafyre said in Why Do We Get IP Local Hostnames for Salt Minion Keys:
@scottalanmiller said in Why Do We Get IP Local Hostnames for Salt Minion Keys:
Okay, finally got around to tracking this down. In your minion file, on Linux systems this would be /etc/salt/minion, you need to uncomment the id: field and put in the name that you want to use and restart your minion process. This will update the name as seen in the Salt Master.
Is this separate from the /etc/salt/minion_id file?
It's just in the minion file.