Last active
January 11, 2020 22:54
-
-
Save ryan-lane/b4fe7c53a6e88972496c to your computer and use it in GitHub Desktop.
Context example
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
Ensure instance1 is configured: | |
file.managed: | |
- name /var/local/instance1/context.xml | |
- source: salt://instance.xml.tmpl | |
- template: jinja | |
- context: | |
var1: some content | |
var2: more content | |
Ensure instance2 is configured: | |
file.managed: | |
- name /var/local/instance2/context.xml | |
- source: salt://instance.xml.tmpl | |
- template: jinja | |
- context: | |
var1: different content | |
var2: {{ pillar.my_pillar }} |
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
<a> | |
{{ var1 }} | |
{{ var2 }} | |
{{ pillar.some_other_pillar }} | |
</a> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment