Created
January 16, 2014 04:58
-
-
Save quantonganh/8450012 to your computer and use it in GitHub Desktop.
Calling a macro in sls file
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
{%- 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