Skip to content

Commit f75370d

Browse files
author
Himani Deshpande
committed
Using cookbook file as template doesnt seem to work
1 parent 6d017a9 commit f75370d

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
required /usr/local/lib/slurm/spank_pyxis.so runtime_path=/opt/parallelcluster/shared/pyxis

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

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,22 @@
6969
retry_delay 5
7070
end
7171

72-
template "#{node['cluster']['slurm']['install_dir']}/etc/plugstack.conf.d/pyxis.conf " do
73-
source 'pyxis/pyxis.conf.erb'
72+
cookbook_file "#{node['cluster']['slurm']['install_dir']}/etc/plugstack.conf.d/pyxis.conf" do
73+
source 'pyxis/pyxis.conf'
7474
cookbook 'aws-parallelcluster-platform'
7575
owner 'root'
7676
group 'root'
77-
mode '0755' # TODO: Chnage the permission
77+
mode '0755'
7878
end
7979

80+
# template "#{node['cluster']['slurm']['install_dir']}/etc/plugstack.conf.d/pyxis.conf " do
81+
# source 'pyxis/pyxis.conf.erb'
82+
# cookbook 'aws-parallelcluster-platform'
83+
# owner 'root'
84+
# group 'root'
85+
# mode '0755' # TODO: Chnage the permission
86+
# end
87+
8088
bash "Configure Pyxis" do
8189
user 'root'
8290
code <<-PYXIS_CONFIGURE

0 commit comments

Comments
 (0)