Skip to content

Instantly share code, notes, and snippets.

@ryan-lane
Last active January 11, 2020 22:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ryan-lane/2c4bed05542b1d088bc4 to your computer and use it in GitHub Desktop.
Save ryan-lane/2c4bed05542b1d088bc4 to your computer and use it in GitHub Desktop.
Environment example
{% 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