]> git.openstreetmap.org Git - chef.git/blob - roles/ridgeback.rb
Update piwik to 4.6.1
[chef.git] / roles / ridgeback.rb
1 name "ridgeback"
2 description "Master role applied to ridgeback"
3
4 default_attributes(
5   :hardware => {
6     :ipmi => {
7       :excluded_sensors => [19, 20, 21, 22]
8     }
9   },
10   :munin => {
11     :plugins => {
12       :ipmi_fans => {
13         :Fan4 => { :graph => "no", :warning => "0:" },
14         :Fan5 => { :graph => "no", :warning => "0:" },
15         :Fan6 => { :graph => "no", :warning => "0:" },
16         :Fan7CPU1 => { :graph => "no", :warning => "0:" }
17       },
18       :smart_sda => {
19         :smartctl_exit_status => {
20           :warning => 8
21         }
22       },
23       :smart_sdb => {
24         :smartctl_exit_status => {
25           :warning => 8
26         }
27       }
28     }
29   },
30   :networking => {
31     :interfaces => {
32       :external_ipv4 => {
33         :interface => "eth0",
34         :role => :external,
35         :family => :inet,
36         :address => "31.169.50.10",
37         :prefix => "30",
38         :gateway => "31.169.50.9"
39       }
40     }
41   },
42   :sysfs => {
43     :md_tune => {
44       :comment => "Tune the md sync performance so as not to kill system performance",
45       :parameters => {
46         "block/md0/md/sync_speed_min" => "1",
47         "block/md0/md/sync_speed_max" => "100000",
48         "block/md1/md/sync_speed_min" => "1",
49         "block/md1/md/sync_speed_max" => "100000"
50       }
51     }
52   }
53 )
54
55 run_list(
56   "role[blix-no]",
57   "role[geodns]"
58 )