Added a Vagrant setup to instantly test the formula

This commit is contained in:
Martin Griesbach
2014-10-16 17:30:04 +02:00
parent 1682df8592
commit 862421e80f
5 changed files with 50 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
base:
'salt':
- salt
+15
View File
@@ -0,0 +1,15 @@
#!/bin/sh
sudo add-apt-repository ppa:saltstack/salt -y
sudo apt-get update -y
sudo apt-get install salt-master -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
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
+5
View File
@@ -0,0 +1,5 @@
base:
'salt':
- salt.master
- salt.minion
- salt.cloud