X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/294430563e19e11955eb72c928a2b6e37ffa9513..8c4afb2136d1954313dd5e880a186d0c29ccc71f:/cookbooks/tile/recipes/default.rb diff --git a/cookbooks/tile/recipes/default.rb b/cookbooks/tile/recipes/default.rb index d51d9d367..89489f5bd 100644 --- a/cookbooks/tile/recipes/default.rb +++ b/cookbooks/tile/recipes/default.rb @@ -26,6 +26,7 @@ include_recipe "tools" blocks = data_bag_item("tile", "blocks") apache_module "alias" +apache_module "cgi" apache_module "expires" apache_module "headers" apache_module "remoteip" @@ -187,21 +188,6 @@ node[:tile][:data].each_value do |data| end end - if data[:processed] - original = "#{directory}/#{data[:original]}" - processed = "#{directory}/#{data[:processed]}" - - package "gdal-bin" - - execute processed do - action :nothing - command "ogr2ogr #{processed} #{original}" - user "tile" - group "tile" - subscribes :run, "execute[#{file}]", :immediately - end - end - execute "#{file}_shapeindex" do action :nothing command "find #{directory} -type f -iname '*.shp' -print0 | xargs -0 --no-run-if-empty shapeindex --shape_files" @@ -214,6 +200,7 @@ node[:tile][:data].each_value do |data| if data[:refresh] action :create use_conditional_get true + ignore_failure true else action :create_if_missing end @@ -403,7 +390,6 @@ package "libxml2-dev" gem_package "proj4rb" gem_package "libxml-ruby" -gem_package "mmap" remote_directory "/usr/local/lib/site_ruby" do source "ruby"