Repository: bigtop
Updated Branches:
  refs/heads/master f9e4b93e9 -> 1e23e67d3


BIGTOP-2378:Do not use archive.apache.org for ant download


Project: http://git-wip-us.apache.org/repos/asf/bigtop/repo
Commit: http://git-wip-us.apache.org/repos/asf/bigtop/commit/d9ff01c6
Tree: http://git-wip-us.apache.org/repos/asf/bigtop/tree/d9ff01c6
Diff: http://git-wip-us.apache.org/repos/asf/bigtop/diff/d9ff01c6

Branch: refs/heads/master
Commit: d9ff01c644e537767a7f1a72d3cff5741ee819b1
Parents: f9e4b93
Author: Olaf Flebbe <[email protected]>
Authored: Sun Apr 10 19:56:03 2016 +0200
Committer: Olaf Flebbe <[email protected]>
Committed: Mon Apr 11 19:06:40 2016 +0200

----------------------------------------------------------------------
 bigtop_toolchain/manifests/ant.pp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/bigtop/blob/d9ff01c6/bigtop_toolchain/manifests/ant.pp
----------------------------------------------------------------------
diff --git a/bigtop_toolchain/manifests/ant.pp 
b/bigtop_toolchain/manifests/ant.pp
index 1ac754f..ca3fabf 100644
--- a/bigtop_toolchain/manifests/ant.pp
+++ b/bigtop_toolchain/manifests/ant.pp
@@ -16,9 +16,9 @@
 class bigtop_toolchain::ant {
   $ant =  'apache-ant-1.9.6'
 
-  include bigtop_toolchain::deps
+  $apache_prefix = nearest_apache_mirror()
 
-  exec {"/usr/bin/wget 
http://archive.apache.org/dist/ant/binaries/$ant-bin.tar.gz":
+  exec {"/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",
   }
@@ -26,7 +26,7 @@ class bigtop_toolchain::ant {
   exec {"/bin/tar xvzf /usr/src/$ant-bin.tar.gz":
     cwd         => '/usr/local',
     creates     => "/usr/local/$ant",
-    require     => Exec["/usr/bin/wget 
http://archive.apache.org/dist/ant/binaries/$ant-bin.tar.gz";],
+    require     => Exec["/usr/bin/wget 
$apache_prefix/ant/binaries/$ant-bin.tar.gz"],
   }
 
   file {'/usr/local/ant':

Reply via email to