keys = data_bag_item("logstash", "keys")
package %w[
- default-jre-headless
+ openjdk-8-jre-headless
logstash
]
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