fix: Force ossec group on /opt/so/wazuh dir tree to eliminate permission failures

This commit is contained in:
Jason Ertel
2020-06-11 09:25:09 -04:00
parent 496696ed80
commit b26a7541cd

View File

@@ -37,12 +37,6 @@ ossec:
- allow_uid_change: True
- allow_gid_change: True
#wazuhdir:
# file.directory:
# - name: /opt/so/conf/wazuh
# - user: 945
# - group: 945
wazuhpkgs:
pkg.installed:
- skip_suggestions: False
@@ -51,6 +45,13 @@ wazuhpkgs:
- hold: True
- update_holds: True
wazuhdir:
file.directory:
- name: /opt/so/wazuh
- group: 945
- recurse:
- group
# Add Wazuh agent conf
wazuhagentconf:
file.managed: