mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
ensure /etc/yum.repos.d/securityonioncache.repo is absent if global:managerupdate = 0
This commit is contained in:
@@ -1159,6 +1159,7 @@ main() {
|
|||||||
if [[ $is_airgap -eq 0 ]]; then
|
if [[ $is_airgap -eq 0 ]]; then
|
||||||
echo ""
|
echo ""
|
||||||
echo "Cleaning repos on remote Security Onion nodes."
|
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"
|
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 ""
|
echo ""
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -47,6 +47,12 @@ crsynckeys:
|
|||||||
- source: salt://repo/client/files/centos/keys/
|
- source: salt://repo/client/files/centos/keys/
|
||||||
|
|
||||||
{% if not ISAIRGAP %}
|
{% if not ISAIRGAP %}
|
||||||
|
{% if role in ['eval', 'standalone', 'import', 'manager', 'managersearch'] or managerupdates == 0 %}
|
||||||
|
remove_securityonionrepocache:
|
||||||
|
file.absent:
|
||||||
|
- name: /etc/yum.repos.d/securityonioncache.repo
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
crsecurityonionrepo:
|
crsecurityonionrepo:
|
||||||
file.managed:
|
file.managed:
|
||||||
{% if role in ['eval', 'standalone', 'import', 'manager', 'managersearch'] or managerupdates == 0 %}
|
{% if role in ['eval', 'standalone', 'import', 'manager', 'managersearch'] or managerupdates == 0 %}
|
||||||
|
|||||||
Reference in New Issue
Block a user