Change RPM repository for CentOS 8 to Vault Mirror.
@@ -47,7 +47,10 @@ case ${ID}-${VERSION_ID} in
yum -y install hostname curl sudo unzip wget puppet
puppet module install puppetlabs-stdlib --version 4.12.0
;;
- centos-8*|rocky-8*)
+ centos-8*)
+ sed -i -e 's/^\(mirrorlist\)/#\1/' -e 's,^#baseurl=http://mirror.centos.org,baseurl=http://vault.centos.org,' /etc/yum.repos.d/CentOS-Linux-*
+ ;&
+ rocky-8*)
rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
dnf -y check-update
dnf -y install glibc-langpack-en hostname diffutils curl sudo unzip wget puppet 'dnf-command(config-manager)'
