Skip to content

Instantly share code, notes, and snippets.

/Salt files Secret

Created October 23, 2015 21:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/d32ff62f183257d5a1c0 to your computer and use it in GitHub Desktop.
Save anonymous/d32ff62f183257d5a1c0 to your computer and use it in GitHub Desktop.
Salt Trials
#file: /srv/pillar/pkg/init.sls
pkgs:
{% if grains['os_family'] == 'RedHat' %}
apache: httpd
vim: vim-enhanced
{% elif grains['os_family'] == 'Debian' %}
apache: apache2
vim: vim
{% elif grains['os'] == 'Arch' %}
apache: apache
vim: vim
{% endif %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment