Skip to content

Instantly share code, notes, and snippets.

@quantonganh
Created January 16, 2014 04:58
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 quantonganh/8450012 to your computer and use it in GitHub Desktop.
Save quantonganh/8450012 to your computer and use it in GitHub Desktop.
Calling a macro in sls file
{%- for state in pillar['monitoring']['states'] -%}
{%- for name in salt['monitoring.discover_checks_passive'](state) %}
/etc/cron.d/passive-checks:
file:
- append
- text: |
{{ passive_check(state, name) }}
{%- endfor -%}
{%- endfor %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment