mirror of
https://github.com/saltstack-formulas/smokeping-formula.git
synced 2026-10-06 10:28:30 +02:00
Initial release
This commit is contained in:
1 parent
9d67c7d1cd
commit
0d0e2dafab
14 files changed
+267
-1
No files matched your search
@@ -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 %}
|
||||
Reference in new issue
Block a user