mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 01:02:46 +01:00
FIX: Update telegraf init.sls to run telegraf as non-root #7468
This commit is contained in:
@@ -13,7 +13,12 @@ tgraflogdir:
|
||||
file.directory:
|
||||
- name: /opt/so/log/telegraf
|
||||
- makedirs: True
|
||||
|
||||
- user: 939
|
||||
- group: 939
|
||||
- recurse:
|
||||
- user
|
||||
- group
|
||||
|
||||
tgrafetcdir:
|
||||
file.directory:
|
||||
- name: /opt/so/conf/telegraf/etc
|
||||
@@ -29,7 +34,7 @@ tgrafsyncscripts:
|
||||
- name: /opt/so/conf/telegraf/scripts
|
||||
- user: root
|
||||
- group: 939
|
||||
- file_mode: 700
|
||||
- file_mode: 770
|
||||
- template: jinja
|
||||
- source: salt://telegraf/scripts
|
||||
{% if salt['pillar.get']('global:mdengine', 'ZEEK') == 'SURICATA' %}
|
||||
@@ -57,6 +62,8 @@ node_config:
|
||||
so-telegraf:
|
||||
docker_container.running:
|
||||
- image: {{ MANAGER }}:5000/{{ IMAGEREPO }}/so-telegraf:{{ VERSION }}
|
||||
- user: 939
|
||||
- group_add: 939,920
|
||||
- environment:
|
||||
- HOST_PROC=/host/proc
|
||||
- HOST_ETC=/host/etc
|
||||
|
||||
Reference in New Issue
Block a user