From 8ef32ef08aa17b0f6af6b58574fea48f36df35be Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 24 Aug 2016 22:23:06 +0100 Subject: [PATCH] Ubuntu 16.04 uses mapnik 3.0 --- cookbooks/tile/templates/default/renderd.conf.erb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cookbooks/tile/templates/default/renderd.conf.erb b/cookbooks/tile/templates/default/renderd.conf.erb index ce5c55a22..33adc8a9c 100644 --- a/cookbooks/tile/templates/default/renderd.conf.erb +++ b/cookbooks/tile/templates/default/renderd.conf.erb @@ -7,7 +7,11 @@ tile_dir=/srv/tile.openstreetmap.org/tiles stats_file=/var/run/renderd/renderd.stats [mapnik] +<% if node[:lsb][:release].to_f >= 16.04 -%> +plugins_dir=/usr/lib/mapnik/3.0/input +<% else -%> plugins_dir=/usr/lib/mapnik/2.2/input +<% end -%> font_dir=/usr/share/fonts font_dir_recurse=true <% node[:tile][:styles].each do |name,details| -%> -- 2.39.5