From 7f456bd938120821d01b585a53d0e18c5878ad3b Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Mon, 11 Aug 2025 18:38:58 +0100 Subject: [PATCH] apache: restart apache if ports or ssl config changed --- cookbooks/apache/recipes/default.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cookbooks/apache/recipes/default.rb b/cookbooks/apache/recipes/default.rb index 20b74115d..494bc4c3d 100644 --- a/cookbooks/apache/recipes/default.rb +++ b/cookbooks/apache/recipes/default.rb @@ -53,6 +53,7 @@ template "/etc/apache2/ports.conf" do owner "root" group "root" mode "644" + notifies :restart, "service[apache2]" end systemd_service "apache2" do @@ -99,6 +100,8 @@ apache_module "ssl" apache_conf "ssl" do template "ssl.erb" + reload_apache false + restart_apache true # restart required for shared memory config changes end # Apache should only be started after modules enabled -- 2.39.5