Resources
File["/etc/graylog2.conf"]
content => template("graylog2/graylog2.conf.erb")
owner => "root"
group => "root"
mode => "0644"
notify => Service["graylog2-server"]
File["/etc/sysconfig/graylog2-server"]
content => template("graylog2/graylog2-server.sysconfig.erb")
owner => "root"
group => "root"
mode => "0644"
notify => Service["graylog2-server"]
Package["graylog2-server"]
ensure => installed
Service["graylog2-server"]
enable => true
ensure => running
hasstatus => true
require => Package["graylog2-server"]