]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/tile/recipes/default.rb
We don't need to install libapache2-mod-tile as apache_module will
[chef.git] / cookbooks / tile / recipes / default.rb
index 8af830cddd73909ffd3d16e90c33ee6f90530533..d4ed52a6051898ae9e02ff5a4d965ffb0d1c742e 100644 (file)
@@ -31,8 +31,6 @@ apache_module "headers"
 apache_module "remoteip"
 apache_module "rewrite"
 
-package "libapache2-mod-tile"
-
 apache_module "tile" do
   conf "tile.conf.erb"
 end
@@ -177,6 +175,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
@@ -443,6 +449,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"