Hi all, > On 15 Sep 2018, at 14:47, Chris Samuel <ch...@csamuel.org> wrote: > > On Thursday, 13 September 2018 3:10:19 AM AEST Paul Edmon wrote: > >> Another way would be to make all your Linux users and then map that in to >> Slurm using sacctmgr. > > At ${JOB} and ${JOB-1} we've wired user creation in Slurm into our online > user > management systems (both Django based & independently created), so when > people > are added/modified/deleted then it runs sacctmgr to keep everything in step.
We basically have something similar, which boils down to a few set comparisons, then creating and executing the right actions for each set. For code, see https://github.com/hpcugent/vsc-administration/blob/master/bin/sync_slurm_acct.py and https://github.com/hpcugent/vsc-administration/blob/master/lib/vsc/administration/slurm/sync.py Kind regards, — Andy