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.
- Stop the Salt-Minion Service (service salt-minion stop)
- Delete the current keys (rm /etc/salt/pki/minion/minion.pub and minion.pem)
- Change the minions id in /etc/salt/minion_d
- on the Salt master Delete the key (Salt-key –delete <key>)
- Restart the Salt minion service (service salt-minion start)
- 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.