Skip to content

Commit

Permalink
Using cookbook file as template doesnt seem to work
Browse files Browse the repository at this point in the history
  • Loading branch information
Himani Deshpande committed Oct 11, 2024
1 parent 6d017a9 commit 9321be0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
required /usr/local/lib/slurm/spank_pyxis.so runtime_path=/opt/parallelcluster/shared/pyxis
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,22 @@
retry_delay 5
end

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

# template "#{node['cluster']['slurm']['install_dir']}/etc/plugstack.conf.d/pyxis.conf " do
# source 'pyxis/pyxis.conf.erb'
# cookbook 'aws-parallelcluster-platform'
# owner 'root'
# group 'root'
# mode '0755' # TODO: Chnage the permission
# end

bash "Configure Pyxis" do
user 'root'
code <<-PYXIS_CONFIGURE
Expand Down

0 comments on commit 9321be0

Please sign in to comment.