Skip to content

Instantly share code, notes, and snippets.

@gravyboat
Forked from tcotav/reinit-salt-minion.sh
Created August 14, 2014 17:37
Show Gist options
  • Save gravyboat/e6b93a6c1e6f9a776062 to your computer and use it in GitHub Desktop.
Save gravyboat/e6b93a6c1e6f9a776062 to your computer and use it in GitHub Desktop.
#!/bin/bash
# basically delete all signs of previous id and data
# and start over
/etc/init.d/salt-minion stop
rm -Rf /var/cache/salt/minion
rm /etc/salt/minion_id
rm -Rf /etc/salt/pki
/etc/init.d/salt-minion start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment