From a4e44e32088488ec35482606468ed56c76c1d212 Mon Sep 17 00:00:00 2001 From: Pavel Sapezhko Date: Wed, 29 Sep 2021 15:56:44 +0300 Subject: [PATCH] Change default archive url (#172) --- manifests/install/archive.pp | 2 +- spec/classes/install_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/manifests/install/archive.pp b/manifests/install/archive.pp index d50e33a..ba9b58e 100644 --- a/manifests/install/archive.pp +++ b/manifests/install/archive.pp @@ -8,7 +8,7 @@ if versioncmp($zookeeper::archive_version, '3.5.5') >= 0 { $filename = "apache-${module_name}-${zookeeper::archive_version}-bin" $archive_dl_site = $zookeeper::archive_dl_site ? { - undef => 'http://apache.org/dist/zookeeper', + undef => 'https://downloads.apache.org/zookeeper', default => $zookeeper::archive_dl_site, } } else { diff --git a/spec/classes/install_spec.rb b/spec/classes/install_spec.rb index 7d00984..c64de7f 100644 --- a/spec/classes/install_spec.rb +++ b/spec/classes/install_spec.rb @@ -257,7 +257,7 @@ let(:install_dir) { '/opt' } let(:zoo_dir) { '/opt/zookeeper' } let(:vers) { '3.5.5' } - let(:mirror_url) { 'http://apache.org/dist/zookeeper' } + let(:mirror_url) { 'https://downloads.apache.org/zookeeper' } let(:basefilename) { "apache-zookeeper-#{vers}-bin.tar.gz" } let(:package_url) { "#{mirror_url}/zookeeper-#{vers}/apache-zookeeper-#{vers}-bin.tar.gz" } let(:extract_path) { "/opt/apache-zookeeper-#{vers}-bin" }