package "php5-fpm"
package "php-pear"
package "php-apc"
+package "php-db"
apache_module "rewrite"
apache_module "proxy"
mode 0755
end
+directory "#{home_directory}/status" do
+ owner "nominatim"
+ group "postgres"
+ mode 0775
+end
+
template "/etc/logrotate.d/nominatim" do
source "logrotate.nominatim.erb"
owner "root"
package "libboost-filesystem-dev"
package "libboost-thread-dev"
-execute "php-pear-db" do
- command "pear install DB"
- not_if { File.exist?("/usr/share/php/DB") }
-end
-
execute "compile_nominatim" do
action :nothing
command "cd #{source_directory} && ./autogen.sh && ./configure && make"
end
end
-additional_scripts = %w(backup-nominatim clean-db-nominatim)
+additional_scripts = %w(backup-nominatim vacuum-db-nominatim)
additional_scripts.each do |fname|
template "/usr/local/bin/#{fname}" do
recursive true
end
-directory "/data/postgresql-archive" do
- owner "postgres"
- group "postgres"
- mode 0700
- only_if { node[:postgresql][:settings][:defaults][:archive_mode] == "on" }
-end
-
apache_site "nominatim.openstreetmap.org" do
template "apache.erb"
directory source_directory