Created
May 30, 2017 21:16
Star
You must be signed in to star a gist
Salt/Jinja variable scope question
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
{% do foo.update(pillar.get('foo', {})) %} | |
{% set included_files = foo.get('included_files', {}) %} | |
{% for included_file,spec in included_files.items() -%} | |
{{ foo.get('config-path', '/etc') }}/foo.d/{{ included_file }}: | |
file.managed: | |
- template: jinja | |
- source: salt://foo/files/bar | |
# Can the template 'bar' use {{ included_file }} ?? |
whytewolf
commented
May 30, 2017
•
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment