]> git.openstreetmap.org Git - chef.git/blob - roles/toothless.rb
tilecache: Add 1 more zoom to nginx cache
[chef.git] / roles / toothless.rb
1 name "toothless"
2 description "Master role applied to toothless"
3
4 default_attributes(
5   :hardware => {
6     :shm_size => "6g"
7   },
8   :networking => {
9     :interfaces => {
10       :external_ipv4 => {
11         :interface => "eth0",
12         :role => :external,
13         :family => :inet,
14         :address => "185.73.44.167",
15         :prefix => "22",
16         :gateway => "185.73.44.1"
17       },
18       :external_ipv6 => {
19         :interface => "eth0",
20         :role => :external,
21         :family => :inet6,
22         :address => "2001:ba8:0:2ca7::",
23         :prefix => "64",
24         :gateway => "fe80::fcff:ffff:feff:ffff"
25       }
26     }
27   },
28   :squid => {
29     :version => 4,
30     :cache_mem => "4096 MB",
31     :cache_dir => [
32       "rock /store/squid/rock-4096 12800 swap-timeout=200 slot-size=4096 max-size=3996",
33       "rock /store/squid/rock-8192 16000 swap-timeout=200 slot-size=8192 min-size=3997 max-size=8092",
34       "rock /store/squid/rock-16384 22400 swap-timeout=200 slot-size=16384 min-size=8093 max-size=16284",
35       "rock /store/squid/rock-32768 22800 swap-timeout=200 slot-size=32768 min-size=16285 max-size=262144"
36     ]
37   },
38   :tilecache => {
39     :tile_parent => "london.render.openstreetmap.org",
40     :tile_siblings => [
41       "saphira.openstreetmap.org",
42       "trogdor.openstreetmap.org",
43       "katie.openstreetmap.org",
44       "konqi.openstreetmap.org",
45       "ridgeback.openstreetmap.org",
46       "gorynych.openstreetmap.org"
47     ]
48   }
49 )
50
51 run_list(
52   "role[jump]",
53   "role[geodns]",
54   "role[tilecache]"
55 )