Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions environments/site/inventory/group_vars/all/openhpc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
openhpc_config_extra:
MpiDefault: pmix
AccountingStorageEnforce: 'associations,limits,qos,safe'
SelectTypeParameters: CR_Core_Memory

openhpc_job_maxtime: '1-0'
12 changes: 12 additions & 0 deletions environments/staging/hooks/post.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,15 @@
# environments/site/hooks/pre.yml:
- name: Import parent hook
import_playbook: "{{ lookup('env', 'APPLIANCES_ENVIRONMENT_ROOT') }}/../site/hooks/post.yml"

- name: Staging-specific Slurm config
hosts: control
become: true
tags: openhpc
tasks:
- name: Is demo_user associated
ansible.builtin.command: "sacctmgr --json show assoc user=demo_user"
register: demo_user_assoc
- name: Set Slurm account for demo_user
ansible.builtin.command: "sacctmgr --immediate create user name=demo_user defaultaccount=root"
when: not (demo_user_assoc.stdout | from_json)["associations"]
2 changes: 0 additions & 2 deletions environments/staging/inventory/group_vars/all/openhpc.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
---
openhpc_config_extra:
MpiDefault: pmix