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