From f1df3ec949d9e4e8ed92db365badc4dc8024c2f0 Mon Sep 17 00:00:00 2001 From: pjcreath Date: Fri, 16 Mar 2018 20:10:23 -0400 Subject: [PATCH] Add 'yum clean metadata' after updating the saltstack.repo file as requested. According to https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/deployment_guide/sec-working_with_yum_cache this option "eliminates all files that yum uses to determine the remote availability of packages." --- bootstrap-salt.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/bootstrap-salt.sh b/bootstrap-salt.sh index 2d1bc42..9280139 100755 --- a/bootstrap-salt.sh +++ b/bootstrap-salt.sh @@ -3564,6 +3564,7 @@ _eof fetch_url="${HTTP_VAL}://${_REPO_URL}/yum/redhat/${DISTRO_MAJOR_VERSION}/${CPU_ARCH_L}/${repo_rev}/" __rpm_import_gpg "${fetch_url}${gpg_key}" || return 1 + yum clean metadata || return 1 elif [ "$repo_rev" != "latest" ]; then echowarn "saltstack.repo already exists, ignoring salt version argument." echowarn "Use -F (forced overwrite) to install $repo_rev."