]> git.openstreetmap.org Git - chef.git/blob - roles/kalessin.rb
Version bump and uninstall stripe (unused)
[chef.git] / roles / kalessin.rb
1 name "kalessin"
2 description "Master role applied to kalessin"
3
4 default_attributes(
5   :hardware => {
6     :shm_size => "20g"
7   },
8   :networking => {
9     :interfaces => {
10       :external_ipv4 => {
11         :interface => "ens3",
12         :role => :external,
13         :family => :inet,
14         :address => "185.66.195.245",
15         :prefix => "28",
16         :gateway => "185.66.195.241"
17       },
18       :external_ipv6 => {
19         :interface => "ens3",
20         :role => :external,
21         :family => :inet6,
22         :address => "2a03:2260:2000:1::5",
23         :prefix => "64",
24         :gateway => "2a03:2260:2000:1::1"
25       }
26     }
27   },
28   :squid => {
29     :version => 4,
30     :cache_mem => "16384 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   :nginx => {
39     :cache => {
40       :proxy => {
41         :max_size => "2048M"
42       }
43     }
44   },
45   :tilecache => {
46     :tile_parent => "germany.render.openstreetmap.org"
47   }
48 )
49
50 run_list(
51   "role[ffrl]",
52   "role[geodns]",
53   "role[tilecache]"
54 )