]> git.openstreetmap.org Git - chef.git/blob - cookbooks/vectortile/attributes/default.rb
turn on dribble replication
[chef.git] / cookbooks / vectortile / attributes / default.rb
1 default[:vectortile][:database][:cluster] = "16/main"
2 default[:vectortile][:database][:postgis] = "3"
3 default[:vectortile][:database][:nodes_store] = :flat
4 default[:vectortile][:serve][:threads] = node.cpu_cores
5 default[:vectortile][:serve][:mode] = :live
6 default[:vectortile][:replication][:url] = "https://osm-planet-eu-central-1.s3.dualstack.eu-central-1.amazonaws.com/planet/replication/minute"
7 default[:vectortile][:replication][:status] = :enabled
8 default[:vectortile][:replication][:tileupdate] = :enabled
9 default[:vectortile][:replication][:threads] = node.cpu_cores
10
11 default[:postgresql][:versions] |= [node[:vectortile][:database][:cluster].split("/").first]
12 default[:postgresql][:monitor_database] = "tiles"
13 default[:postgresql][:settings][:defaults][:max_connections] = (node.cpu_cores * 4 + 20).to_s
14 default[:accounts][:users][:tileupdate][:status] = :role
15 default[:accounts][:users][:tilekiln][:status] = :role