From 51e27cadc8075493d8b007f0c8bcc195959ce6da Mon Sep 17 00:00:00 2001 From: Wes Lambert Date: Mon, 27 Jul 2020 12:14:43 +0000 Subject: [PATCH] Add Wazuh Wazuh symlinks for cpnfig/rules --- salt/wazuh/init.sls | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/salt/wazuh/init.sls b/salt/wazuh/init.sls index 22ba0940e..dfd47c0f6 100644 --- a/salt/wazuh/init.sls +++ b/salt/wazuh/init.sls @@ -113,3 +113,22 @@ wazuhagentservice: service.running: - name: wazuh-agent - enable: True + +/opt/so/conf/wazuh: + file.symlink: + - target: /nsm/wazuh/etc + +hidsruledir: + file.directory: + - name: /opt/so/rules/hids + - user: 939 + - group: 939 + - makedirs: True + +/opt/so/rules/hids/local_rules.xml: + file.symlink: + - target: /nsm/wazuh/etc/rules/local_rules.xml + +/opt/so/rules/hids/ruleset: + file.symlink: + - target: /nsm/wazuh/ruleset