2014-10-16 17:30:04 +02:00
|
|
|
#!/bin/sh
|
2016-04-04 20:28:35 +02:00
|
|
|
|
2019-12-11 19:03:35 +01:00
|
|
|
curl -o bootstrap-salt.sh -L https://bootstrap.saltstack.com
|
|
|
|
sudo sh bootstrap-salt.sh stable
|
2016-04-04 20:28:35 +02:00
|
|
|
|
2015-04-23 10:11:36 +02:00
|
|
|
sudo apt-get update -y
|
2014-10-16 17:30:04 +02:00
|
|
|
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
|
2014-10-17 09:46:33 +02:00
|
|
|
sleep 15 #give the minion a few seconds to register
|
2019-12-11 19:03:35 +01:00
|
|
|
# Accept all keys#
|
2014-10-17 09:46:33 +02:00
|
|
|
sudo salt-key -y -A
|