Skip to content

Instantly share code, notes, and snippets.

@Ham5ter
Last active July 14, 2016 12:52
Show Gist options
  • Save Ham5ter/45496cdafd9824abb570d776cff651df to your computer and use it in GitHub Desktop.
Save Ham5ter/45496cdafd9824abb570d776cff651df to your computer and use it in GitHub Desktop.
salt-bootstrap.sh
#!/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