Skip to content

Instantly share code, notes, and snippets.

/SLS file Secret

Created June 3, 2016 18:11
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 anonymous/389cadcf66af08d4f7c7e0ada10899e9 to your computer and use it in GitHub Desktop.
Save anonymous/389cadcf66af08d4f7c7e0ada10899e9 to your computer and use it in GitHub Desktop.
2016-06-03 12:06:30,624 [salt.utils.event ][DEBUG ][10062] Sending event - data = {'_stamp': '2016-06-03T18:06:30.623701', 'tag': 'salt/beacon/NOPE/service/', 'data': {'RasMan': {'running': True}, 'id': 'NOPE'}}
{% if data['data']['RasMan']['running'] == false %}
These_things:
local.state.apply:
- tgt: {{data['data']['id']}}
{% endif %}
@jfindlay
Copy link

jfindlay commented Jun 3, 2016

{%- for service in data['data']: %}
  {%- set service_name = service %}
{%- endfor %}

{% if data['data'][service_name]['running'] == false %}
 These_things:
   local.state.apply:
     - tgt: {{data['data']['id']}}
{% endif %}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment