Last active
July 14, 2016 12:52
-
-
Save Ham5ter/45496cdafd9824abb570d776cff651df to your computer and use it in GitHub Desktop.
salt-bootstrap.sh
This file contains hidden or 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/bash | |
apt-get update | |
apt-get install wget -y | |
wget -O - https://repo.saltstack.com/apt/ubuntu/14.04/amd64/latest/SALTSTACK-GPG-KEY.pub | sudo apt-key add - | |
echo "deb http://repo.saltstack.com/apt/ubuntu/14.04/amd64/latest trusty main" > /etc/apt/sources.list.d/saltstack.list | |
apt-get update | |
apt-get install salt-minion -y | |
cat << EOF > /etc/salt/minion | |
master: $1 | |
EOF | |
service salt-minion restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment