X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/1a87e7a0030888630cf004c66b2f051a794d6f6c..cd5f81c16c88e1ba51f7db9c6c8b49dc04c708aa:/cookbooks/nominatim/recipes/default.rb?ds=sidebyside diff --git a/cookbooks/nominatim/recipes/default.rb b/cookbooks/nominatim/recipes/default.rb index f6a57a8ef..845bb7700 100644 --- a/cookbooks/nominatim/recipes/default.rb +++ b/cookbooks/nominatim/recipes/default.rb @@ -42,7 +42,7 @@ end apache_site "nominatim.openstreetmap.org" do template "apache.erb" - directory "/home/lonvia/nominatim" + directory source_directory variables :pools => node[:nominatim][:fpm_pools] end @@ -110,6 +110,7 @@ package "automake" package "libproj-dev" package "libprotobuf-c0-dev" package "protobuf-c-compiler" +package "python-psycopg2" execute "php-pear-db" do command "pear install DB" @@ -223,3 +224,22 @@ template "/etc/init.d/nominatim-update" do variables :source_directory => source_directory end +munin_plugin_conf "nominatim" do + template "munin.erb" +end + +munin_plugin "nominatim_importlag" do + target "#{source_directory}/munin/nominatim_importlag" +end + +munin_plugin "nominatim_query_speed" do + target "#{source_directory}/munin/nominatim_query_speed" +end + +munin_plugin "nominatim_requests" do + target "#{source_directory}/munin/nominatim_requests" +end + +munin_plugin "nominatim_throttled_ips" do + target "#{source_directory}/munin/nominatim_throttled_ips" +end