Saltstack Official Salt Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718
  1. #!/bin/sh
  2. # use the latest stable Salt from repo.saltstack.com
  3. wget -O - https://repo.saltstack.com/apt/ubuntu/14.04/amd64/latest/SALTSTACK-GPG-KEY.pub | sudo apt-key add -
  4. sudo echo 'deb http://repo.saltstack.com/apt/ubuntu/14.04/amd64/latest trusty main' > /etc/apt/sources.list.d/saltstack.list
  5. sudo apt-get update -y
  6. sudo apt-get install salt-master -y
  7. sudo apt-get install salt-minion -y
  8. # setup top files to test the formula
  9. sudo mkdir -p /srv/pillar
  10. sudo ln -s /srv/salt/pillar.example /srv/pillar/salt.sls
  11. sudo ln -s /srv/salt/dev/pillar_top.sls /srv/pillar/top.sls
  12. # this file will be copied to make a running config. it should not be checked in.
  13. sudo cp /srv/salt/dev/state_top.sls /srv/salt/top.sls
  14. # Accept all keys#
  15. sleep 15 #give the minion a few seconds to register
  16. sudo salt-key -y -A