X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/639b0336707d6c44b11b84c8b03861d580190c83..f195f489c7d17fa3b5e0969f7125c2ae5071953b:/roles/web-frontend.rb diff --git a/roles/web-frontend.rb b/roles/web-frontend.rb index 4d82bd4f6..985811f59 100644 --- a/roles/web-frontend.rb +++ b/roles/web-frontend.rb @@ -15,23 +15,25 @@ default_attributes( }, :logstash => { :forwarder => { - :files => [ - { :paths => ["/var/log/apache2/access.log"], :fields => { :type => "apache" } }, - { :paths => ["/var/log/web/rails-logstash.log"], :fields => { :type => "rails" } } + "filebeat.inputs" => [ + { "type" => "filestream", "id" => "apache", "paths" => ["/var/log/apache2/access.log"], "fields" => { "type" => "apache" }, "fields_under_root" => true }, + { "type" => "filestream", "id" => "rails", "paths" => ["/var/log/web/rails-logstash.log"], "fields" => { "type" => "rails" }, "fields_under_root" => true } ] } }, + :memcached => { + :memory_limit => 8192 + }, :passenger => { :max_pool_size => 50 }, :exim => { :local_domains => ["messages.openstreetmap.org"], - :trusted_users => ["rails"], :routes => { :messages => { :comment => "messages.openstreetmap.org", :domains => ["messages.openstreetmap.org"], - :command => "/usr/local/bin/passenger-ruby /srv/www.openstreetmap.org/rails/script/deliver-message $local_part", + :command => "/usr/local/bin/deliver-message $local_part", :user => "rails", :group => "rails", :home_directory => "/srv/www.openstreetmap.org/rails",