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 f4155f4  BIGTOP-3637. Add Rocky Linux 8 support. (#859)
f4155f4 is described below

commit f4155f4235edb6f67c8f612479a6b090e37c5d38
Author: Masatake Iwasaki <[email protected]>
AuthorDate: Sat Feb 5 19:58:31 2022 +0900

    BIGTOP-3637. Add Rocky Linux 8 support. (#859)
    
    
    (cherry picked from commit e22bb1114c64f99f65056485dd454bc78b4c9f13)
---
 bigtop-deploy/puppet/manifests/jdk.pp | 2 +-
 bigtop_toolchain/bin/puppetize.sh     | 2 +-
 docker/bigtop-slaves/build.sh         | 4 ++++
 provisioner/docker/docker-hadoop.sh   | 2 +-
 4 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/bigtop-deploy/puppet/manifests/jdk.pp 
b/bigtop-deploy/puppet/manifests/jdk.pp
index 8813821..895a81f 100644
--- a/bigtop-deploy/puppet/manifests/jdk.pp
+++ b/bigtop-deploy/puppet/manifests/jdk.pp
@@ -41,7 +41,7 @@ class jdk {
         noop => $jdk_preinstalled,
       }
     }
-    /(CentOS|Amazon|Fedora)/: {
+    /(CentOS|Amazon|Fedora|RedHat)/: {
       package { 'jdk':
         name => 'java-1.8.0-openjdk-devel',
         ensure => present,
diff --git a/bigtop_toolchain/bin/puppetize.sh 
b/bigtop_toolchain/bin/puppetize.sh
index 0b05cb5..44765a0 100755
--- a/bigtop_toolchain/bin/puppetize.sh
+++ b/bigtop_toolchain/bin/puppetize.sh
@@ -51,7 +51,7 @@ 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*)
+    centos-8*|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)'
diff --git a/docker/bigtop-slaves/build.sh b/docker/bigtop-slaves/build.sh
index b8f8cb4..e1ad239 100755
--- a/docker/bigtop-slaves/build.sh
+++ b/docker/bigtop-slaves/build.sh
@@ -68,6 +68,10 @@ case ${OS} in
             UPDATE_SOURCE="yum clean all \&\& yum updateinfo"
         fi
         ;;
+    rockylinux)
+        
PUPPET_MODULES="/etc/puppetlabs/code/environments/production/modules/bigtop_toolchain"
+        UPDATE_SOURCE="dnf clean all \&\& dnf updateinfo"
+        ;;
     opensuse)
         PUPPET_MODULES="/etc/puppet/modules/bigtop_toolchain"
         UPDATE_SOURCE="zypper clean \&\& zypper refresh"
diff --git a/provisioner/docker/docker-hadoop.sh 
b/provisioner/docker/docker-hadoop.sh
index 2a08243..fd09666 100755
--- a/provisioner/docker/docker-hadoop.sh
+++ b/provisioner/docker/docker-hadoop.sh
@@ -378,7 +378,7 @@ while [ $# -gt 0 ]; do
         image_name=$2
         # Determine distro to bootstrap provisioning environment
         case "${image_name}" in
-          *-centos-*|*-fedora-*|*-opensuse-*)
+          *-centos-*|*-fedora-*|*-opensuse-*|*-rockylinux-*)
             distro=centos
             ;;
           *-debian-*|*-ubuntu-*)

Reply via email to