]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/nominatim/recipes/base.rb
Explcitly disable IPv6 on the IC internal network
[chef.git] / cookbooks / nominatim / recipes / base.rb
index c8e996655b7dba2f93c561e7bc650244777951b7..a7c5a9c52a0adee354b7957ff6a581cb835a8be3 100644 (file)
@@ -84,6 +84,13 @@ template "/etc/logrotate.d/nominatim" do
   mode 0644
 end
 
+template "/etc/logrotate.d/apache2" do
+  source "logrotate.apache.erb"
+  owner "root"
+  group "root"
+  mode 0644
+end
+
 package "osmosis"
 package "gcc"
 package "proj-bin"
@@ -158,11 +165,11 @@ file "#{source_directory}/settings/ip_blocks.map" do
   mode 0664
 end
 
-if node[:nominatim][:enabled]
-  cron_action = :create
-else
-  cron_action = :delete
-end
+cron_action = if node[:nominatim][:enabled]
+                :create
+              else
+                :delete
+              end
 
 template "/etc/cron.d/nominatim" do
   action cron_action