2 # Cookbook Name:: nominatim
5 # Copyright 2012, OpenStreetMap Foundation
7 # Licensed under the Apache License, Version 2.0 (the "License");
8 # you may not use this file except in compliance with the License.
9 # You may obtain a copy of the License at
11 # http://www.apache.org/licenses/LICENSE-2.0
13 # Unless required by applicable law or agreed to in writing, software
14 # distributed under the License is distributed on an "AS IS" BASIS,
15 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 # See the License for the specific language governing permissions and
17 # limitations under the License.
20 include_recipe "apache"
21 include_recipe "postgresql"
29 apache_module "rewrite"
30 apache_module "fastcgi-handler"
33 action [ :enable, :start ]
34 supports :status => true, :restart => true, :reload => true
37 apache_site "nominatim.openstreetmap.org" do
39 directory "/home/lonvia/nominatim"
42 template "/etc/php5/fpm/pool.d/www.conf" do
47 variables :name => "www", :pm => "dynamic", :max_children => "50"
48 notifies :reload, resources(:service => "php5-fpm")
51 template "/etc/php5/fpm/pool.d/bulk.conf" do
56 variables :name => "bulk", :pm => "static", :max_children => "7"
57 notifies :reload, resources(:service => "php5-fpm")
60 postgresql_user "tomh" do
65 postgresql_user "lonvia" do
70 postgresql_user "twain" do
75 postgresql_user "www-data" do
79 postgresql_munin "nominatim" do