]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/tilecache/recipes/default.rb
Split out default munin plugin installation to a new recipe
[chef.git] / cookbooks / tilecache / recipes / default.rb
index 1068b1b0d3903841215a4872758e960431eeda3f..1cf0e7b2e0c9a4b4d03f3680915250152b7b5b01 100644 (file)
 
 require "ipaddr"
 
-include_recipe "ssl"
-include_recipe "squid"
-include_recipe "nginx"
 include_recipe "fail2ban"
+include_recipe "munin"
+include_recipe "nginx"
+include_recipe "squid"
+include_recipe "ssl"
 
 package "apache2" do
   action :remove
@@ -109,6 +110,16 @@ template "/etc/logrotate.d/squid" do
   mode 0o644
 end
 
+# Configure cron with lower cpu and IO priority
+systemd_service "cron-load" do
+  service "cron"
+  dropin "load"
+  nice 19
+  io_scheduling_class "best-effort"
+  io_scheduling_priority 7
+  notifies :restart, "service[cron]"
+end
+
 nginx_site "default" do
   action [:delete]
 end