-apt_source "elasticsearch" do
- template "elasticsearch.list.erb"
- url "http://packages.elasticsearch.org/elasticsearch/1.0/debian"
- key "D88E42B4"
+apt_source "elasticsearch1.7" do
+ source_template "elasticsearch.list.erb"
+ url "https://packages.elasticsearch.org/elasticsearch/1.7/debian"
+ key "D27D666CD88E42B4"
+end
+
+apt_source "elasticsearch2.x" do
+ source_template "elasticsearch.list.erb"
+ url "https://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 "https://packages.elasticsearch.org/logstash/2.3/debian"
+ key "D27D666CD88E42B4"
+end
+
+apt_source "logstash-forwarder" do
+ source_template "elasticsearch.list.erb"
+ url "https://packages.elasticsearch.org/logstashforwarder/debian"
+ key "D27D666CD88E42B4"