Skip to content

Commit 73ee12e

Browse files
hollysilkBharat Kunwar
authored andcommitted
brtknr review feedback to improve README
1 parent 6f32075 commit 73ee12e

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Role Variables
1111

1212
`openhpc_slurm_service`: name of the slurm service e.g. `slurmd`
1313

14-
`openhpc_slurm_control_host`: ansible host name of the controller e.g `"{{ groups['cluster_login'] | first }}"`
14+
`openhpc_slurm_control_host`: ansible host name of the controller e.g `"{{ groups['cluster_control'] | first }}"`
1515

1616
`openhpc_slurm_partitions`: list of slurm partitions
1717

@@ -42,8 +42,13 @@ To deploy, create a playbook which looks like this:
4242
runtime: true
4343
openhpc_slurm_service_enabled: true
4444
openhpc_slurm_service: slurmd
45-
openhpc_slurm_control_host: "{{ groups['cluster_login'] | first }}"
46-
openhpc_slurm_partitions: "{{ slurm_compute }}"
45+
openhpc_slurm_control_host: "{{ groups['cluster_control'] | first }}"
46+
openhpc_slurm_partitions:
47+
- name: "compute"
48+
flavor: "compute-A"
49+
image: "CentOS7.5-OpenHPC"
50+
num_nodes: 8
51+
user: "centos"
4752
openhpc_cluster_name: openhpc
4853
openhpc_packages: []
4954
...

defaults/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
openhpc_slurm_service_enabled: true
33
openhpc_slurm_service: slurmd
4-
openhpc_slurm_control_host: # Example: "{{ groups['cluster_login'] | first }}"
4+
openhpc_slurm_control_host:
55
openhpc_slurm_partitions: []
66
openhpc_cluster_name:
77
openhpc_packages: []

handlers/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
- name: Restart SLURM service
33
service:
4-
name: "{{openhpc_slurm_service}}"
4+
name: "{{ openhpc_slurm_service }}"
55
state: reloaded
66
when: openhpc_slurm_service_enabled | bool
77

0 commit comments

Comments
 (0)