Skip to content

Commit

Permalink
replace reset sed with new script
Browse files Browse the repository at this point in the history
  • Loading branch information
jertel committed Nov 9, 2023
1 parent bc044fa commit 9231c8d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions salt/manager/init.sls
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ manager_sbin:
- user: 939
- group: 939
- file_mode: 755
- exclude_pat:
- "*_test.py"
yara_update_scripts:
file.recurse:
Expand Down
2 changes: 1 addition & 1 deletion salt/manager/tools/sbin_jinja/so-elastic-fleet-reset
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ status "Stopping Fleet Container..."
so-elastic-fleet-stop --force

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_heavy.*/d" /opt/so/saltstack/local/pillar/global/soc_global.sls

Expand Down

0 comments on commit 9231c8d

Please sign in to comment.