ensure salt-latest.repo is absent, salt.minion state include repo.client

This commit is contained in:
m0duspwnens
2022-01-29 11:04:03 -05:00
parent ddba4a5fe5
commit a90660c07b
3 changed files with 4 additions and 2 deletions

View File

@@ -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

View File

@@ -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 %}

View File

@@ -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 %}