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-06 04:10:43 +01:00
|
|
|
- user: vector
|
|
|
|
- group: vector
|
2023-09-14 16:51:15 +02:00
|
|
|
- mode: 600
|
|
|
|
- template: jinja
|
|
|
|
|
|
|
|
vector-config-dir:
|
|
|
|
file.directory:
|
|
|
|
- name: /etc/vector
|
2023-12-06 04:10:43 +01:00
|
|
|
- user: vector
|
|
|
|
- group: vector
|
2023-09-14 16:51:15 +02:00
|
|
|
- mode: 700
|
2023-12-06 04:10:43 +01:00
|
|
|
- watch_in:
|
|
|
|
- service: vector-service
|
2023-09-14 16:51:15 +02:00
|
|
|
|
|
|
|
vector-config-file:
|
|
|
|
file.managed:
|
2023-12-06 04:10:43 +01:00
|
|
|
- name: /etc/vector/vector.yaml
|
|
|
|
- source: salt://vector/templates/vector.yaml.j2
|
|
|
|
- user: vector
|
|
|
|
- group: vector
|
2023-09-14 16:51:15 +02:00
|
|
|
- mode: 600
|
|
|
|
- template: jinja
|
2023-12-06 04:10:43 +01:00
|
|
|
- watch_in:
|
|
|
|
- service: vector-service
|