end
ssl_certificate node[:fqdn] do
- domains [node[:fqdn], "vector.openstreetmap.org"]
+ domains [node[:fqdn]]
notifies :reload, "service[nginx]"
end
python_package "tilekiln" do
python_virtualenv tilekiln_directory
python_version "3"
- version "0.5.1"
+ version "0.6.3"
end
template "/srv/vector.openstreetmap.org/html/index.html" do
wants "postgresql.service"
sandbox :enable_network => true
restrict_address_families "AF_UNIX"
- exec_start "#{tilekiln_directory}/bin/tilekiln serve #{tilekiln_mode} --storage-dbname tiles --num-threads #{node[:vectortile][:serve][:threads]}"
+ exec_start "#{tilekiln_directory}/bin/tilekiln serve #{tilekiln_mode} --storage-dbname tiles --num-threads #{node[:vectortile][:serve][:threads]} --base-url 'https://vector.openstreetmap.org'"
end
service "tilekiln" do
action [:stop, :disable]
end
end
+
+package %w[
+ ruby-pg
+ ruby-webrick
+]
+
+prometheus_exporter "osm2pgsql" do
+ port 10027
+ user "tileupdate"
+ restrict_address_families "AF_UNIX"
+ options [
+ "--database-name=spirit"
+ ]
+end