]> git.openstreetmap.org Git - chef.git/blob - roles/ridgeback.rb
Increase smart warning threshold for SSDs on gorynych
[chef.git] / roles / ridgeback.rb
1 name "ridgeback"
2 description "Master role applied to ridgeback"
3
4 default_attributes(
5   :munin => {
6     :plugins => {
7       :ipmi_fans => {
8         :Fan4 => { :graph => "no", :warning => "0:" },
9         :Fan5 => { :graph => "no", :warning => "0:" },
10         :Fan6 => { :graph => "no", :warning => "0:" },
11         :Fan7CPU1 => { :graph => "no", :warning => "0:" }
12       }
13     }
14   },
15   :networking => {
16     :interfaces => {
17       :external_ipv4 => {
18         :interface => "eth0",
19         :role => :external,
20         :family => :inet,
21         :address => "31.169.50.10",
22         :prefix => "30",
23         :gateway => "31.169.50.9"
24       }
25     }
26   },
27   :sysfs => {
28     :md_tune => {
29       :comment => "Tune the md sync performance so as not to kill system performance",
30       :parameters => {
31         "block/md0/md/sync_speed_min" => "1",
32         "block/md0/md/sync_speed_max" => "100000",
33         "block/md1/md/sync_speed_min" => "1",
34         "block/md1/md/sync_speed_max" => "100000"
35       }
36     }
37   },
38   :squid => {
39     :cache_mem => "5500 MB",
40     :cache_dir => "coss /store/squid/coss-01 128000 block-size=8192 max-size=262144 membufs=80"
41   },
42   :tilecache => {
43     :tile_parent => "oslo.render.openstreetmap.org",
44     :tile_siblings => [
45       "fume.openstreetmap.org",
46       "trogdor.openstreetmap.org",
47       "katie.openstreetmap.org",
48       "konqi.openstreetmap.org",
49       "nepomuk.openstreetmap.org",
50       "gorynych.openstreetmap.org",
51       "simurgh.openstreetmap.org"
52     ]
53   },
54   :munin => {
55     :plugins => {
56       :smart_sda => {
57         :smartctl_exit_status => {
58           :warning => 8
59         }
60       },
61       :smart_sdb => {
62         :smartctl_exit_status => {
63           :warning => 8
64         }
65       }
66     }
67   }
68 )
69
70 run_list(
71   "role[blix-no]",
72   "role[tilecache]"
73 )