From 1a528d18f3ef25285390b3be797bf083ae6034a0 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Fri, 9 Dec 2016 09:30:06 +0000 Subject: [PATCH] Make sure tile servers install the right postgis version --- cookbooks/tile/recipes/default.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cookbooks/tile/recipes/default.rb b/cookbooks/tile/recipes/default.rb index dd4a7a603..5083790c3 100644 --- a/cookbooks/tile/recipes/default.rb +++ b/cookbooks/tile/recipes/default.rb @@ -325,7 +325,10 @@ node[:tile][:styles].each do |name, details| end end +postgresql_version = node[:tile][:database][:cluster].split("/").first + package "postgis" +package "postgresql-#{postgresql_version}-postgis-2.3" postgresql_user "jburgess" do cluster node[:tile][:database][:cluster] -- 2.39.5