Skip to content

Instantly share code, notes, and snippets.

@tcotav
Last active August 29, 2015 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save tcotav/a42d6b530e8bfda9f5cc to your computer and use it in GitHub Desktop.
Save tcotav/a42d6b530e8bfda9f5cc to your computer and use it in GitHub Desktop.
Re-initialize salt-minion
#!/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