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

Soup salt repo
This commit is contained in:
Josh Patterson
2022-01-31 08:21:17 -05:00
committed by GitHub
3 changed files with 4 additions and 2 deletions

View File

@@ -877,7 +877,7 @@ update_repo() {
echo "Disabling fastestmirror."
disable_fastestmirror
echo "Deleting unneeded repo files."
DELREPOS=('CentOS-Base' 'CentOS-CR' 'CentOS-Debuginfo' 'docker-ce' 'CentOS-fasttrack' 'CentOS-Media' 'CentOS-Sources' 'CentOS-Vault' 'CentOS-x86_64-kernel' 'epel' 'epel-testing' 'saltstack' 'wazuh')
DELREPOS=('CentOS-Base' 'CentOS-CR' 'CentOS-Debuginfo' 'docker-ce' 'CentOS-fasttrack' 'CentOS-Media' 'CentOS-Sources' 'CentOS-Vault' 'CentOS-x86_64-kernel' 'epel' 'epel-testing' 'saltstack' 'salt-latest' 'wazuh')
for DELREPO in "${DELREPOS[@]}"; do
if [[ -f "/etc/yum.repos.d/$DELREPO.repo" ]]; then

View File

@@ -14,6 +14,7 @@
'epel.repo',
'epel-testing.repo',
'saltstack.repo',
'salt-latest.repo',
'wazuh.repo'
]
%}
@@ -23,4 +24,4 @@
{% set REPOPATH = '/etc/apt/sources.list.d/' %}
{% set ABSENTFILES = [] %}
{% endif %}
{% endif %}

View File

@@ -10,6 +10,7 @@ include:
- salt
- salt.helper-packages
- systemd.reload
- repo.client
{% if INSTALLEDSALTVERSION|string != SALTVERSION|string %}