This commit is contained in:
parent
8a348d6f99
commit
00fea3d79d
@ -4,16 +4,16 @@ vector-default:
|
|||||||
file.managed:
|
file.managed:
|
||||||
- name: /etc/default/vector
|
- name: /etc/default/vector
|
||||||
- source: salt://vector/templates/vector.default.j2
|
- source: salt://vector/templates/vector.default.j2
|
||||||
- user: vector
|
- user: {{ vector.user.name }}
|
||||||
- group: vector
|
- group: {{ vector.group.name }}
|
||||||
- mode: 600
|
- mode: 600
|
||||||
- template: jinja
|
- template: jinja
|
||||||
|
|
||||||
vector-config-dir:
|
vector-config-dir:
|
||||||
file.directory:
|
file.directory:
|
||||||
- name: /etc/vector
|
- name: /etc/vector
|
||||||
- user: vector
|
- user: {{ vector.user.name }}
|
||||||
- group: vector
|
- group: {{ vector.group.name }}
|
||||||
- mode: 700
|
- mode: 700
|
||||||
- watch_in:
|
- watch_in:
|
||||||
- service: vector-service
|
- service: vector-service
|
||||||
@ -22,8 +22,8 @@ vector-config-file:
|
|||||||
file.managed:
|
file.managed:
|
||||||
- name: /etc/vector/vector.yaml
|
- name: /etc/vector/vector.yaml
|
||||||
- source: salt://vector/templates/vector.yaml.j2
|
- source: salt://vector/templates/vector.yaml.j2
|
||||||
- user: vector
|
- user: {{ vector.user.name }}
|
||||||
- group: vector
|
- group: {{ vector.group.name }}
|
||||||
- mode: 600
|
- mode: 600
|
||||||
- template: jinja
|
- template: jinja
|
||||||
- watch_in:
|
- watch_in:
|
||||||
|
@ -8,8 +8,12 @@ vector:
|
|||||||
os: linux
|
os: linux
|
||||||
arch: amd64
|
arch: amd64
|
||||||
variant: gnu
|
variant: gnu
|
||||||
user: vector
|
user:
|
||||||
group: vector
|
name: vector
|
||||||
|
id: 905
|
||||||
|
group:
|
||||||
|
name: vector
|
||||||
|
id: 905
|
||||||
config:
|
config:
|
||||||
api:
|
api:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
@ -1,5 +1,17 @@
|
|||||||
---
|
---
|
||||||
{%- from "vector/map.jinja" import vector with context %}
|
{%- 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:
|
vector-archive-extract:
|
||||||
archive.extracted:
|
archive.extracted:
|
||||||
- name: {{ vector.release_dir }}/vector-{{ vector.version }}
|
- name: {{ vector.release_dir }}/vector-{{ vector.version }}
|
||||||
|
Loading…
Reference in New Issue
Block a user