You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bigtop.apache.org by iw...@apache.org on 2021/12/07 03:04:50 UTC
[bigtop] branch branch-3.0 updated: BIGTOP-3609 - Update ca-certificates for CentOS 7 (#838)
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 3b10ad3 BIGTOP-3609 - Update ca-certificates for CentOS 7 (#838)
3b10ad3 is described below
commit 3b10ad375bb916a959e774c2faade3efdaf11479
Author: Luca Toscano <el...@users.noreply.github.com>
AuthorDate: Tue Dec 7 04:03:12 2021 +0100
BIGTOP-3609 - Update ca-certificates for CentOS 7 (#838)
Due to https://access.redhat.com/articles/6338021 ant and maven classes
fail to download due to TLS certificate expiration check issues.
(cherry picked from commit 5a0a583f3a0d327b329e98061d27369b5eb60fe0)
---
bigtop_toolchain/manifests/ant.pp | 13 +++++++++----
bigtop_toolchain/manifests/groovy.pp | 10 +++++++---
bigtop_toolchain/manifests/maven.pp | 15 ++++++++++-----
bigtop_toolchain/manifests/packages.pp | 8 ++++++++
4 files changed, 34 insertions(+), 12 deletions(-)
diff --git a/bigtop_toolchain/manifests/ant.pp b/bigtop_toolchain/manifests/ant.pp
index c378d74..8ee9226 100644
--- a/bigtop_toolchain/manifests/ant.pp
+++ b/bigtop_toolchain/manifests/ant.pp
@@ -16,26 +16,31 @@
class bigtop_toolchain::ant {
require bigtop_toolchain::gnupg
+ require bigtop_toolchain::packages
# Ant version restricted to 1.9 because 1.10 supports Java>=8 only.
$ant = latest_ant_binary("1.9.[0-9]*")
$apache_prefix = nearest_apache_mirror()
- exec {"/usr/bin/wget $apache_prefix/ant/binaries/$ant-bin.tar.gz":
+ exec { 'Download Ant binaries':
+ command => "/usr/bin/wget $apache_prefix/ant/binaries/$ant-bin.tar.gz",
cwd => "/usr/src",
unless => "/usr/bin/test -f /usr/src/$ant-bin.tar.gz",
} ~>
- exec {"/usr/bin/wget https://www.apache.org/dist/ant/binaries/$ant-bin.tar.gz.asc":
+ exec { 'Download Ant binaries signature':
+ command => "/usr/bin/wget https://www.apache.org/dist/ant/binaries/$ant-bin.tar.gz.asc",
cwd => "/usr/src",
unless => "/usr/bin/test -f /usr/src/$ant-bin.tar.gz.asc",
} ~>
- exec {"/usr/bin/$bigtop_toolchain::gnupg::cmd -v --verify --auto-key-retrieve --keyserver hkp://keyserver.ubuntu.com:80 $ant-bin.tar.gz.asc":
+ exec { 'Verify Ant binaries':
+ command => "/usr/bin/$bigtop_toolchain::gnupg::cmd -v --verify --auto-key-retrieve --keyserver hkp://keyserver.ubuntu.com:80 $ant-bin.tar.gz.asc",
cwd => "/usr/src",
} ->
- exec {"/bin/tar xvzf /usr/src/$ant-bin.tar.gz":
+ exec { 'Extract Ant binaries':
+ command => "/bin/tar xvzf /usr/src/$ant-bin.tar.gz",
cwd => '/usr/local',
creates => "/usr/local/$ant",
} ->
diff --git a/bigtop_toolchain/manifests/groovy.pp b/bigtop_toolchain/manifests/groovy.pp
index ca3b4e7..39f33e8 100644
--- a/bigtop_toolchain/manifests/groovy.pp
+++ b/bigtop_toolchain/manifests/groovy.pp
@@ -15,16 +15,20 @@
class bigtop_toolchain::groovy {
+ require bigtop_toolchain::packages
+
$groovy_version = '2.5.4'
$groovy = "apache-groovy-binary-${groovy_version}"
- exec {"/usr/bin/wget https://dl.bintray.com/groovy/maven/${groovy}.zip":
+ exec { 'Download Groovy':
+ command => "/usr/bin/wget https://dl.bintray.com/groovy/maven/${groovy}.zip",
cwd => "/usr/src",
unless => "/usr/bin/test -f /usr/src/${groovy}.zip",
} ~>
- exec {"/usr/bin/unzip -x -o /usr/src/${groovy}.zip":
- cwd => '/usr/local',
+ exec {'Extract Groovy':
+ command => /usr/bin/unzip -x -o /usr/src/${groovy}.zip":
+ cwd => '/usr/local',
} ->
file {'/usr/local/groovy':
diff --git a/bigtop_toolchain/manifests/maven.pp b/bigtop_toolchain/manifests/maven.pp
index 6d914e2..55318ce 100644
--- a/bigtop_toolchain/manifests/maven.pp
+++ b/bigtop_toolchain/manifests/maven.pp
@@ -16,31 +16,36 @@
class bigtop_toolchain::maven {
require bigtop_toolchain::gnupg
+ require bigtop_toolchain::packages
$mvnversion = latest_maven_binary("3.6.[0-9]*")
$mvn = "apache-maven-$mvnversion"
$apache_prefix = nearest_apache_mirror()
- exec {"/usr/bin/wget $apache_prefix/maven/maven-3/$mvnversion/binaries/$mvn-bin.tar.gz":
+ exec { 'Download Maven binaries':
+ command => "/usr/bin/wget $apache_prefix/maven/maven-3/$mvnversion/binaries/$mvn-bin.tar.gz",
cwd => "/usr/src",
unless => "/usr/bin/test -f /usr/src/$mvn-bin.tar.gz",
} ~>
- exec {"/usr/bin/wget https://www.apache.org/dist/maven/maven-3/$mvnversion/binaries/$mvn-bin.tar.gz.asc":
+ exec { 'Download Maven binaries signature':
+ command => "/usr/bin/wget https://www.apache.org/dist/maven/maven-3/$mvnversion/binaries/$mvn-bin.tar.gz.asc",
cwd => "/usr/src",
unless => "/usr/bin/test -f /usr/src/$mvn-bin.tar.gz.asc",
} ~>
- exec {"/usr/bin/$bigtop_toolchain::gnupg::cmd --no-tty -v --verify --auto-key-retrieve --keyserver hkp://keyserver.ubuntu.com:80 $mvn-bin.tar.gz.asc":
+ exec { 'Verify Maven binaries signature':
+ command => "/usr/bin/$bigtop_toolchain::gnupg::cmd --no-tty -v --verify --auto-key-retrieve --keyserver hkp://keyserver.ubuntu.com:80 $mvn-bin.tar.gz.asc",
cwd => "/usr/src",
} ->
- exec {"/bin/tar xvzf /usr/src/$mvn-bin.tar.gz":
+ exec { 'Extract Maven binaries':
+ command => "/bin/tar xvzf /usr/src/$mvn-bin.tar.gz",
cwd => '/usr/local',
creates => "/usr/local/$mvn",
} ->
-
+
file {'/usr/local/maven':
ensure => link,
target => "/usr/local/$mvn",
diff --git a/bigtop_toolchain/manifests/packages.pp b/bigtop_toolchain/manifests/packages.pp
index 34c2f25..2f1e579 100644
--- a/bigtop_toolchain/manifests/packages.pp
+++ b/bigtop_toolchain/manifests/packages.pp
@@ -65,6 +65,7 @@ class bigtop_toolchain::packages {
"net-tools",
"perl-Digest-SHA"
]
+
if ($operatingsystem == 'Fedora' or $operatingsystemmajrelease !~ /^[0-7]$/) {
$pkgs = concat($_pkgs, ["python2-devel", "libtirpc-devel", "cmake"])
} else {
@@ -232,6 +233,13 @@ class bigtop_toolchain::packages {
package { 'epel-release':
ensure => installed
}
+
+ if $operatingsystemmajrelease == 7 {
+ # https://access.redhat.com/errata/RHBA-2021:3649
+ package { 'ca-certificates':
+ ensure => latest
+ }
+ }
if $operatingsystemmajrelease !~ /^[0-7]$/ {
# On CentOS 8, EPEL requires that the PowerTools repository is enabled.
# See https://fedoraproject.org/wiki/EPEL#How_can_I_use_these_extra_packages.3F