]> git.openstreetmap.org Git - chef.git/blob - roles/orm.rb
add apache site config for nominatim
[chef.git] / roles / orm.rb
1 name "orm"
2 description "Master role applied to orm"
3
4 default_attributes(
5   :munin => {
6     :plugins => {
7       :ipmi_fans => {
8         :Sys6 => { :graph => "no" },
9         :Sys8 => { :graph => "no" }
10       },
11       :sensors_fan => {
12         :fan3 => { :graph => "no" },
13         :fan4 => { :graph => "no" },
14         :fan5 => { :graph => "no" },
15         :fan6 => { :graph => "no" },
16         :fan7 => { :graph => "no" },
17         :fan8 => { :graph => "no" },
18         :fan9 => { :graph => "no" },
19         :fan10 => { :graph => "no" },
20         :fan11 => { :graph => "no" },
21         :fan12 => { :graph => "no" }
22       },
23       :sensors_volt => {
24         :contacts => "null",
25       }
26     }
27   },
28   :networking => {
29     :interfaces => {
30       :external_ipv4 => {
31         :interface => "eth0",
32         :role => :external,
33         :family => :inet,
34         :address => "193.63.75.98"
35       },
36       :external_ipv6 => {
37         :interface => "eth0",
38         :role => :external,
39         :family => :inet6,
40         :address => "2001:630:12:500:2e0:81ff:fec5:2a8c"
41       }
42     }
43   },
44   :postgresql => {
45     :versions => [ "9.1" ],
46     :settings => {
47       :defaults => {
48         :shared_buffers => "8GB",
49         :maintenance_work_mem => "7144MB",
50         :effective_cache_size => "16GB"
51       }
52     }
53   },
54   :sysctl => {
55     :postgres => {
56       :comment => "Increase shared memory for postgres",
57       :parameters => { 
58         "kernel.shmmax" => 9 * 1024 * 1024 * 1024,
59         "kernel.shmall" => 9 * 1024 * 1024 * 1024 / 4096
60       }
61     }
62   },
63   :tile => {
64     :tile_directory => "/store/tiles",
65     :node_file => "/store/database/nodes"
66   }
67 )
68
69 override_attributes(
70   :networking => {
71     :nameservers => [ "8.8.8.8", "8.8.4.4" ]
72   }
73 )
74
75 run_list(
76   "role[ic]",
77   "role[tile]"
78 )