mirror of
https://github.com/saltstack-formulas/smokeping-formula.git
synced 2026-01-05 20:16:13 +01:00
Delete Alerts
This commit is contained in:
parent
872368f9c7
commit
0177b676d6
15
Alerts
15
Alerts
@ -1,15 +0,0 @@
|
||||
{%- 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.items() -%}
|
||||
{% if options is mapping() %}
|
||||
+ {{ alert }}
|
||||
{% for key, value in options.items() -%}
|
||||
{{ key }} = {{ value }}
|
||||
{% endfor %}
|
||||
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
Loading…
x
Reference in New Issue
Block a user