]> git.openstreetmap.org Git - chef.git/blob - roles/chrysophylax.rb
Remove sibling lists for tile caches
[chef.git] / roles / chrysophylax.rb
1 name "chrysophylax"
2 description "Master role applied to chrysophylax"
3
4 default_attributes(
5   :hardware => {
6     :shm_size => "12g"
7   },
8   :networking => {
9     :interfaces => {
10       :external_ipv4 => {
11         :interface => "ens160",
12         :role => :external,
13         :family => :inet,
14         :address => "217.71.244.22",
15         :prefix => "30",
16         :gateway => "217.71.244.21"
17       },
18       :external_ipv6 => {
19         :interface => "ens160",
20         :role => :external,
21         :family => :inet6,
22         :address => "2001:8e0:40:2039::10",
23         :prefix => "64",
24         :gateway => "2001:8e0:40:2039::1"
25       }
26     }
27   },
28   :squid => {
29     :version => 4,
30     :cache_mem => "10240 MB",
31     :cache_dir => [
32       "rock /store/squid/rock-4096 20000 swap-timeout=200 slot-size=4096 max-size=3996",
33       "rock /store/squid/rock-8192 25000 swap-timeout=200 slot-size=8192 min-size=3997 max-size=8092",
34       "rock /store/squid/rock-16384 35000 swap-timeout=200 slot-size=16384 min-size=8093 max-size=16284",
35       "rock /store/squid/rock-32768 45000 swap-timeout=200 slot-size=32768 min-size=16285 max-size=262144"
36     ]
37   },
38   :tilecache => {
39     :tile_parent => "zurich.render.openstreetmap.org"
40   }
41 )
42
43 run_list(
44   "role[iway]",
45   "role[geodns]",
46   "role[tilecache]"
47 )