# limitations under the License.
#
-include_recipe "apache"
+include_recipe "apache::ssl"
include_recipe "postgresql"
include_recipe "git"
group "root"
mode 0644
variables data.merge(:name => name)
- notifies :reload, resources(:service => "php5-fpm")
+ notifies :reload, "service[php5-fpm]"
end
end
mode 0755
end
+template "/etc/logrotate.d/nominatim" do
+ source "logrotate.nominatim.erb"
+ owner "root"
+ group "root"
+ mode 0644
+end
+
+
package "osmosis"
package "gcc"
package "proj-bin"
munin_plugin "nominatim_throttled_ips" do
target "#{source_directory}/munin/nominatim_throttled_ips"
end
+
+template "/usr/local/bin/backup-nominatim" do
+ source "backup-nominatim.erb"
+ owner "root"
+ group "root"
+ mode 0755
+end
+
+cron "nominatim_backup" do
+ hour "3"
+ minute "00"
+ day "1"
+ command "/usr/local/bin/backup-nominatim"
+ user "nominatim"
+ mailto email_errors
+end