Adding SlurmΒΆ
First configure the LDAP datastore. See Adding OpenLDAP.
Install slurm command line.
Add to
/etc/sudoers:www-data ALL=(slurm) NOPASSWD: /usr/local/slurm/latest/bin/sacctmgr
Test using
www-datauser:sudo -uslurm /usr/local/slurm/latest/bin/sacctmgr -ip
Add project to slurm that has no access. Call it
default(or whatever else you want).Edit the
DATASTORESsetting in/etc/karaage3/settings.py:DATASTORES = [ { 'DESCRIPTION': 'LDAP datastore', ... }, { 'DESCRIPTION': 'Slurm datastore', 'ENGINE': 'karaage.datastores.slurm.SlurmDataStore', 'PREFIX': [ "sudo", "-uslurm" ], 'PATH': "/usr/local/slurm/latest/bin/sacctmgr", 'NULL_PROJECT': 'default', }, ]
Values
PREFIX,PATH, andNULL_PROJECTare defaults and can be omitted.In
/etc/karaage3/settings.pyuncomment theLOGGINGassignment lines related to slurm.Reload apache.
service apache2 reload