mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
ensure salt-latest.repo is absent, salt.minion state include repo.client
This commit is contained in:
@@ -878,7 +878,7 @@ update_repo() {
|
|||||||
echo "Disabling fastestmirror."
|
echo "Disabling fastestmirror."
|
||||||
disable_fastestmirror
|
disable_fastestmirror
|
||||||
echo "Deleting unneeded repo files."
|
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
|
for DELREPO in "${DELREPOS[@]}"; do
|
||||||
if [[ -f "/etc/yum.repos.d/$DELREPO.repo" ]]; then
|
if [[ -f "/etc/yum.repos.d/$DELREPO.repo" ]]; then
|
||||||
|
|||||||
@@ -14,6 +14,7 @@
|
|||||||
'epel.repo',
|
'epel.repo',
|
||||||
'epel-testing.repo',
|
'epel-testing.repo',
|
||||||
'saltstack.repo',
|
'saltstack.repo',
|
||||||
|
'salt-latest.repo',
|
||||||
'wazuh.repo'
|
'wazuh.repo'
|
||||||
]
|
]
|
||||||
%}
|
%}
|
||||||
@@ -23,4 +24,4 @@
|
|||||||
{% set REPOPATH = '/etc/apt/sources.list.d/' %}
|
{% set REPOPATH = '/etc/apt/sources.list.d/' %}
|
||||||
{% set ABSENTFILES = [] %}
|
{% set ABSENTFILES = [] %}
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ include:
|
|||||||
- salt
|
- salt
|
||||||
- salt.helper-packages
|
- salt.helper-packages
|
||||||
- systemd.reload
|
- systemd.reload
|
||||||
|
- repo.client
|
||||||
|
|
||||||
{% if INSTALLEDSALTVERSION|string != SALTVERSION|string %}
|
{% if INSTALLEDSALTVERSION|string != SALTVERSION|string %}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user