]> git.openstreetmap.org Git - chef.git/blob - roles/wiki.rb
Add role for saphira
[chef.git] / roles / wiki.rb
1 name "wiki"
2 description "Role applied to all wiki servers"
3
4 default_attributes(
5   :accounts => {
6     :users => {
7       :wiki => { :status => :role }
8     }
9   },
10   :exim => {
11     :trusted_users => [ "www-data" ],
12     :aliases => {
13       :root => "grant"
14     },
15     :rewrites => [
16       {
17         :pattern => "www-data@openstreetmap.org",
18         :replacement => "wiki@noreply.openstreetmap.org",
19         :flags => "F"
20       }
21     ]
22   },
23   :memcached => {
24     :memory_limit => 1024,
25     :connection_limit => 8192,
26     :chunk_growth_factor => 1.05,
27     :min_item_size => 5
28   },
29   :apache => {
30     :mpm => "prefork",
31     :timeout => 30,
32     :event => {
33       :server_limit => 32,
34       :max_clients => 800,
35       :threads_per_child => 50,
36       :max_requests_per_child => 10000
37     }
38   }
39 )
40
41 run_list(
42   "recipe[elasticsearch]",
43   "recipe[wiki]"
44 )