X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/036f4360c44871eeac7a4dd33c3c9cfa4b9fad96..4c86175022c9036999f9d8341e48cbd884448709:/cookbooks/nominatim/recipes/base.rb?ds=inline diff --git a/cookbooks/nominatim/recipes/base.rb b/cookbooks/nominatim/recipes/base.rb index b15e1f904..390de61f9 100644 --- a/cookbooks/nominatim/recipes/base.rb +++ b/cookbooks/nominatim/recipes/base.rb @@ -19,7 +19,6 @@ include_recipe "apache::ssl" include_recipe "postgresql" -include_recipe "git" package "php5" package "php5-cli" @@ -49,16 +48,6 @@ service "php5-fpm" do supports :status => true, :restart => true, :reload => true end -apache_site "nominatim.openstreetmap.org" do - template "apache.erb" - directory source_directory - 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" @@ -257,6 +246,16 @@ directory "/data/postgresql-archive" do only_if { node[:postgresql][:settings][:defaults][:archive_mode] == "on" } end +apache_site "nominatim.openstreetmap.org" do + template "apache.erb" + directory source_directory + variables :pools => node[:nominatim][:fpm_pools] +end + +apache_site "default" do + action [:disable] +end + fail2ban_filter "nominatim" do failregex '^ - - \[[^]]+\] "[^"]+" 429 ' end