0
0
mirror of https://github.com/saltstack-formulas/smokeping-formula.git synced 2026-05-14 15:27:32 +02:00

Update Targets

This commit is contained in:
jhelmich2 2019-09-02 14:27:13 +02:00 committed by GitHub
parent fceaf2b2f6
commit 153b04e5f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,11 +8,11 @@ title = {{ smokeping.targets.title }}
remark = {{ salt['pillar.get']('smokeping:targets:remark', '') }} remark = {{ salt['pillar.get']('smokeping:targets:remark', '') }}
alerts = {{ salt['pillar.get']('smokeping:targets:alerts', '') }} alerts = {{ salt['pillar.get']('smokeping:targets:alerts', '') }}
{% for target, options in smokeping.targets.iteritems() -%} {% for target, options in smokeping.targets.items() -%}
{% if options is mapping() -%} {% if options is mapping() -%}
+ {{ target }} + {{ target }}
{% for key, value in options.iteritems() -%} {% for key, value in options.items() -%}
{{ key }} = {{ value }} {{ key }} = {{ value }}
{% endfor %} {% endfor %}