- #!/bin/sh
-
-
- wget -O - https://repo.saltstack.com/apt/ubuntu/14.04/amd64/latest/SALTSTACK-GPG-KEY.pub | sudo apt-key add -
- sudo echo 'deb http://repo.saltstack.com/apt/ubuntu/14.04/amd64/latest trusty main' > /etc/apt/sources.list.d/saltstack.list
-
- sudo apt-get update -y
- sudo apt-get install salt-master -y
- sudo apt-get install salt-minion -y
-
- 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
-
- sudo cp /srv/salt/dev/state_top.sls /srv/salt/top.sls
-
- sleep 15
- sudo salt-key -y -A
|