Skip to content
Snippets Groups Projects
Commit f1baff33 authored by Andreas Hamacher's avatar Andreas Hamacher
Browse files

added partition in user creation

Former-commit-id: ef9c8526
parent aa76e031
No related branches found
No related tags found
No related merge requests found
...@@ -28,13 +28,17 @@ ...@@ -28,13 +28,17 @@
failed_when: result.rc != 0 and result.stdout != " Nothing new added." failed_when: result.rc != 0 and result.stdout != " Nothing new added."
- name: Create a user and associate them with a project - name: Create a user and associate them with a project
command: ./sacctmgr -i create user hpctest cluster=m3 account=testProject command: ./sacctmgr -i create user hpctest cluster=m3 account=testProject partition=batch
args: args:
chdir: '/opt/slurm-latest/bin' chdir: '/opt/slurm-latest/bin'
become: true become: true
register: result register: result
failed_when: result.rc != 0 and result.stdout != " Nothing new added." failed_when: result.rc != 0 and result.stdout != " Nothing new added."
#sudo `which sacctmgr` modify user where name=hpctest set maxjobs=200
## 18 sudo `which sacctmgr` update account hpctest set qos=normal
# 22 sudo `which sacctmgr` update account testProject set qos=normal
- hosts: LoginNodes - hosts: LoginNodes
gather_facts: false gather_facts: false
tasks: tasks:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment