Created
August 7, 2014 01:23
-
-
Save ryan-lane/351b7c03bc84830f4109 to your computer and use it in GitHub Desktop.
Top file loading
This file contains hidden or 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
base: | |
'*': | |
- base | |
- service-common | |
- order: 1 | |
{% for root in opts['pillar_roots']['base'] -%} | |
{% set service_group_sls = '{0}/{1}.sls'.format(root, grains['service_group']) -%} | |
{% if salt['file.file_exists'](service_group_sls) %} | |
'service_group:{{ grains["service_group"] }}': | |
- match: grain | |
- {{ grains['service_group'] }} | |
- order: 10 | |
{% endif %} | |
{% endfor -%} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment