Class graylog2::web
In: /modules/graylog2/manifests/web.pp
Parent:

Requirements :

  • extract the release to /opt/graylog2-web
  • have the user pre-created

cd /opt/graylog2-web chown -R root. . mkdir log chown graylog2. log bundle install —deployment

Resources

Resources

File["/etc/init.d/graylog2-web"]
   owner => "root"
   group => "root"
   mode => "0755"
   content => template("graylog2/graylog2-web.init.erb")
File["/etc/sysconfig/graylog2-web"]
   owner => "root"
   group => $user
   mode => "0640"
   content => template("graylog2/graylog2-web.sysconfig.erb")
Package["rubygem-bundler"]
   ensure => installed

Required for the "bundle install —deployment" to work

Service["graylog2-web"]
   enable => true
   ensure => running
   hasstatus => true
   require => [File["/etc/init.d/graylog2-web"], File["/etc/sysconfig/graylog2-web"]]

[Validate]