]> git.openstreetmap.org Git - chef.git/blob - roles/orm.rb
Ignore more disconnected fans
[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         :Sys3Front1 => { :graph => "no" },
33         :Sys4Front2 => { :graph => "no" },
34         :Sys5Rear1 => { :graph => "no" },
35         :Sys6 => { :graph => "no" },
36         :Sys7 => { :graph => "no" },
37         :Sys8 => { :graph => "no" },
38         :Sys9 => { :graph => "no" },
39         :Sys10 => { :graph => "no" }
40       },
41       :ipmi_temp => {
42         :CPU0belowTmax => { :critical => "10:" },
43         :CPU1belowTmax => { :critical => "10:" }
44       },
45       :sensors_fan => {
46         :fan3 => { :graph => "no" },
47         :fan4 => { :graph => "no" },
48         :fan5 => { :graph => "no" },
49         :fan6 => { :graph => "no" },
50         :fan7 => { :graph => "no" },
51         :fan8 => { :graph => "no" },
52         :fan9 => { :graph => "no" },
53         :fan10 => { :graph => "no" },
54         :fan11 => { :graph => "no" },
55         :fan12 => { :graph => "no" }
56       },
57       :sensors_volt => {
58         :contacts => "null",
59         :volt6 => {
60           :warning => "2.992:3.536"
61         }
62       }
63     }
64   },
65   :networking => {
66     :interfaces => {
67       :external_ipv4 => {
68         :interface => "eth0",
69         :role => :external,
70         :family => :inet,
71         :address => "193.63.75.98"
72       },
73       :external_ipv6 => {
74         :interface => "eth0",
75         :role => :external,
76         :family => :inet6,
77         :address => "2001:630:12:500:2e0:81ff:fec5:2a8c"
78       }
79     }
80   },
81   :postgresql => {
82     :versions => [ "9.1" ],
83     :settings => {
84       :defaults => {
85         :shared_buffers => "8GB",
86         :maintenance_work_mem => "7144MB",
87         :effective_cache_size => "16GB"
88       }
89     }
90   },
91   :sysctl => {
92     :postgres => {
93       :comment => "Increase shared memory for postgres",
94       :parameters => { 
95         "kernel.shmmax" => 9 * 1024 * 1024 * 1024,
96         "kernel.shmall" => 9 * 1024 * 1024 * 1024 / 4096
97       }
98     }
99   },
100   :tile => {
101     :node_file => "/store/database/nodes",
102     :styles => {
103       :default => {
104         :tile_directories => [
105           { :name => "/store/tiles/default-low", :min_zoom => 0, :max_zoom => 17 },
106           { :name => "/store/tiles/default-high", :min_zoom => 18, :max_zoom => 19 }
107         ]
108       }
109     }
110   }
111 )
112
113 override_attributes(
114   :networking => {
115     :nameservers => [ "8.8.8.8", "8.8.4.4" ]
116   }
117 )
118
119 run_list(
120   "role[ic]",
121   "role[tile]"
122 )