mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-06-15 22:58:42 +02:00
replace reset sed with new script
This commit is contained in:
@@ -61,6 +61,8 @@ manager_sbin:
|
|||||||
- user: 939
|
- user: 939
|
||||||
- group: 939
|
- group: 939
|
||||||
- file_mode: 755
|
- file_mode: 755
|
||||||
|
- exclude_pat:
|
||||||
|
- "*_test.py"
|
||||||
|
|
||||||
yara_update_scripts:
|
yara_update_scripts:
|
||||||
file.recurse:
|
file.recurse:
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ status "Stopping Fleet Container..."
|
|||||||
so-elastic-fleet-stop --force
|
so-elastic-fleet-stop --force
|
||||||
|
|
||||||
status "Deleting Fleet Data from Pillars..."
|
status "Deleting Fleet Data from Pillars..."
|
||||||
sed -i -z "s/elasticfleet:.*grid_enrollment_heavy.*'//" /opt/so/saltstack/local/pillar/minions/{{ GLOBALS.minion_id }}.sls
|
so-yaml.py remove /opt/so/saltstack/local/pillar/minions/{{ GLOBALS.minion_id }}.sls elasticfleet
|
||||||
sed -i "/fleet_grid_enrollment_token_general.*/d" /opt/so/saltstack/local/pillar/global/soc_global.sls
|
sed -i "/fleet_grid_enrollment_token_general.*/d" /opt/so/saltstack/local/pillar/global/soc_global.sls
|
||||||
sed -i "/fleet_grid_enrollment_token_heavy.*/d" /opt/so/saltstack/local/pillar/global/soc_global.sls
|
sed -i "/fleet_grid_enrollment_token_heavy.*/d" /opt/so/saltstack/local/pillar/global/soc_global.sls
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user