]> git.openstreetmap.org Git - chef.git/blob - roles/errol.rb
61bf2e15b4c7a969e70e2c600646630d03185de6
[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_fans => {
8         :Sys3Front1 => { :graph => "no" },
9         :Sys4Front2 => { :graph => "no" },
10         :Sys5Rear1 => { :graph => "no" },
11         :Sys6 => { :graph => "no" },
12         :Sys7 => { :graph => "no" },
13         :Sys8 => { :graph => "no" },
14         :Sys9 => { :graph => "no" },
15         :Sys10 => { :graph => "no" }
16       },
17       :ipmi_temp => {
18         :CPU0belowTmax => { :critical => "10:" },
19         :CPU1belowTmax => { :critical => "10:" }
20       },
21       :sensors_fan => {
22         :contacts => "null"
23       },
24       :sensors_temp => {
25         :contacts => "null"
26       },
27       :sensors_volt => {
28         :contacts => "null",
29         :volt10 => { 
30           :warning => "3.11:3.50",
31           :critical => "2.98:3.63"
32         }
33       }
34     }
35   },
36   :devices => {
37     :osdsk => {
38       :comment => "First os disk",
39       :type => "block",
40       :bus => "scsi",
41       :serial => "20004d927fffff800",
42       :attrs => {
43         "queue/scheduler" => "deadline",
44         "queue/nr_requests" => "512"
45       }
46     },
47     :homedsk => {
48       :comment => "First home disk",
49       :type => "block",
50       :bus => "scsi",
51       :serial => "20004d927fffff801",
52       :attrs => {
53         "queue/scheduler" => "deadline",
54         "queue/nr_requests" => "512"
55       }
56     }
57   },
58   :networking => {
59     :interfaces => {
60       :internal_ipv4 => {
61         :interface => "eth0",
62         :role => :internal,
63         :family => :inet,
64         :address => "10.0.0.14"
65       },
66       :external_ipv4 => {
67         :interface => "eth1",
68         :role => :external,
69         :family => :inet,
70         :address => "128.40.45.196"
71       }
72     }
73   }
74 );
75
76 run_list(
77   "role[ucl-wolfson]",
78   "role[dev]"
79 )