Skip to content

Instantly share code, notes, and snippets.

@whytewolf
Created December 14, 2015 21:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save whytewolf/60d0318b33122af367e1 to your computer and use it in GitHub Desktop.
Save whytewolf/60d0318b33122af367e1 to your computer and use it in GitHub Desktop.
{% if pillar['nonexistent_pillar'] is defined %}
dont_do_this:
pkg.installed:
- name: nonexistentpillar
{%else%}
test_pillar:
test.configurable_test_state:
- name: fancy_name
- changes: false
- result: False
- comment: 'this state does not support X'
{%endif%}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment