Correct URL for elasticsearch 5.x repository
[chef.git] / cookbooks / apt / recipes / default.rb
index 57c279cd68565668071c9a7dbdc5a49725471c6c..1de8cffe24d6b36d9d85859cc248b73718f9c032 100644 (file)
@@ -96,12 +96,24 @@ apt_source "nginx" do
   key "ABF5BD827BD9BF62"
 end
 
-apt_source "elasticsearch" do
+apt_source "elasticsearch1.7" do
   source_template "elasticsearch.list.erb"
   url "http://packages.elasticsearch.org/elasticsearch/1.7/debian"
   key "D27D666CD88E42B4"
 end
 
+apt_source "elasticsearch2.x" do
+  source_template "elasticsearch.list.erb"
+  url "http://packages.elasticsearch.org/elasticsearch/2.x/debian"
+  key "D27D666CD88E42B4"
+end
+
+apt_source "elasticsearch5.x" do
+  source_template "elasticsearch.list.erb"
+  url "https://artifacts.elastic.co/packages/5.x/apt"
+  key "D27D666CD88E42B4"
+end
+
 apt_source "logstash" do
   source_template "elasticsearch.list.erb"
   url "http://packages.elasticsearch.org/logstash/2.3/debian"