updated telegraf state
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Paul 2024-03-20 15:02:47 +01:00
parent fa60977155
commit fc509efe3b

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 -%}
{% if value and value != 'None' -%}
{% 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 %}