Last active
August 29, 2015 14:17
-
-
Save anorgan/8090d3bb7bad3895d869 to your computer and use it in GitHub Desktop.
Pillars and Grains to the rescue
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
# /srv/pillar/top.sls | |
base: | |
'os:Debian': | |
- match: grain | |
- debian_packages | |
'os:RedHat': | |
- match: grain | |
- redhat_packages | |
# /srv/pillar/debian_packages.sls | |
pkgs: | |
apache: apache2 | |
# /srv/pillar/redhat_packages.sls | |
pkgs: | |
apache: httpd | |
# /srv/salt/apache.sls | |
apache: | |
pkg.installed: | |
- name: {{ pillar['pkgs']['apache'] }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment