Last active
January 11, 2020 22:54
-
-
Save ryan-lane/2c4bed05542b1d088bc4 to your computer and use it in GitHub Desktop.
Environment 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
{% if pillar.environment == 'production' %} | |
Ensure instance1 is configured: | |
file.managed: | |
- name /var/local/instance1/context.xml | |
- source: salt://instance.xml.tmpl | |
- template: jinja | |
- context: | |
somesetting: testme | |
{% else %} | |
Ensure instance1 is configured: | |
file.managed: | |
- name /var/local/instance1/context.xml | |
- source: salt://instance.xml.tmpl | |
- template: jinja | |
- context: | |
somesetting: helloworld | |
{% endif %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment