X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/2817d4493e7562ef8b7ffe4954174ca37b1e4af6..13d1e4cec43f3af07ac845c241a5e1782f4e6d74:/cookbooks/tile/recipes/default.rb diff --git a/cookbooks/tile/recipes/default.rb b/cookbooks/tile/recipes/default.rb index 3ad897448..6516831e2 100644 --- a/cookbooks/tile/recipes/default.rb +++ b/cookbooks/tile/recipes/default.rb @@ -169,7 +169,7 @@ node[:tile][:data].each do |name,data| execute file do action :nothing - command "unzip -qq #{file} -d #{directory}" + command "unzip -qq -o #{file} -d #{directory}" user "tile" group "tile" end @@ -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" @@ -495,12 +501,13 @@ template "/etc/cron.d/cleanup-tiles" do end munin_plugin "mod_tile_fresh" +munin_plugin "mod_tile_latency" munin_plugin "mod_tile_response" munin_plugin "mod_tile_zoom" -munin_plugin "mod_tile_latency" munin_plugin "renderd_processed" munin_plugin "renderd_queue" +munin_plugin "renderd_queue_time" munin_plugin "renderd_zoom" munin_plugin "renderd_zoom_time"