File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change 4
4
5
5
This Ansible role is used to install the necessary packages to have a fully functional OpenHPC cluster.
6
6
7
+ Role Variables
8
+ --------------
9
+
10
+ ` openhpc_slurm_service_enabled ` : checks whether ` openhpc_slurm_service ` is enabled
11
+ ` openhpc_slurm_service ` : name of the slurm service e.g. ` slurmd `
12
+ ` openhpc_slurm_control_host ` : ansible host name of the controller e.g ` "{{ groups['cluster_login'] | first }}" `
13
+ ` openhpc_slurm_partitions ` : list of slurm partitions
14
+ ` openhpc_cluster_name ` : name of the cluster
15
+ ` openhpc_packages ` : additional OpenHPC packages to install
16
+ ` openhpc_enable ` :
17
+ * ` control ` : whether to enable control host
18
+ * ` batch ` : whether to enable compute nodes
19
+ * ` runtime ` : whether to enable OpenHPC runtime
20
+
21
+ Example Playbook
22
+ ----------------
23
+
7
24
To deploy, create a playbook which looks like this:
8
25
9
26
---
@@ -17,8 +34,17 @@ To deploy, create a playbook which looks like this:
17
34
control: "{{ inventory_hostname in groups['cluster_control'] }}"
18
35
batch: "{{ inventory_hostname in groups['cluster_batch'] }}"
19
36
runtime: true
37
+ openhpc_slurm_service_enabled: true
38
+ openhpc_slurm_service: slurmd
39
+ openhpc_slurm_control_host:
40
+ openhpc_slurm_partitions: []
41
+ openhpc_cluster_name:
42
+ openhpc_packages: []
20
43
...
21
44
45
+ Example Inventory
46
+ -----------------
47
+
22
48
And an Ansible inventory as this:
23
49
24
50
[openhpc_login]
You can’t perform that action at this time.
0 commit comments