]> git.openstreetmap.org Git - chef.git/blob - roles/errol.rb
Fix munin limits for inverted temperature sensors
[chef.git] / roles / errol.rb
1 name "errol"
2 description "Master role applied to errol"
3
4 default_attributes(
5   :munin => {
6     :plugins => {
7       :ipmi_temp => {
8         :CPU0belowTmax => { :critical => "10:" },
9         :CPU1belowTmax => { :critical => "10:" }
10       },
11       :sensors_fan => {
12         :contacts => "null"
13       },
14       :sensors_temp => {
15         :contacts => "null"
16       },
17       :sensors_volt => {
18         :contacts => "null",
19         :volt10 => { 
20           :warning => "3.11:3.50",
21           :critical => "2.98:3.63"
22         }
23       }
24     }
25   },
26   :devices => {
27     :osdsk => {
28       :comment => "First os disk",
29       :type => "block",
30       :bus => "scsi",
31       :serial => "20004d927fffff800",
32       :attrs => {
33         "queue/scheduler" => "deadline",
34         "queue/nr_requests" => "512"
35       }
36     },
37     :homedsk => {
38       :comment => "First home disk",
39       :type => "block",
40       :bus => "scsi",
41       :serial => "20004d927fffff801",
42       :attrs => {
43         "queue/scheduler" => "deadline",
44         "queue/nr_requests" => "512"
45       }
46     }
47   },
48   :networking => {
49     :interfaces => {
50       :internal_ipv4 => {
51         :interface => "eth0",
52         :role => :internal,
53         :family => :inet,
54         :address => "10.0.0.14"
55       },
56       :external_ipv4 => {
57         :interface => "eth1",
58         :role => :external,
59         :family => :inet,
60         :address => "128.40.45.196"
61       }
62     }
63   }
64 );
65
66 run_list(
67   "role[ucl-wolfson]",
68   "role[dev]"
69 )