Created
October 11, 2012 10:01
-
-
Save aleszoulek/3871364 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
{% set source = 'default' %} | |
{% if grains['a'] == foo %} | |
{% set source = 'foo' %} | |
{% endif %} | |
/a/b/c.conf: | |
file.managed: | |
- source: salt://{{ source }} | |
- mode: 0700 | |
- user: root | |
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
include: | |
- general | |
{% if grains['b'] == 'bar' and grains['a'] == foo %} | |
{% set source = 'foobar' %} | |
extend: | |
/a/b/c.conf: | |
file: | |
- source: salt://{{ source }} | |
{% endif %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment