Last active
May 2, 2017 15:24
-
-
Save sono-bfio/d15b3a23b771ed716255df8d58da1024 to your computer and use it in GitHub Desktop.
Simple Script to provision saltstack on an Ubuntu 16 system
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Ubuntu 16 Verified | |
apt-get update && apt-get install -y curl apt-transport-https | |
curl -o bootstrap-salt.sh -L https://bootstrap.saltstack.com | |
sh bootstrap-salt.sh -P git v2016.11.4 | |
echo 'file_client: local' > /etc/salt/minion | |
echo '' >> /etc/salt/minion | |
echo '' >> /etc/salt/minion | |
echo 'log_level: info' >> /etc/salt/minion | |
echo 'log_level_logfile: info' >> /etc/salt/minion | |
echo '' >> /etc/salt/minion | |
echo 'file_roots:' >> /etc/salt/minion | |
echo ' base:' >> /etc/salt/minion | |
echo ' - /srv/states' >> /etc/salt/minion | |
echo ' - /srv/formulas/users-formula' >> /etc/salt/minion | |
echo ' - /srv/salt' >> /etc/salt/minion | |
echo '' >> /etc/salt/minion | |
echo 'pillar_roots:' >> /etc/salt/minion | |
echo ' base:' >> /etc/salt/minion | |
echo ' - /srv/pillar' >> /etc/salt/minion | |
echo 'grains:' >> /etc/salt/minion | |
echo ' role: gpu-worker' >> /etc/salt/minion | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment