From ce0c5c182cb017cc0c02996760b2e3faef7b7eae Mon Sep 17 00:00:00 2001 From: Luca Carrogu Date: Wed, 2 Oct 2019 22:31:02 +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 8ad8b126db..7703d39c7c 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 296e667256..b2f013a48b 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