Skip to content

Commit

Permalink
Reload httpd_service when ganglia conf is copied in sites-enabled folder
Browse files Browse the repository at this point in the history
This fix aws/aws-parallelcluster#1322

Signed-off-by: Luca Carrogu <[email protected]>
  • Loading branch information
lukeseawalker committed Oct 2, 2019
1 parent f0359cb commit cfe7359
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions recipes/_ganglia_install.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion recipes/_master_base_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions recipes/intel_install.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
code <<-INTEL
set -e
yum-config-manager --add-repo http://yum.repos.intel.com/hpc-platform/el7/setup/intel-hpc-platform.repo
yum-config-manager --save --setopt=intel-hpc-platform.skip_if_unavailable=true
rpm --import http://yum.repos.intel.com/hpc-platform/el7/setup/PUBLIC_KEY.PUB
yum -y install intel-hpc-platform-*
INTEL
Expand All @@ -32,6 +33,7 @@
set -e
rpm --import https://yum.repos.intel.com/2019/setup/RPM-GPG-KEY-intel-psxe-runtime-2019
yum -y install https://yum.repos.intel.com/2019/setup/intel-psxe-runtime-2019-reposetup-1-0.noarch.rpm
yum-config-manager --save --setopt=intel-psxe-runtime-2019.skip_if_unavailable=true
yum -y install intel-psxe-runtime-#{node['cfncluster']['psxe']['version']}
INTEL
creates '/opt/intel/psxe_runtime'
Expand All @@ -43,6 +45,7 @@
code <<-INTEL
set -e
yum-config-manager --add-repo https://yum.repos.intel.com/intelpython/setup/intelpython.repo
yum-config-manager --save --setopt=intelpython.skip_if_unavailable=true
yum -y install intelpython2 intelpython3
INTEL
creates '/opt/intel/intelpython2'
Expand Down
7 changes: 7 additions & 0 deletions recipes/intel_mpi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,10 @@
INTELMPI
creates '/opt/intel/impi'
end

if (node['platform'] == 'centos' && node['platform_version'].to_i >= 7) \
|| node['platform'] == 'amazon'
execute 'yum-config-manager_skip_if_unavail_intel_mpi' do
command "yum-config-manager --save --setopt=intel-mpi.skip_if_unavailable=true"
end
end

0 comments on commit cfe7359

Please sign in to comment.