-
-
Save UtahDave/f8f3fe456abb759ef585 to your computer and use it in GitHub Desktop.
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
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