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