]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/apache/recipes/default.rb
build(deps): bump actions/checkout from 3 to 4
[chef.git] / cookbooks / apache / recipes / default.rb
index b1e80892908bbed6ab8a9222bc0784afd55c1f67..f47d500b5163c60bd240491334ceafaa89f42866 100644 (file)
@@ -54,6 +54,13 @@ template "/etc/apache2/ports.conf" do
   mode "644"
 end
 
+systemd_service "apache2" do
+  dropin "chef"
+  memory_high "50%"
+  memory_max "75%"
+  notifies :restart, "service[apache2]"
+end
+
 service "apache2" do
   action [:enable, :start]
   retries 2
@@ -92,6 +99,5 @@ munin_plugin "apache_volume"
 
 prometheus_exporter "apache" do
   port 9117
-  listen_switch "telemetry.address"
   options "--scrape_uri=http://localhost/server-status?auto"
 end