]> git.openstreetmap.org Git - chef.git/blob - roles/takhisis.rb
Move promscale tuning to role and tune WAL sizes
[chef.git] / roles / takhisis.rb
1 name "takhisis"
2 description "Master role applied to takhisis"
3
4 default_attributes(
5   :hardware => {
6     :shm_size => "14g"
7   },
8   :networking => {
9     :interfaces => {
10       :external_ipv4 => {
11         :interface => "ens18",
12         :role => :external,
13         :family => :inet,
14         :address => "31.3.110.20",
15         :prefix => "24",
16         :gateway => "31.3.110.1"
17       },
18       :external_ipv6 => {
19         :interface => "ens18",
20         :role => :external,
21         :family => :inet6,
22         :address => "2a03:7900:111:0:31:3:110:20",
23         :prefix => "64",
24         :gateway => "fe80::225:90ff:fe5d:c1e1"
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   :nginx => {
39     :cache => {
40       :proxy => {
41         :directory => "/store/nginx-cache/proxy-cache",
42         :max_size => "65536M"
43       }
44     }
45   },
46   :tilecache => {
47     :tile_parent => "netherlands.render.openstreetmap.org"
48   }
49 )
50
51 run_list(
52   "role[tuxis]",
53   "role[tilecache]"
54 )