mirror of
https://github.com/saltstack-formulas/smokeping-formula.git
synced 2026-09-21 04:12:08 +02:00
Update Alerts
This commit is contained in:
@@ -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 %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user