Last active
July 29, 2020 17:27
-
-
Save kksudo/34d8704f44a7aa5a2d90e7f733c7e151 to your computer and use it in GitHub Desktop.
Regenerate keys for the salt on the minion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
systemctl stop salt-minion | |
rm -f /etc/salt/pki/minion/minion.pem | |
rm -f /etc/salt/pki/minion/minion.pub | |
cp -f /dev/null /etc/salt/minion_id | |
systemctl enable salt-minion | |
systemctl start salt-minion |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment