jinja for strelka

This commit is contained in:
m0duspwnens
2023-03-13 16:48:21 -04:00
parent 58343e39fa
commit 9d4e1cc149
8 changed files with 36 additions and 50 deletions

View File

@@ -9,7 +9,7 @@ echo "Starting to check for yara rule updates at $(date)..."
output_dir="/opt/so/saltstack/default/salt/strelka/rules"
mkdir -p $output_dir
repos="$output_dir/repos.txt"
repos="/opt/so/conf/strelka/repos.txt"
newcounter=0
excludedcounter=0
excluded_rules=({{ EXCLUDEDRULES | join(' ') }})

View File

@@ -33,7 +33,7 @@ yara_update_script:
- template: jinja
- defaults:
ISAIRGAP: {{ GLOBALS.airgap }}
EXCLUDEDRULES: {{ STRELKAMERGED.excluded_rules }}
EXCLUDEDRULES: {{ STRELKAMERGED.rules.excluded }}
strelka_yara_update:
cron.present: