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
--- /dev/null
+# DO NOT EDIT - This file is being maintained by Chef
+
+JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64"
+LS_HOME="/usr/share/logstash"
+LS_SETTINGS_DIR="/etc/logstash"
+LS_PIDFILE="/var/run/logstash.pid"
+LS_USER="logstash"
+LS_GROUP="logstash"
+LS_GC_LOG_FILE="/var/log/logstash/gc.log"
+LS_OPEN_FILES="16384"
+LS_NICE="19"
+SERVICE_NAME="logstash"
+SERVICE_DESCRIPTION="logstash"