paulbsd-salt/states/vector/config.sls

40 lines
973 B
Plaintext
Raw Permalink Normal View History

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
2024-11-30 18:59:15 +01:00
- user: {{ vector.user.name }}
- group: {{ vector.group.name }}
2023-09-14 16:51:15 +02:00
- mode: 600
- template: jinja
2024-12-07 08:01:17 +01:00
vector-var-dir:
file.directory:
- name: /var/lib/vector
- user: {{ vector.user.name }}
- group: {{ vector.group.name }}
- mode: 755
- watch_in:
- service: vector-service
2023-09-14 16:51:15 +02:00
vector-config-dir:
file.directory:
- name: /etc/vector
2024-11-30 18:59:15 +01:00
- user: {{ vector.user.name }}
- group: {{ vector.group.name }}
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
2024-11-30 18:59:15 +01:00
- user: {{ vector.user.name }}
- group: {{ vector.group.name }}
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