Skip to content

Commit

Permalink
Add pyxis again
Browse files Browse the repository at this point in the history
  • Loading branch information
hgreebe committed Aug 15, 2024
1 parent e57a3cd commit 6664ff0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cookbooks/aws-parallelcluster-platform/recipes/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@
enroot "Configure enroot" do
action :configure
end
#pyxis 'Setup Pyxis'
pyxis 'Setup Pyxis'
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,13 @@
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
mkdir -p #{node['cluster']['shared_dir']}/pyxis/
chown #{node['cluster']['cluster_user']} #{node['cluster']['shared_dir']}/pyxis/
sed -i '${s/$/ runtime_path=#{node['cluster']['shared_dir']}\/pyxis/}' /opt/slurm/etc/plugstack.conf.d/pyxis.conf
SHARED_DIR=#{node['cluster']['shared_dir']} envsubst < /opt/slurm/etc/plugstack.conf.d/pyxis.conf > /opt/slurm/etc/plugstack.conf.d/pyxis.tmp.conf
SHARED_DIR=#{node['cluster']['shared_dir']}
NONROOT_USER=#{node['cluster']['cluster_user']}
mkdir -p ${SHARED_DIR}/pyxis/
chown ${NONROOT_USER} ${SHARED_DIR}/pyxis/
sed -i '${s/$/ runtime_path=${SHARED_DIR}\/pyxis/}' /opt/slurm/etc/plugstack.conf.d/pyxis.conf
SHARED_DIR=${SHARED_DIR} envsubst < /opt/slurm/etc/plugstack.conf.d/pyxis.conf > /opt/slurm/etc/plugstack.conf.d/pyxis.tmp.conf
mv /opt/slurm/etc/plugstack.conf.d/pyxis.tmp.conf /opt/slurm/etc/plugstack.conf.d/pyxis.conf
PYXIS_INSTALL
retries 3
Expand Down

0 comments on commit 6664ff0

Please sign in to comment.