]> git.openstreetmap.org Git - chef.git/blob - roles/gorynych.rb
Add support for distributing gdnsd configuration via rsync
[chef.git] / roles / gorynych.rb
1 name "gorynych"
2 description "Master role applied to gorynych"
3
4 default_attributes(
5   :munin => {
6     :plugins => {
7       :smart_sdc => {
8         :smartctl_exit_status => { :warning => ":8" }
9       },
10       :smart_sdd => {
11         :smartctl_exit_status => { :warning => ":8" }
12       }
13     }
14   },
15   :networking => {
16     :interfaces => {
17       :external_ipv4 => {
18         :interface => "eth1",
19         :role => :external,
20         :family => :inet,
21         :address => "5.45.248.21",
22         :prefix => "30",
23         :gateway => "5.45.248.22"
24       },
25       :external_ipv6 => {
26         :interface => "eth1",
27         :role => :external,
28         :family => :inet6,
29         :address => "2a02:6b8:b010:5065::a001",
30         :prefix => "64",
31         :gateway => "2a02:6b8:b010:5065::1"
32       }
33     }
34   },
35   :sysfs => {
36     :md_tune => {
37       :comment => "Tune the md sync performance so as not to kill system performance",
38       :parameters => {
39         "block/md0/md/sync_speed_min" => "1",
40         "block/md0/md/sync_speed_max" => "100000"
41       }
42     }
43   },
44   :squid => {
45     :cache_mem => "5800 MB",
46     :cache_dir => "coss /store/squid/coss-01 128000 block-size=8192 max-size=262144 membufs=80"
47   },
48   :tilecache => {
49     :tile_parent => "moscow.render.openstreetmap.org",
50     :tile_siblings => [
51       "noomoahk.openstreetmap.org",
52       "vipertooth.openstreetmap.org",
53       "cmok.openstreetmap.org"
54     ]
55   }
56 )
57
58 run_list(
59   "role[yandex]",
60   "role[tilecache]"
61 )