2023-09-14 16:51:15 +02:00
|
|
|
---
|
|
|
|
{%- from "vector/map.jinja" import vector with context %}
|
|
|
|
vector-default:
|
|
|
|
file.managed:
|
|
|
|
- name: /etc/default/vector
|
|
|
|
- source: salt://vector/templates/vector.default.j2
|
2023-12-04 22:37:29 +01:00
|
|
|
- user: root
|
|
|
|
- group: root
|
2023-09-14 16:51:15 +02:00
|
|
|
- mode: 600
|
|
|
|
- template: jinja
|
|
|
|
|
|
|
|
vector-config-dir:
|
|
|
|
file.directory:
|
|
|
|
- name: /etc/vector
|
2023-12-04 22:37:29 +01:00
|
|
|
- user: root
|
|
|
|
- group: root
|
2023-09-14 16:51:15 +02:00
|
|
|
- mode: 700
|
|
|
|
# - watch_in:
|
|
|
|
# - service: vector-service
|
|
|
|
|
|
|
|
vector-config-file:
|
|
|
|
file.managed:
|
|
|
|
- name: /etc/vector/vector.conf
|
|
|
|
- source: salt://vector/templates/vector.toml.j2
|
2023-12-04 22:37:29 +01:00
|
|
|
- user: root
|
|
|
|
- group: root
|
2023-09-14 16:51:15 +02:00
|
|
|
- mode: 600
|
|
|
|
- template: jinja
|
|
|
|
# - watch_in:
|
|
|
|
# - service: vector-service
|