X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/0ff99dc2859b8cc63d5c13b94ac6a0f5417bef2f..52828e58aaa9b6de4231e34f769003a979e36817:/cookbooks/logstash/recipes/default.rb?ds=sidebyside diff --git a/cookbooks/logstash/recipes/default.rb b/cookbooks/logstash/recipes/default.rb index 620194df8..65b6035cb 100644 --- a/cookbooks/logstash/recipes/default.rb +++ b/cookbooks/logstash/recipes/default.rb @@ -22,7 +22,7 @@ include_recipe "networking" keys = data_bag_item("logstash", "keys") package %w[ - default-jre-headless + openjdk-8-jre-headless logstash ] @@ -54,6 +54,14 @@ file "/etc/logrotate.d/logstash" do mode 0o644 end +template "/etc/default/logstash" do + source "logstash.default.erb" + user "root" + group "root" + mode 0o644 + notifies :restart, "service[logstash]" +end + service "logstash" do action [:enable, :start] supports :status => true, :restart => true, :reload => true