🔨 Switch to yml config

This commit is contained in:
SebClem 2022-03-06 22:17:18 +01:00
parent 2aceda39ab
commit 161e673727
No known key found for this signature in database
GPG Key ID: 3D8E353F900B1305
2 changed files with 19 additions and 2 deletions

View File

@ -1,5 +1,5 @@
vector_template: vector.toml.j2
vector_config_file: /etc/vector/vector.toml
vector_template: vector.yml.j2
vector_config_file: /etc/vector/vector.yml
vector_nightly: no
vector_version: "{{ vector_nightly | ternary('nightly','latest') }}"
add_vector_docker_group: no # Add vector user to "docker" group

17
templates/vector.yml.j2 Normal file
View File

@ -0,0 +1,17 @@
{{ ansible_managed | comment }}
data_dir: "/var/lib/vector"
api:
enabled: true
address: "0.0.0.0:8686"
sources:
{{ sources | to_nice_yaml(indent=2) | trim | indent(2) }}
transforms:
{{ transforms | to_nice_yaml(indent=2) | trim | indent(2) }}
sinks:
{{ sinks | to_nice_yaml(indent=2) | trim | indent(2) }}