-apt_source "logstash" do
- template "elasticsearch.list.erb"
- url "http://packages.elasticsearch.org/logstash/2.3/debian"
+apt_repository "nginx" do
+ action repository_actions["nginx"]
+ arch "amd64"
+ uri "https://nginx.org/packages/ubuntu"
+ components ["nginx"]
+ key "ABF5BD827BD9BF62"
+end
+
+apt_repository "elasticsearch5.x" do
+ action repository_actions["elasticsearch5.x"]
+ uri "https://artifacts.elastic.co/packages/5.x/apt"
+ distribution "stable"
+ components ["main"]