Created
May 18, 2017 13:40
-
-
Save devinnasar/fbc6d2573321908a88b120ae12d30509 to your computer and use it in GitHub Desktop.
Original bootstrapping script
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 | |
# use the latest stable Salt from repo.saltstack.com | |
wget -O - https://repo.saltstack.com/apt/ubuntu/14.04/amd64/latest/SALTSTACK-GPG-KEY.pub | sudo apt-key add - | |
sudo echo 'deb http://repo.saltstack.com/apt/ubuntu/14.04/amd64/latest trusty main' > /etc/apt/sources.list.d/saltstack.list | |
sudo apt-get update -y | |
sudo apt-get install salt-master -y | |
sudo apt-get install salt-minion -y | |
# setup top files to test the formula | |
sudo mkdir -p /srv/pillar | |
sudo ln -s /srv/salt/pillar.example /srv/pillar/salt.sls | |
sudo ln -s /srv/salt/dev/pillar_top.sls /srv/pillar/top.sls | |
# this file will be copied to make a running config. it should not be checked in. | |
sudo cp /srv/salt/dev/state_top.sls /srv/salt/top.sls | |
# Accept all keys# | |
sleep 15 #give the minion a few seconds to register | |
sudo salt-key -y -A |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment