Skip to content

Instantly share code, notes, and snippets.

@kksudo
Last active July 29, 2020 17:27
Show Gist options
  • Save kksudo/34d8704f44a7aa5a2d90e7f733c7e151 to your computer and use it in GitHub Desktop.
Save kksudo/34d8704f44a7aa5a2d90e7f733c7e151 to your computer and use it in GitHub Desktop.
Regenerate keys for the salt on the minion
#!/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