This is a problem because the path where our playbooks that read the SLURM RPM files changes depending on how we configured our cluster. Depending on the values of variables in /etc/ansible/hosts the path those playbooks will look for will change. For example, the slurm role takes a download_path variable as the path to the RPM files. Depending on whether we have the configured create_fss to true or cluster_nfs to true the behavior will change. By default, the slurm role would check in /tmp but this would never work since we've hardcoded the download path to /data/slurm_rpms.
The playbook that downloads SLURM RPM file is hardcoded to download to
/data/slurm_rpms
.This is a problem because the path where our playbooks that read the SLURM RPM files changes depending on how we configured our cluster. Depending on the values of variables in
/etc/ansible/hosts
the path those playbooks will look for will change. For example, theslurm
role takes adownload_path
variable as the path to the RPM files. Depending on whether we have the configuredcreate_fss
totrue
orcluster_nfs
to true the behavior will change. By default, theslurm
role would check in/tmp
but this would never work since we've hardcoded the download path to/data/slurm_rpms
.One way to solve this would be by setting the default download path for the SLURM RPMs be to
/tmp
and have all playbooks look for the RPMs in/tmp
.