Initial release

This commit is contained in:
Kenneth Østrup committed 2016-07-14 13:58:48 +02:00
1 parent 9d67c7d1cd
commit 0d0e2dafab
14 files changed
+267 -1

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
{%- 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 %}