0
0
mirror of https://github.com/saltstack-formulas/salt-formula.git synced 2024-11-30 21:45:25 +01:00

Vagrant: increased wait to ensure the minion sent it's key to the master before Accepting all keys.

This commit is contained in:
Martin Griesbach 2014-10-17 09:46:33 +02:00
parent 862421e80f
commit 0c0b1745a8

View File

@ -3,13 +3,12 @@ sudo add-apt-repository ppa:saltstack/salt -y
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 apt-get install salt-minion -y sudo apt-get install salt-minion -y
# Accept all keys#
sleep 5 #give the minion a few seconds to register
sudo salt-key -y -A
# setup top files to test the formula # setup top files to test the formula
sudo mkdir -p /srv/pillar sudo mkdir -p /srv/pillar
sudo ln -s /srv/salt/pillar.example /srv/pillar/salt.sls sudo ln -s /srv/salt/pillar.example /srv/pillar/salt.sls
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
sudo salt-key -y -A