Skip to content

Commit e545867

Browse files
author
Himani Deshpande
committed
Create pyxis conf file first
1 parent d0dafa2 commit e545867

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

cookbooks/aws-parallelcluster-platform/resources/enroot/partial/_enroot_common.rb

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,18 @@
2626
return unless configure_enroot
2727
return unless configure_pyxis
2828

29+
template "#{node['cluster']['slurm']['install_dir']}/etc/plugstack.conf" do
30+
source 'pyxis/plugstack.conf.erb'
31+
cookbook 'aws-parallelcluster-platform'
32+
owner 'root'
33+
group 'root'
34+
mode '0644'
35+
end
36+
37+
link '/usr/local/share/pyxis/pyxis.conf' do
38+
to "#{node['cluster']['slurm']['install_dir']}/etc/plugstack.conf.d/pyxis.conf"
39+
end
40+
2941
cookbook_file "/tmp/enroot.template.conf" do
3042
source 'enroot/enroot.template.conf'
3143
cookbook 'aws-parallelcluster-platform'
@@ -69,17 +81,7 @@
6981
retry_delay 5
7082
end
7183

72-
template "#{node['cluster']['slurm']['install_dir']}/etc/plugstack.conf" do
73-
source 'pyxis/plugstack.conf.erb'
74-
cookbook 'aws-parallelcluster-platform'
75-
owner 'root'
76-
group 'root'
77-
mode '0644'
78-
end
7984

80-
link '/usr/local/share/pyxis/pyxis.conf' do
81-
to "#{node['cluster']['slurm']['install_dir']}/etc/plugstack.conf.d/pyxis.conf"
82-
end
8385

8486
template "#{node['cluster']['slurm']['install_dir']}/etc/plugstack.conf.d/pyxis.conf " do
8587
source 'pyxis/pyxis.conf.erb'

0 commit comments

Comments
 (0)