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
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 ...
Original file line number Diff line number Diff line change 11---
22openhpc_slurm_service_enabled : true
33openhpc_slurm_service : slurmd
4- openhpc_slurm_control_host : # Example: "{{ groups['cluster_login'] | first }}"
4+ openhpc_slurm_control_host :
55openhpc_slurm_partitions : []
66openhpc_cluster_name :
77openhpc_packages : []
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments