updated vector state
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Paul 2024-11-30 18:59:15 +01:00
parent 8a348d6f99
commit 00fea3d79d
3 changed files with 24 additions and 8 deletions

View File

@ -4,16 +4,16 @@ vector-default:
file.managed:
- name: /etc/default/vector
- source: salt://vector/templates/vector.default.j2
- user: vector
- group: vector
- user: {{ vector.user.name }}
- group: {{ vector.group.name }}
- mode: 600
- template: jinja
vector-config-dir:
file.directory:
- name: /etc/vector
- user: vector
- group: vector
- user: {{ vector.user.name }}
- group: {{ vector.group.name }}
- mode: 700
- watch_in:
- service: vector-service
@ -22,8 +22,8 @@ vector-config-file:
file.managed:
- name: /etc/vector/vector.yaml
- source: salt://vector/templates/vector.yaml.j2
- user: vector
- group: vector
- user: {{ vector.user.name }}
- group: {{ vector.group.name }}
- mode: 600
- template: jinja
- watch_in:

View File

@ -8,8 +8,12 @@ vector:
os: linux
arch: amd64
variant: gnu
user: vector
group: vector
user:
name: vector
id: 905
group:
name: vector
id: 905
config:
api:
enabled: true

View File

@ -1,5 +1,17 @@
---
{%- from "vector/map.jinja" import vector with context %}
vector-group:
group.present:
- name: {{ vector.group.name }}
- gid: {{ vector.group.id }}
vector-user:
user.present:
- name: {{ vector.user.name }}
- uid: {{ vector.user.id }}
- gid: {{ vector.group.id }}
- shell: /bin/nologin
vector-archive-extract:
archive.extracted:
- name: {{ vector.release_dir }}/vector-{{ vector.version }}