Update Alerts

This commit is contained in:
jhelmich2
2019-09-02 14:26:51 +02:00
committed by GitHub
parent fc95efd2c4
commit 46d099f5a1
+2 -2
View File
@@ -4,10 +4,10 @@
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() -%}
{% for alert, options in smokeping.alerts.items() -%}
{% if options is mapping() %}
+ {{ alert }}
{% for key, value in options.iteritems() -%}
{% for key, value in options.items() -%}
{{ key }} = {{ value }}
{% endfor %}