Remove idstools config from manager pillar file

This commit is contained in:
DefensiveDepth
2025-12-05 12:13:05 -05:00
parent 3f9a9b7019
commit a6b19c4a6c

View File

@@ -1299,8 +1299,10 @@ rm /opt/so/saltstack/local/salt/suricata/rules
rm -rf /usr/sbin/so-idstools*
sed -i '/^#\?so-idstools$/d' /opt/so/conf/so-status/so-status.conf
# Backup the salt master config before editing it
cp /etc/salt/master /nsm/backup/detections-migration/2-4-200
# Backup the salt master config & manager pillar before editing it
cp /opt/so/saltstack/local/pillar/minions/$MINIONID.sls /nsm/backup/detections-migration/2-4-200/
cp /etc/salt/master /nsm/backup/detections-migration/2-4-200/
so-yaml.py remove /opt/so/saltstack/local/pillar/minions/$MINIONID.sls idstools
so-yaml.py removelistitem /etc/salt/master file_roots.base /opt/so/rules/nids
}