Skip to content

Instantly share code, notes, and snippets.

@renoirb
Last active December 26, 2015 08:39
Show Gist options
  • Save renoirb/7124103 to your computer and use it in GitHub Desktop.
Save renoirb/7124103 to your computer and use it in GitHub Desktop.
Bootstrapping Salt Stack 0.17
#!/bin/bash
set -e
#
# http://intothesaltmine.org/blog/html/2013/03/04/upgrade_saltstack_installation.html
#
echo 'Updating refs'
apt-get update
echo 'Upgrading deps'
apt-get upgrade -y salt-minion
echo 'Bootstraping new Salt stack version'
wget -O - http://bootstrap.saltstack.org | sudo sh -s -- git v0.17.0
echo 'Cleaning previous master key'
rm -rf /etc/salt/pki/minion/minion_master.pub
echo 'Restarting service'
service salt-minion restart
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment