ensure /etc/yum.repos.d/securityonioncache.repo is absent if global:managerupdate = 0

This commit is contained in:
m0duspwnens
2022-01-28 13:09:48 -05:00
parent e82c6a2393
commit 75b8d6a0c5
2 changed files with 7 additions and 0 deletions

View File

@@ -1159,6 +1159,7 @@ main() {
if [[ $is_airgap -eq 0 ]]; then
echo ""
echo "Cleaning repos on remote Security Onion nodes."
salt -C 'not *_eval and not *_helixsensor and not *_manager and not *_managersearch and not *_standalone and G@os:CentOS' state.apply repo.client -l info
salt -C 'not *_eval and not *_helixsensor and not *_manager and not *_managersearch and not *_standalone and G@os:CentOS' cmd.run "yum clean all"
echo ""
fi