default[:tile][:mapnik] = "3.1"
+default[:tile][:replication][:directory] = "/var/lib/replicate"
default[:tile][:replication][:url] = "https://osm-planet-eu-central-1.s3.dualstack.eu-central-1.amazonaws.com/planet/replication/minute"
default[:tile][:data] = {}
pyosmium
]
-directory "/var/lib/replicate" do
+directory node[:tile][:replication][:directory] do
owner "tile"
group "tile"
mode "755"
end
+link "/var/lib/replicate" do
+ to node[:tile][:replication][:directory]
+ owner "tile"
+ group "tile"
+ not_if { node[:tile][:replication][:directory] == "/var/lib/replicate" }
+end
+
template "/usr/local/bin/expire-tiles" do
source "expire-tiles.erb"
owner "root"