add suricata to socore group

This commit is contained in:
Jason Ertel
2022-12-05 09:50:35 -05:00
parent e9bb60dedb
commit fe798138e3
2 changed files with 13 additions and 8 deletions

View File

@@ -26,13 +26,10 @@
{% if ENGINE == "SURICATA" %}
{% set filecheck_runas = 'suricata' %}
{% set filecheck_groupid = 940 %}
{% else %}
{% set filecheck_runas = 'socore' %}
{% set filecheck_groupid = 939 %}
{% endif %}
{% if grains['os'] != 'CentOS' %}
strelkapkgs:
pkg.installed:
@@ -133,7 +130,7 @@ strelkaunprocessed:
file.directory:
- name: /nsm/strelka/unprocessed
- user: 939
- group: {{ filecheck_groupid }}
- group: 939
- mode: 775
- makedirs: True
@@ -147,14 +144,16 @@ filecheck_logdir:
file.directory:
- name: /opt/so/log/strelka
- user: 939
- group: {{ filecheck_groupid }}
- group: 939
- mode: 775
- makedirs: True
filecheck_history:
file.directory:
- name: /nsm/strelka/history
- user: 939
- group: {{ filecheck_groupid }}
- group: 939
- mode: 775
- makedirs: True
filecheck_conf:
@@ -165,10 +164,10 @@ filecheck_conf:
filecheck_script:
file.managed:
- name: /opt/so/conf/strelka/filecheck
- name: /usr/sbin/filecheck
- source: salt://strelka/filecheck/filecheck
- user: 939
- group: {{ filecheck_groupid }}
- group: 939
- mode: 755
filecheck_run:

View File

@@ -44,6 +44,12 @@ suricata:
- home: /nsm/suricata
- createhome: False
suricatasocoregroup:
group.present:
- gid: 939
- addusers:
- suricata
suridir:
file.directory:
- name: /opt/so/conf/suricata