]> git.openstreetmap.org Git - chef.git/blob - roles/web-backend.rb
stateofthemap: add reasonable expiry headers
[chef.git] / roles / web-backend.rb
1 name "web-backend"
2 description "Role applied to all web/api backend servers"
3
4 default_attributes(
5   :apache => {
6     :mpm => "worker",
7     :worker => {
8       :max_connections_per_child => 10000
9     }
10   },
11   :logstash => {
12     :forwarder => {
13       "filebeat.prospectors" => [
14         { "input_type" => "log", "paths" => ["/var/log/apache2/access.log"], "fields" => { "type" => "apache" } },
15         { "input_type" => "log", "paths" => ["/var/log/web/rails-logstash.log"], "fields" => { "type" => "rails" } }
16       ]
17     }
18   },
19   :memcached => {
20     :memory_limit => 4096
21   },
22   :passenger => {
23     :max_pool_size => 12
24   }
25 )
26
27 run_list(
28   "role[web]",
29   "role[logstash-forwarder]",
30   "recipe[web::backend]"
31 )