jinja conf for influxdb

This commit is contained in:
m0duspwnens
2022-12-19 14:44:52 -05:00
parent e5d38255fa
commit ce0b920195

View File

@@ -1,7 +1,11 @@
{% import_yaml 'influx.defaults.yaml' as influx %}
{%- import_yaml 'influx/defaults.yaml' as influx %}
{%- for header in influx.influxdb.config.keys() %}
{%- if header in ['graphite', 'collectd', 'opentsdb', 'udp'] %}
[[{{header}}]]
{%- else %}
[{{header}}]
{%- endif %}
{%- for k, v in influx.influxdb.config[header].items() %}
{#- is v a list? #}
{%- if v is iterable and (v is not string and v is not mapping) %}