X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/681d1f66c97e97038a34e38f54ad4d78f154ac9a..96f9afd64df62575a27f95600025f23ce3b2cab0:/cookbooks/tile/recipes/default.rb diff --git a/cookbooks/tile/recipes/default.rb b/cookbooks/tile/recipes/default.rb index 837d478a6..c1cf075b5 100644 --- a/cookbooks/tile/recipes/default.rb +++ b/cookbooks/tile/recipes/default.rb @@ -177,6 +177,14 @@ node[:tile][:data].each do |name,data| 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" + user "tile" + user "tile" + subscribes :run, resources(:execute => file), :immediately + end + remote_file file do action :create_if_missing source url @@ -256,7 +264,7 @@ node[:tile][:styles].each do |name,details| user "tile" group "tile" subscribes :run, "git[#{style_directory}]" - notifies :restart, "service[renderd]" + notifies :restart, "service[renderd]", :immediately notifies :restart, "service[update-lowzoom-#{name}]" end end @@ -443,6 +451,7 @@ end munin_plugin "mod_tile_fresh" munin_plugin "mod_tile_response" munin_plugin "mod_tile_zoom" +munin_plugin "mod_tile_latency" munin_plugin "renderd_processed" munin_plugin "renderd_queue"