From 9ca91b52a050b00e2f649122f582ab3e1905c4ef Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Mon, 11 Aug 2025 18:38:29 +0100 Subject: [PATCH] apache: add restart support to apache_conf --- cookbooks/apache/resources/conf.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cookbooks/apache/resources/conf.rb b/cookbooks/apache/resources/conf.rb index 9f1efb24f..f1e56d065 100644 --- a/cookbooks/apache/resources/conf.rb +++ b/cookbooks/apache/resources/conf.rb @@ -26,6 +26,7 @@ property :cookbook, :kind_of => String property :template, :kind_of => String, :required => [:create] property :variables, :kind_of => Hash, :default => {} property :reload_apache, :kind_of => [TrueClass, FalseClass], :default => true +property :restart_apache, :kind_of => [TrueClass, FalseClass], :default => false action :create do create_conf @@ -86,4 +87,5 @@ end def after_created notifies :reload, "service[apache2]" if reload_apache + notifies :restart, "service[apache2]" if restart_apache end -- 2.39.5