This is an automated email from the ASF dual-hosted git repository.

iwasakims pushed a commit to branch branch-3.0
in repository https://gitbox.apache.org/repos/asf/bigtop.git


The following commit(s) were added to refs/heads/branch-3.0 by this push:
     new 0dfff80  BIGTOP-3647. Change RPM repository for CentOS 8 to Vault 
Mirror. (#868)
0dfff80 is described below

commit 0dfff80870ccf02e53b69418545d9afd4dcd7ebd
Author: Kengo Seki <[email protected]>
AuthorDate: Fri Feb 25 15:21:38 2022 +0900

    BIGTOP-3647. Change RPM repository for CentOS 8 to Vault Mirror. (#868)
    
    
    (cherry picked from commit 42425b8126ec437706cb128249c9240a3d205be7)
---
 bigtop_toolchain/bin/puppetize.sh | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/bigtop_toolchain/bin/puppetize.sh 
b/bigtop_toolchain/bin/puppetize.sh
index 44765a0..b137157 100755
--- a/bigtop_toolchain/bin/puppetize.sh
+++ b/bigtop_toolchain/bin/puppetize.sh
@@ -51,7 +51,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)'

Reply via email to