This is an automated email from the ASF dual-hosted git repository.
iwasakims pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/bigtop.git
The following commit(s) were added to refs/heads/master by this push:
new 106b483d BIGTOP-3962. Fix setup failure of Ant due to unresolved gpg
public key. (#1139)
106b483d is described below
commit 106b483db455d083b858f94cdb9867c6259fdf52
Author: Masatake Iwasaki <[email protected]>
AuthorDate: Mon Jul 24 14:19:12 2023 +0900
BIGTOP-3962. Fix setup failure of Ant due to unresolved gpg public key.
(#1139)
---
bigtop_toolchain/manifests/ant.pp | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/bigtop_toolchain/manifests/ant.pp
b/bigtop_toolchain/manifests/ant.pp
index b7a71f2d..78897de4 100644
--- a/bigtop_toolchain/manifests/ant.pp
+++ b/bigtop_toolchain/manifests/ant.pp
@@ -34,6 +34,11 @@ class bigtop_toolchain::ant {
unless => "/usr/bin/test -f /usr/src/$ant-bin.tar.gz.asc",
} ~>
+ exec { 'Import KEYS to verify signature':
+ command => "/usr/bin/curl -q $apache_prefix/ant/KEYS |
/usr/bin/$bigtop_toolchain::gnupg::cmd --import -",
+ cwd => "/usr/src",
+ } ->
+
exec { 'Verify Ant binaries':
command => "/usr/bin/$bigtop_toolchain::gnupg::cmd -v --verify
--auto-key-retrieve --keyserver hkp://keyserver.ubuntu.com $ant-bin.tar.gz.asc",
cwd => "/usr/src",