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