]> git.openstreetmap.org Git - chef.git/blob - roles/ridgeback.rb
Ignore some unconnected IPMI fan sensors
[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     :shm_size => "10g"
10   },
11   :munin => {
12     :plugins => {
13       :ipmi_fans => {
14         :Fan4 => { :graph => "no", :warning => "0:" },
15         :Fan5 => { :graph => "no", :warning => "0:" },
16         :Fan6 => { :graph => "no", :warning => "0:" },
17         :Fan7CPU1 => { :graph => "no", :warning => "0:" }
18       },
19       :smart_sda => {
20         :smartctl_exit_status => {
21           :warning => 8
22         }
23       },
24       :smart_sdb => {
25         :smartctl_exit_status => {
26           :warning => 8
27         }
28       }
29     }
30   },
31   :networking => {
32     :interfaces => {
33       :external_ipv4 => {
34         :interface => "eth0",
35         :role => :external,
36         :family => :inet,
37         :address => "31.169.50.10",
38         :prefix => "30",
39         :gateway => "31.169.50.9"
40       }
41     }
42   },
43   :sysfs => {
44     :md_tune => {
45       :comment => "Tune the md sync performance so as not to kill system performance",
46       :parameters => {
47         "block/md0/md/sync_speed_min" => "1",
48         "block/md0/md/sync_speed_max" => "100000",
49         "block/md1/md/sync_speed_min" => "1",
50         "block/md1/md/sync_speed_max" => "100000"
51       }
52     }
53   },
54   :squid => {
55     :version => 4,
56     :cache_mem => "8192 MB",
57     :cache_dir => [
58       "rock /store/squid/rock-4096 20000 swap-timeout=200 slot-size=4096 max-size=3996",
59       "rock /store/squid/rock-8192 25000 swap-timeout=200 slot-size=8192 min-size=3997 max-size=8092",
60       "rock /store/squid/rock-16384 35000 swap-timeout=200 slot-size=16384 min-size=8093 max-size=16284",
61       "rock /store/squid/rock-32768 45000 swap-timeout=200 slot-size=32768 min-size=16285 max-size=262144"
62     ]
63   },
64   :tilecache => {
65     :tile_parent => "oslo.render.openstreetmap.org"
66   }
67 )
68
69 run_list(
70   "role[blix-no]",
71   "role[geodns]",
72   "role[tilecache]"
73 )