0
0
mirror of https://github.com/saltstack-formulas/smokeping-formula.git synced 2025-01-31 22:25:26 +01:00
smokeping-formula/smokeping/files/Alerts
2016-07-14 13:58:48 +02:00

16 lines
456 B
Plaintext

{%- from "smokeping/map.jinja" import smokeping with context -%}
*** Alerts ***
to = {{ salt['pillar.get']('smokeping:alerts:to', 'alertee@address.somewhere') }}
from = {{ salt['pillar.get']('smokeping:alerts:from', 'smokealert@company.xy') }}
{% for alert, options in smokeping.alerts.iteritems() -%}
{% if options is mapping() %}
+ {{ alert }}
{% for key, value in options.iteritems() -%}
{{ key }} = {{ value }}
{% endfor %}
{% endif %}
{% endfor %}