Merge pull request #7035 from Security-Onion-Solutions/soup_salt_repo

ensure /etc/yum.repos.d/securityonion.repo is absent if not a manager…
This commit is contained in:
Josh Patterson authored and GitHub committed 2022-01-31 09:05:45 -05:00
commit d3fc61e557
1 file changed
+6
+6
View File
@@ -53,6 +53,12 @@ remove_securityonionrepocache:
- name: /etc/yum.repos.d/securityonioncache.repo
{% endif %}
{% if role not in ['eval', 'standalone', 'import', 'manager', 'managersearch'] and managerupdates == 1 %}
remove_securityonionrepo:
file.absent:
- name: /etc/yum.repos.d/securityonion.repo
{% endif %}
crsecurityonionrepo:
file.managed:
{% if role in ['eval', 'standalone', 'import', 'manager', 'managersearch'] or managerupdates == 0 %}