File tree Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ Role Variables
11
11
12
12
` openhpc_slurm_service ` : name of the slurm service e.g. ` slurmd `
13
13
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 }}" `
15
15
16
16
` openhpc_slurm_partitions ` : list of slurm partitions
17
17
@@ -42,8 +42,13 @@ To deploy, create a playbook which looks like this:
42
42
runtime: true
43
43
openhpc_slurm_service_enabled: true
44
44
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"
47
52
openhpc_cluster_name: openhpc
48
53
openhpc_packages: []
49
54
...
Original file line number Diff line number Diff line change 1
1
---
2
2
openhpc_slurm_service_enabled : true
3
3
openhpc_slurm_service : slurmd
4
- openhpc_slurm_control_host : # Example: "{{ groups['cluster_login'] | first }}"
4
+ openhpc_slurm_control_host :
5
5
openhpc_slurm_partitions : []
6
6
openhpc_cluster_name :
7
7
openhpc_packages : []
Original file line number Diff line number Diff line change 1
1
---
2
2
- name : Restart SLURM service
3
3
service :
4
- name : " {{openhpc_slurm_service}}"
4
+ name : " {{ openhpc_slurm_service }}"
5
5
state : reloaded
6
6
when : openhpc_slurm_service_enabled | bool
7
7
You can’t perform that action at this time.
0 commit comments