|
|
|
|
|
|
|
|
#!/bin/sh |
|
|
#!/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 - |
|
|
|
|
|
echo 'deb http://repo.saltstack.com/apt/ubuntu/14.04/amd64/latest trusty main' | sudo tee /etc/apt/sources.list.d/saltstack.list |
|
|
|
|
|
|
|
|
curl -o bootstrap-salt.sh -L https://bootstrap.saltstack.com |
|
|
|
|
|
sudo sh bootstrap-salt.sh stable |
|
|
|
|
|
|
|
|
sudo apt-get update -y |
|
|
sudo apt-get update -y |
|
|
sudo apt-get install salt-master -y |
|
|
sudo apt-get install salt-master -y |
|
|
|
|
|
|
|
|
sudo ln -s /srv/salt/dev/pillar_top.sls /srv/pillar/top.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. |
|
|
# 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 |
|
|
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 |
|
|
sleep 15 #give the minion a few seconds to register |
|
|
|
|
|
# Accept all keys# |
|
|
sudo salt-key -y -A |
|
|
sudo salt-key -y -A |