Skip to content

Commit b65c660

Browse files
hollysilkBharat Kunwar
authored andcommitted
defined input parameters in README
1 parent dc094c8 commit b65c660

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,23 @@
44

55
This Ansible role is used to install the necessary packages to have a fully functional OpenHPC cluster.
66

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+
724
To deploy, create a playbook which looks like this:
825

926
---
@@ -17,8 +34,17 @@ To deploy, create a playbook which looks like this:
1734
control: "{{ inventory_hostname in groups['cluster_control'] }}"
1835
batch: "{{ inventory_hostname in groups['cluster_batch'] }}"
1936
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: []
2043
...
2144

45+
Example Inventory
46+
-----------------
47+
2248
And an Ansible inventory as this:
2349

2450
[openhpc_login]

0 commit comments

Comments
 (0)