mirror of
https://github.com/saltstack-formulas/smokeping-formula.git
synced 2024-11-27 23:07:50 +01:00
65b2c516ec
fix: replace deprecated `iteritems` with `items` * Add files via upload Adjusted *.iteritems() to *.items() which will work for Python 3 aswell as Python 2 (since iteritems is outdated for python3 and breaks the salt-state). * Delete Alerts * Delete Probes * Delete Targets * Update Alerts * Update Probes * Update Targets
21 lines
549 B
Plaintext
21 lines
549 B
Plaintext
{%- from "smokeping/map.jinja" import smokeping with context -%}
|
|
{%- set targets = smokeping.targets -%}
|
|
*** Targets ***
|
|
|
|
probe = {{ smokeping.targets.probe }}
|
|
menu = Top
|
|
title = {{ smokeping.targets.title }}
|
|
remark = {{ salt['pillar.get']('smokeping:targets:remark', '') }}
|
|
alerts = {{ salt['pillar.get']('smokeping:targets:alerts', '') }}
|
|
|
|
{% for target, options in smokeping.targets.items() -%}
|
|
{% if options is mapping() -%}
|
|
+ {{ target }}
|
|
|
|
{% for key, value in options.items() -%}
|
|
{{ key }} = {{ value }}
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
|
{% endfor %}
|