Default Slurm Application Environment
Pull Down the Default Slurm Environment Assets as a JSON Payload:
The packages for
jq
andcurl
are required:- CODE
yum install jq curl
CentOS EoL: You may need to ensure yum can still function due to recent End of Life cycle from RedHat for CentOS 7. The following command is an example mitigation for an internet-dependent yum repository:
- CODE
sed -i -e 's|^mirrorlist=|#mirrorlist=|g' -e 's|^#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*.repo yum clean all
Pull down from the MGMT_SERVER default assets for customization:
- CODE
curl -X GET http://${MGMT_SERVER_IP}:5000/v1/env/slurm | jq > default-slurm-env.json
The asset will look like: