Merge pull request #3121 from Security-Onion-Solutions/strelkainstall

Fix Strelka Rule updates, repo fix
This commit is contained in:
Mike Reeves
2021-02-24 17:13:41 -05:00
committed by GitHub
5 changed files with 52 additions and 27 deletions

View File

@@ -406,7 +406,12 @@ up_2.3.2X_to_2.3.30() {
for pillar in "${minion_pillars[@]}"; do
sed -i -r "s/ (\{\{.*}})$/ '\1'/g" "$pillar"
done
# Strelka rule repo pillar addition
# Change the IMAGEREPO
sed -i "/ imagerepo: 'securityonion'/c\ imagerepo: 'security-onion-solutions'" /opt/so/saltstack/local/pillar/global.sls
sed -i "/ imagerepo: securityonion/c\ imagerepo: 'security-onion-solutions'" /opt/so/saltstack/local/pillar/global.sls
# Strelka rule repo pillar addition
if [ $is_airgap -eq 0 ]; then
# Add manager as default Strelka YARA rule repo
sed -i "/^strelka:/a \\ repos: \n - https://$HOSTNAME/repo/rules/strelka" /opt/so/saltstack/local/pillar/global.sls;