brightbox/puppet

Elastic Search fallback downlaod URL does not work for newest elastic search releases

EmmanuelKasper opened this issue · 0 comments

Elastic search releases are now available from elasticsearch.org instead of github.
The fallback URL in elasticsearch/manifests/init.pp could be updated as such

--- a/scripts/vagrant/modules/elasticsearch/manifests/init.pp
+++ b/scripts/vagrant/modules/elasticsearch/manifests/init.pp
@@ -16,7 +16,7 @@ class elasticsearch($version = "0.90.1", $heap_size = "1024m", $cluster_name = '
   }
   apt::localpackage { "elasticsearch":
     url => $deburl ? {
-      false => "https://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-${version}.deb",
+      false => "https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-$version.deb",
       default => $deburl
     }
   }