2016-07-14 13:58:43 +02:00
|
|
|
{%- 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') }}
|
|
|
|
|
2019-09-02 19:50:10 +02:00
|
|
|
{% for alert, options in smokeping.alerts.items() -%}
|
2016-07-14 13:58:43 +02:00
|
|
|
{% if options is mapping() %}
|
|
|
|
+ {{ alert }}
|
2019-09-02 19:50:10 +02:00
|
|
|
{% for key, value in options.items() -%}
|
2016-07-14 13:58:43 +02:00
|
|
|
{{ key }} = {{ value }}
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|