Use Case: workshop¶
Real world use case:
I am having a hackathon and want to add non-admin users and each user should only be allowed to run a single SLURM job at a time
User and SLURM account creation helper script¶
Download this script and check that it is okay
Modify the USERS map inside clusters-make-users.sh to add your users
Find the public IP of the jumphost in verda cloud console
Run it like this:
$ bash scripts/cluster-make-users.sh cluster.jumphost.public.ip
Login Success for [email protected]
--- jsmitha1 ---
Creating kanidm user jsmitha1
Successfully created display_name="John Smith" username=jsmitha1
Setting posix attributes for jsmitha1
Successfully added ["jsmitha1"] to group "cluster_users"
Starting slurm sacctmgr changes & validation
SLURM add user jsmitha1
Adding User(s)
jsmitha1
Settings
Associations =
C = wide-bird-cracks-fin-03 A = default_acct U = jsmitha1
Would you like to commit changes? (You have 30 seconds to decide)
(N/y):
=== Summary ===
Cluster: wide-bird-cracks-fin-03
OK: jsmitha1
AccountingStorageEnforce: OK