Skip to content

Commit 276da8e

Browse files
committed
move configless validation into validation play
1 parent e5769e3 commit 276da8e

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

ansible/slurm.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,6 @@
2525
- rebuild
2626
- openhpc
2727
tasks:
28-
- assert:
29-
that: "'enable_configless' in openhpc_config.SlurmctldParameters | default([])"
30-
fail_msg: |
31-
'enable_configless' not found in openhpc_config.SlurmctldParameters - is variable openhpc_config overridden?
32-
Additional slurm.conf parameters should be provided using variable openhpc_config_extra.
33-
success_msg: Checked Slurm will be configured for configless operation
3428
- import_role:
3529
name: stackhpc.slurm_openstack_tools.rebuild
3630

ansible/validate.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,17 @@
99
that: groups['control'] | length
1010
fail_msg: "no hosts found in group 'control' - has control node been deployed?"
1111

12+
- name: Validate openhpc configuration
13+
hosts: openhpc
14+
tags: openhpc
15+
tasks:
16+
- assert:
17+
that: "'enable_configless' in openhpc_config.SlurmctldParameters | default([])"
18+
fail_msg: |
19+
'enable_configless' not found in openhpc_config.SlurmctldParameters - is variable openhpc_config overridden?
20+
Additional slurm.conf parameters should be provided using variable openhpc_config_extra.
21+
success_msg: Checked Slurm will be configured for configless operation
22+
1223
- name: Validate podman configuration
1324
hosts: podman
1425
tags: podman

0 commit comments

Comments
 (0)