Skip to content

Commit ebe9af4

Browse files
committed
ensure user limits via slurm are in place before starting slurmd
1 parent b01af13 commit ebe9af4

File tree

2 files changed

+17
-16
lines changed

2 files changed

+17
-16
lines changed

ansible/roles/compute_init/files/compute-init.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -320,12 +320,6 @@
320320
enabled: true
321321
state: started
322322

323-
- name: Ensure slurmd service state
324-
service:
325-
name: slurmd
326-
enabled: true
327-
state: started
328-
329323
- name: Set locked memory limits on user-facing nodes
330324
lineinfile:
331325
path: /etc/security/limits.conf
@@ -347,6 +341,13 @@
347341
+:adm:ALL
348342
-:ALL:ALL
349343
344+
- name: Ensure slurmd service state
345+
service:
346+
name: slurmd
347+
enabled: true
348+
state: started
349+
350+
350351
- name: Ensure node is resumed
351352
# TODO: consider if this is always safe for all job states?
352353
command: scontrol update state=resume nodename={{ ansible_hostname }}

ansible/slurm.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,6 @@
1919
- import_role:
2020
name: rebuild
2121

22-
- name: Setup slurm
23-
hosts: openhpc
24-
become: yes
25-
tags:
26-
- openhpc
27-
tasks:
28-
- include_role:
29-
name: stackhpc.openhpc
30-
tasks_from: "{{ 'runtime.yml' if appliances_mode == 'configure' else 'main.yml' }}"
31-
3222
- name: Set locked memory limits on user-facing nodes
3323
hosts:
3424
- compute
@@ -63,3 +53,13 @@
6353
+:adm:ALL
6454
-:ALL:ALL
6555
# vagrant uses (deprecated) ansible_ssh_user
56+
57+
- name: Setup slurm
58+
hosts: openhpc
59+
become: yes
60+
tags:
61+
- openhpc
62+
tasks:
63+
- include_role:
64+
name: stackhpc.openhpc
65+
tasks_from: "{{ 'runtime.yml' if appliances_mode == 'configure' else 'main.yml' }}"

0 commit comments

Comments
 (0)