Created
June 9, 2015 16:23
-
-
Save madprog/f12747b7f411351532d7 to your computer and use it in GitHub Desktop.
Bootstrap and configure salt minion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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