This functionality in slurmd was added in August 2023, so not in the version we’re currently running:
https://github.com/SchedMD/slurm/commit/0daa1fda97c125c0b1c48cbdcdeaf1382ed7...
Perhaps something for the future. Currently looking like the job_submit.lua is the best candidate.
On Jun 14, 2024, at 15:37, Ryan Cox via slurm-users slurm-users@lists.schedmd.com wrote:
What we are doing now is using --extra for that purpose. The nodes boot up with SLURMD_OPTIONS="--extra {\"os\":\"rhel9\"}" or similar. Users can request --extra=os=rhel9 or whatever if they want to submit across OS versions for some weird reason.