2022-01-15 18:25:03 +01:00
|
|
|
# Set global options
|
|
|
|
data_dir = "/var/lib/vector"
|
|
|
|
|
|
|
|
{% set loop_helper = {
|
|
|
|
"sources": (sources | default({})),
|
|
|
|
"transforms": (transforms | default({})),
|
|
|
|
"sinks": (sinks | default({}))
|
|
|
|
} %}
|
|
|
|
|
|
|
|
{% for name, cat in loop_helper.items() | sort(attribute='0') %}
|
|
|
|
{% for key, value in cat.items() | sort(attribute='0') %}
|
|
|
|
[{{ name }}.{{ key }}]
|
2022-01-15 19:18:02 +01:00
|
|
|
{% if value %}
|
|
|
|
{%- for skey, svalue in value.items() | sort(attribute='0') %}
|
2022-01-15 18:25:03 +01:00
|
|
|
{%- if svalue is string %}
|
|
|
|
{{ skey }} = "{{ svalue }}"
|
|
|
|
{% else %}
|
|
|
|
{{ skey }} = {{ svalue | tojson }}
|
|
|
|
{% endif %}
|
2022-01-15 19:18:02 +01:00
|
|
|
{% endfor %}
|
|
|
|
{%- endif %}
|
|
|
|
|
2022-01-15 18:25:03 +01:00
|
|
|
{% endfor %}
|
|
|
|
{% endfor %}
|