From: Tom Hughes Date: Tue, 27 Aug 2013 18:09:25 +0000 (+0100) Subject: Update coastline data when it changes X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/176e9c051a33ba43da462dfd22ab2a2560f0d514?hp=e2cbf44f9da7d166987294c476df694215880712 Update coastline data when it changes --- diff --git a/cookbooks/tile/recipes/default.rb b/cookbooks/tile/recipes/default.rb index 3ad897448..cd88e91ce 100644 --- a/cookbooks/tile/recipes/default.rb +++ b/cookbooks/tile/recipes/default.rb @@ -199,7 +199,13 @@ node[:tile][:data].each do |name,data| end remote_file file do - action :create_if_missing + if data[:refresh] + action :create + use_conditional_get true + else + action :create_if_missing + end + source url owner "tile" group "tile" diff --git a/roles/tile.rb b/roles/tile.rb index ffd69239d..eda39b1c3 100644 --- a/roles/tile.rb +++ b/roles/tile.rb @@ -55,7 +55,8 @@ default_attributes( :url => "http://planet.openstreetmap.org/historical-shapefiles/world_boundaries-spherical.tgz" }, :simplified_land_polygons => { - :url => "http://data.openstreetmapdata.com/simplified-land-polygons-complete-3857.zip" + :url => "http://data.openstreetmapdata.com/simplified-land-polygons-complete-3857.zip", + :refresh => true }, :admin_boundaries => { :url => "http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/110m/cultural/ne_110m_admin_0_boundary_lines_land.zip", @@ -68,7 +69,8 @@ default_attributes( :processed => "ne_10m_populated_places_fixed.shp" }, :land_polygons => { - :url => "http://data.openstreetmapdata.com/land-polygons-split-3857.zip" + :url => "http://data.openstreetmapdata.com/land-polygons-split-3857.zip", + :refresh => true } }, :styles => {