Skip to content

Instantly share code, notes, and snippets.

@madprog
Created June 9, 2015 16:23
Show Gist options
  • Save madprog/f12747b7f411351532d7 to your computer and use it in GitHub Desktop.
Save madprog/f12747b7f411351532d7 to your computer and use it in GitHub Desktop.
Bootstrap and configure salt minion
#!/bin/sh
set -xe
master_hostname=bumblebee.htkc.org
curl -L https://bootstrap.saltstack.com -o install_salt.sh
sudo sh install_salt.sh
sudo sh -c "echo 'master: $master_hostname' > /etc/salt/minion"
sudo service salt-minion restart
echo -n "\x1b[32m"
echo "Minion ready. Please accept the key on $master_hostname with:"
echo "sudo salt-key -a $(cat /etc/salt/minion_id)"
echo "\x1b[0m"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment