mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-07 01:32:47 +01:00
ensure /nsm/rules/yara directory exists
This commit is contained in:
@@ -104,6 +104,12 @@ yara_update_scripts:
|
|||||||
- defaults:
|
- defaults:
|
||||||
EXCLUDEDRULES: {{ STRELKAMERGED.rules.excluded }}
|
EXCLUDEDRULES: {{ STRELKAMERGED.rules.excluded }}
|
||||||
|
|
||||||
|
rules_dir:
|
||||||
|
file.directory:
|
||||||
|
- name: /nsm/rules/yara
|
||||||
|
- user: socore
|
||||||
|
- group: socore
|
||||||
|
|
||||||
{% if GLOBALS.airgap %}
|
{% if GLOBALS.airgap %}
|
||||||
remove_strelka-yara-download:
|
remove_strelka-yara-download:
|
||||||
cron.absent:
|
cron.absent:
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ export https_proxy={{ proxy }}
|
|||||||
export no_proxy= salt['pillar.get']('manager:no_proxy')
|
export no_proxy= salt['pillar.get']('manager:no_proxy')
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
||||||
|
repos="/opt/so/conf/strelka/repos.txt"
|
||||||
outputdir=/nsm/rules/yara
|
outputdir=/nsm/rules/yara
|
||||||
gh_status=$(curl -s -o /dev/null -w "%{http_code}" https://github.com)
|
gh_status=$(curl -s -o /dev/null -w "%{http_code}" https://github.com)
|
||||||
clone_dir="/tmp"
|
clone_dir="/tmp"
|
||||||
|
|||||||
@@ -9,12 +9,10 @@ NOROOT=1
|
|||||||
|
|
||||||
echo "Starting to check for yara rule updates at $(date)..."
|
echo "Starting to check for yara rule updates at $(date)..."
|
||||||
|
|
||||||
repos="/opt/so/conf/strelka/repos.txt"
|
|
||||||
newcounter=0
|
newcounter=0
|
||||||
excludedcounter=0
|
excludedcounter=0
|
||||||
excluded_rules=({{ EXCLUDEDRULES | join(' ') }})
|
excluded_rules=({{ EXCLUDEDRULES | join(' ') }})
|
||||||
|
|
||||||
|
|
||||||
# Pull down the SO Rules
|
# Pull down the SO Rules
|
||||||
SORULEDIR=/nsm/rules/yara
|
SORULEDIR=/nsm/rules/yara
|
||||||
OUTPUTDIR=/opt/so/saltstack/local/salt/strelka/rules
|
OUTPUTDIR=/opt/so/saltstack/local/salt/strelka/rules
|
||||||
|
|||||||
Reference in New Issue
Block a user