Skip to content

Commit

Permalink
split pyxis
Browse files Browse the repository at this point in the history
  • Loading branch information
hgreebe committed Aug 15, 2024
1 parent d28dc5f commit 3c05a5b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
3 changes: 3 additions & 0 deletions cookbooks/aws-parallelcluster-platform/recipes/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,6 @@
enroot "Configure enroot" do
action :configure
end
pyxis "Configure pyxis" do
action :configure
end
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,19 @@
mkdir -p /opt/slurm/etc/plugstack.conf.d
echo -e 'include /opt/slurm/etc/plugstack.conf.d/*' | tee /opt/slurm/etc/plugstack.conf
ln -fs /usr/local/share/pyxis/pyxis.conf /opt/slurm/etc/plugstack.conf.d/pyxis.conf
PYXIS_INSTALL
retries 3
retry_delay 5
end
end


action :configure do

bash "Configure pyxis" do
user 'root'
code <<-PYXIS_INSTALL
set -e
SHARED_DIR=#{node['cluster']['shared_dir']}
NONROOT_USER=#{node['cluster']['cluster_user']}
mkdir -p ${SHARED_DIR}/pyxis/
Expand Down

0 comments on commit 3c05a5b

Please sign in to comment.