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
mode 0664
end
+if node[:nominatim][:enabled]
+ cron_action = :create
+else
+ cron_action = :delete
+end
+
cron "nominatim_logrotate" do
+ action cron_action
hour "5"
minute "30"
weekday "0"
end
cron "nominatim_banip" do
+ action cron_action
command "#{source_directory}/utils/cron_banip.py"
user "nominatim"
mailto email_errors
end
cron "nominatim_vacuum" do
+ action cron_action
hour "2"
minute "00"
command "#{source_directory}/utils/cron_vacuum.sh"
end
cron "nominatim_backup" do
+ action cron_action
hour "3"
minute "00"
day "1"