diff --git a/salt/idstools/etc/rulecat.conf b/salt/idstools/etc/rulecat.conf index 87a881fb8..7affb6621 100644 --- a/salt/idstools/etc/rulecat.conf +++ b/salt/idstools/etc/rulecat.conf @@ -1,5 +1,5 @@ --suricata-version 4.0 ---merged=/opt/so/rules/nids/downloaded.rules +--merged=/opt/so/rules/nids/all.rules --local=/opt/so/rules/nids/local.rules --disable=disable.conf --enable=enable.conf diff --git a/salt/idstools/init.sls b/salt/idstools/init.sls index fc9356316..642d8e08e 100644 --- a/salt/idstools/init.sls +++ b/salt/idstools/init.sls @@ -36,6 +36,13 @@ rulesdir: - group: 939 - makedirs: True +synclocalnidsrules: + file.managed: + - name: /opt/so/rules/local.rules + - source: salt://idstools/localrules/local.rules + - user: 939 + - group: 939 + ruleslink: file.symlink: - name: /opt/so/saltstack/salt/idstools/rules diff --git a/salt/idstools/etc/local.rules b/salt/idstools/localrules/local.rules similarity index 100% rename from salt/idstools/etc/local.rules rename to salt/idstools/localrules/local.rules