X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/eda0faa323426615b78375067a62aecd41b9b5af..4e3259a9a87be028b3a591661c386485e4a2a7fc:/cookbooks/nominatim/recipes/default.rb diff --git a/cookbooks/nominatim/recipes/default.rb b/cookbooks/nominatim/recipes/default.rb index bca915d91..af96a9c77 100644 --- a/cookbooks/nominatim/recipes/default.rb +++ b/cookbooks/nominatim/recipes/default.rb @@ -61,13 +61,17 @@ apache_site "nominatim.openstreetmap.org" do variables :pools => node[:nominatim][:fpm_pools] end +apache_site "default" do + action [ :disable ] +end + node[:nominatim][:fpm_pools].each do |name,data| template "/etc/php5/fpm/pool.d/#{name}.conf" do source "fpm.conf.erb" owner "root" group "root" mode 0644 - variables data.merge(:name => name) + variables data.merge(:name => name, :port => data[:port]) notifies :reload, "service[php5-fpm]" end end @@ -230,16 +234,6 @@ cron "nominatim_vacuum" do mailto email_errors end -['search', 'reverse'].each do |filename| - ['phpj', 'phpx'].each do |ext| - link "#{source_directory}/website/#{filename}.#{ext}" do - to "#{source_directory}/website/#{filename}.php" - user "nominatim" - group "nominatim" - end - end -end - template "#{source_directory}/utils/nominatim-update" do source "updater.erb" user "nominatim"