]> git.openstreetmap.org Git - chef.git/blob - roles/planet.rb
Configure modtile and renderd collectors
[chef.git] / roles / planet.rb
1 name "planet"
2 description "Role applied to all planet servers"
3
4 default_attributes(
5   :rsyncd => {
6     :modules => {
7       :planet => {
8         :comment => "Semi public planet.osm archive",
9         :path => "/store/planet",
10         :read_only => true,
11         :write_only => false,
12         :list => true,
13         :uid => "nobody",
14         :gid => "nogroup",
15         :transfer_logging => false,
16         :exclude => [".*"],
17         :max_connections => 10,
18         :ignore_errors => true,
19         :ignore_nonreadable => true,
20         :timeout => 3600,
21         :refuse_options => ["checksum"]
22       }
23     }
24   },
25   :networking => {
26     :firewall => {
27       :http_connection_limit => 10
28     }
29   },
30   :apache => {
31     :mpm => "event",
32     :keepalive => true,
33     :event => {
34       :server_limit => 20,
35       :max_request_workers => 1000,
36       :threads_per_child => 50,
37       :min_spare_threads => 75,
38       :max_spare_threads => 525,
39       :listen_cores_buckets_ratio => 4
40     }
41   }
42 )
43
44 run_list(
45   "role[web-db]",
46   "recipe[planet]",
47   "recipe[planet::replication]",
48   "recipe[nfs::server]",
49   "recipe[rsyncd]"
50 )