From c63dbd18aae6f17b993a86b8f03224f4038a171c Mon Sep 17 00:00:00 2001 From: Luca Carrogu Date: Tue, 1 Oct 2019 13:24:33 +0200 Subject: [PATCH] Reload httpd_service when ganglia conf is copied in sites-enabled folder This fix https://github.com/aws/aws-parallelcluster/issues/1322 Signed-off-by: Luca Carrogu --- recipes/_ganglia_install.rb | 1 + recipes/_master_base_config.rb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/recipes/_ganglia_install.rb b/recipes/_ganglia_install.rb index 8ad8b126d..7703d39c7 100644 --- a/recipes/_ganglia_install.rb +++ b/recipes/_ganglia_install.rb @@ -143,6 +143,7 @@ # Setup ganglia-web.conf apache config execute "copy ganglia apache conf" do command "cp /etc/ganglia-webfrontend/apache.conf /etc/apache2/sites-enabled/ganglia.conf" + notifies :reload, "service[#{node['cfncluster']['ganglia']['httpd_service']}]", :immediately not_if "test -f /etc/apache2/sites-enabled/ganglia.conf" end diff --git a/recipes/_master_base_config.rb b/recipes/_master_base_config.rb index 296e66725..b2f013a48 100644 --- a/recipes/_master_base_config.rb +++ b/recipes/_master_base_config.rb @@ -150,7 +150,7 @@ end service node['cfncluster']['ganglia']['httpd_service'] do - supports restart: true + supports restart: true, reload: true action %i[enable start] end end