From 3b0c2b3e91725af0fcfaaa1455e86ca6fe7b4d3a Mon Sep 17 00:00:00 2001 From: m0duspwnens Date: Fri, 12 Feb 2021 12:04:08 -0500 Subject: [PATCH] remove /etc/yum.repos.d/salt-2019-2-5.repo if present https://github.com/Security-Onion-Solutions/securityonion/issues/2756 --- salt/salt/init.sls | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/salt/salt/init.sls b/salt/salt/init.sls index 2caae81cd..18be055db 100644 --- a/salt/salt/init.sls +++ b/salt/salt/init.sls @@ -11,3 +11,9 @@ salt_bootstrap: - name: /usr/sbin/bootstrap-salt.sh - source: salt://salt/scripts/bootstrap-salt.sh - mode: 755 + +{% if grains.os == 'CentOS' %} +remove_salt-2019-2-5.repo: + file.absent: + - name: /etc/yum.repos.d/salt-2019-2-5.repo +{% endif %} \ No newline at end of file