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