]> git.openstreetmap.org Git - chef.git/blob - roles/orm.rb
Get rid of the not really used ucl-external role
[chef.git] / roles / orm.rb
1 name "orm"
2 description "Master role applied to orm"
3
4 default_attributes(
5   :devices => {
6     :ssd_samsung => {
7       :comment => "Tune scheduler for SSD",
8       :type => "block",
9       :bus => "ata",
10       :serial => "Samsung_SSD_840_PRO_Series_*",
11       :attrs => {
12         "queue/scheduler" => "noop",
13         "queue/nr_requests" => "256",
14         "queue/read_ahead_kb" => "2048"
15       }
16     },
17     :arecavoltune => {
18       :comment => "Tune scheduler for Areca",
19       :type => "block",
20       :bus => "scsi",
21       :serial => "2001b4d20*",
22       :attrs => {
23         "queue/scheduler" => "deadline",
24         "queue/nr_requests" => "512",
25         "queue/read_ahead_kb" => "2048"
26       }
27     }
28   },
29   :munin => {
30     :plugins => {
31       :ipmi_fans => {
32         :Sys6 => { :graph => "no" },
33         :Sys8 => { :graph => "no" }
34       },
35       :sensors_fan => {
36         :fan3 => { :graph => "no" },
37         :fan4 => { :graph => "no" },
38         :fan5 => { :graph => "no" },
39         :fan6 => { :graph => "no" },
40         :fan7 => { :graph => "no" },
41         :fan8 => { :graph => "no" },
42         :fan9 => { :graph => "no" },
43         :fan10 => { :graph => "no" },
44         :fan11 => { :graph => "no" },
45         :fan12 => { :graph => "no" }
46       },
47       :sensors_volt => {
48         :contacts => "null",
49         :volt6 => {
50           :warning => "2.992:3.536"
51         }
52       }
53     }
54   },
55   :networking => {
56     :interfaces => {
57       :external_ipv4 => {
58         :interface => "eth0",
59         :role => :external,
60         :family => :inet,
61         :address => "193.63.75.98"
62       },
63       :external_ipv6 => {
64         :interface => "eth0",
65         :role => :external,
66         :family => :inet6,
67         :address => "2001:630:12:500:2e0:81ff:fec5:2a8c"
68       }
69     }
70   },
71   :postgresql => {
72     :versions => [ "9.1" ],
73     :settings => {
74       :defaults => {
75         :shared_buffers => "8GB",
76         :maintenance_work_mem => "7144MB",
77         :effective_cache_size => "16GB"
78       }
79     }
80   },
81   :sysctl => {
82     :postgres => {
83       :comment => "Increase shared memory for postgres",
84       :parameters => { 
85         "kernel.shmmax" => 9 * 1024 * 1024 * 1024,
86         "kernel.shmall" => 9 * 1024 * 1024 * 1024 / 4096
87       }
88     }
89   },
90   :tile => {
91     :node_file => "/store/database/nodes",
92     :styles => {
93       :default => {
94         :tile_directories => [
95           { :name => "/store/tiles/default-low", :min_zoom => 0, :max_zoom => 17 },
96           { :name => "/store/tiles/default-high", :min_zoom => 18, :max_zoom => 19 }
97         ]
98       }
99     }
100   }
101 )
102
103 override_attributes(
104   :networking => {
105     :nameservers => [ "8.8.8.8", "8.8.4.4" ]
106   }
107 )
108
109 run_list(
110   "role[ic]",
111   "role[tile]"
112 )