2
0
salt-formula/dev/setup-salt.sh
Martin Griesbach 78048d88b2 Vagrant Updates:
* add Vagrant temp files to .gitignore
	* Update Vagrant Basebox to bento/ubuntu-18.04 (bento images deliver better Vagrant integration)
	* Update Vagrant setup-salt.sh to use the current salt bootstrap script.
2019-12-11 19:03:35 +01:00

18 lines
609 B
Bash

#!/bin/sh
curl -o bootstrap-salt.sh -L https://bootstrap.saltstack.com
sudo sh bootstrap-salt.sh stable
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
sleep 15 #give the minion a few seconds to register
# Accept all keys#
sudo salt-key -y -A