Changing Name of Salt-Minion

Ran into an issue the other day when installing and registering a Salt Minion with its master.

The Host name wasn’t exactly what my OCD wanted when it registered its Key with the Master, so I needed to change the name of the key.

  1. Stop the Salt-Minion Service (service salt-minion stop)
  2. Delete the current keys (rm /etc/salt/pki/minion/minion.pub and minion.pem)
  3. Change the minions id in /etc/salt/minion_d
  4. on the Salt master Delete the key (Salt-key –delete <key>)
  5. Restart the Salt minion service (service salt-minion start)
  6. on the Salt Master Accept the key (salt-key –accept-all (or key))

Now to go back and fix all the other keys so they satisfy my OCD.

Bookmark the permalink.

Comments are closed.