Solved SaltStack rename minion ?
-
Hi,
So SaltStack question, how can I rename minion ID after it got registered on the salt master ? I dont think that is possible or is it ?
For example I have minion with ID 172, and I want to rename it, without uninstalling it from the minion machine and the re-installing with the correct ID, lets say 175. So can this be done remotely from the Master ?
-
@msff-amman-Itofficer Do you have one administrator username and password across all computers?
-
have you tried changing the ID setting on the minion? I don't believe that that will rename it on the server after being joined, but it is where you would start.
-
@scottalanmiller said in SaltStack rename minion ?:
have you tried changing the ID setting on the minion? I don't believe that that will rename it on the server after being joined, but it is where you would start.
@scottalanmiller -- are you talking about the /etc/salt/minion_id file ?
-
@dafyre said in SaltStack rename minion ?:
@scottalanmiller said in SaltStack rename minion ?:
have you tried changing the ID setting on the minion? I don't believe that that will rename it on the server after being joined, but it is where you would start.
@scottalanmiller -- are you talking about the /etc/salt/minion_id file ?
There is an id field in the minion file.
-
@dafyre said in SaltStack rename minion ?:
@scottalanmiller said in SaltStack rename minion ?:
have you tried changing the ID setting on the minion? I don't believe that that will rename it on the server after being joined, but it is where you would start.
@scottalanmiller -- are you talking about the /etc/salt/minion_id file ?
This is located at the minion side not master side
-
@msff-amman-Itofficer said in SaltStack rename minion ?:
@dafyre said in SaltStack rename minion ?:
@scottalanmiller said in SaltStack rename minion ?:
have you tried changing the ID setting on the minion? I don't believe that that will rename it on the server after being joined, but it is where you would start.
@scottalanmiller -- are you talking about the /etc/salt/minion_id file ?
This is located at the minion side not master side
Correct
-
@scottalanmiller said in SaltStack rename minion ?:
have you tried changing the ID setting on the minion? I don't believe that that will rename it on the server after being joined, but it is where you would start.
I know I can change it from the minion side, but I wondered if it can be done from the master side
-
@aaronstuder said in SaltStack rename minion ?:
@msff-amman-Itofficer Do you have one administrator username and password across all computers?
Currently no, but if you have an idea share it as well, cause I can create 1 user account and 1 password across all computers using salt master
-
@msff-amman-Itofficer said in SaltStack rename minion ?:
@scottalanmiller said in SaltStack rename minion ?:
have you tried changing the ID setting on the minion? I don't believe that that will rename it on the server after being joined, but it is where you would start.
I know I can change it from the minion side, but I wondered if it can be done from the master side
You can change the Minion side from the Master
-
Lots of votes for this feature. but it does not appear to have been implemented.
-
-
Not having used salt yet myself, couldn't you set the contents of that file using the Salt Master?