updated telegraf state

This commit is contained in:
Paul 2023-02-10 13:48:03 +01:00
parent fc6f5ac031
commit 7dfe7dd938
2 changed files with 2 additions and 1 deletions

View File

@ -30,6 +30,7 @@ telegraf:
- '"overlay"'
- '"aufs"'
- '"squashfs"'
- '"fuse.rclone"'
diskio:
httpjson:
name: "ipinfo"

View File

@ -1,7 +1,7 @@
## {{ salt['pillar.get']('salt_managed', default='Salt Managed') }}
{%- from "telegraf/map.jinja" import telegraf with context %}
{% macro cfg(value) -%}
{% if value is not none -%}
{% if value -%}
{% for paramname, paramvalue in value.items() -%}
{{ ' ' }}{{ paramname }} = {% if paramvalue is sameas True or paramvalue is sameas False %}{{ paramvalue|string|lower }}{% elif paramvalue is iterable and paramvalue is not string %}[{{ paramvalue|join(",") }}]{% else %}"{{ paramvalue }}"{% endif %}
{% endfor %}