Skip to content

Commit 68d55f4

Browse files
committed
typos + renames + added reconfigure warning to docs
1 parent 80ce744 commit 68d55f4

File tree

5 files changed

+12
-7
lines changed

5 files changed

+12
-7
lines changed

ansible/roles/topology/README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,21 @@
11
topology
22
========
33

4-
Templates out /etc/slurm/topology.conf file based on an Openstack project for use by
4+
Templates out /etc/slurm/topology.conf file based on an OpenStack project for use by
55
Slurm's [topology/tree plugin.](https://slurm.schedmd.com/topology.html) Models
6-
cluster as tree with a heirarchy of:
6+
cluster as tree with a hierarchy of:
77

88
Top-level inter-rack Switch -> Availability Zones -> Hypervisors -> VMs
99

10+
Warning: This role doesn't currently trigger a restart of Slurm so will therefore not
11+
reconfigure an already running cluster after a `ansible/site.yml` run. You will therefore need
12+
to run the `ansible/adhoc/restart-slurm.yml` playbook for changes to topology.conf to be
13+
recognised.
14+
1015
Role Variables
1116
--------------
1217

13-
- `topology_topology_nodes:`: Required list of strs. List of inventory hostnames of nodes to include in topology tree. Must be set to include all compute nodes in Slurm cluster. Default `[]`.
18+
- `topology_nodes:`: Required list of strs. List of inventory hostnames of nodes to include in topology tree. Must be set to include all compute nodes in Slurm cluster. Default `[]`.
1419
- `topology_conf_template`: Optional str. Path to Jinja2 template of topology.conf file. Default
1520
`templates/topology.conf.j2`
1621
- `topology_above_rack_topology`: Optionally multiline str. Used to define topology above racks/AZs if

ansible/roles/topology/defaults/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Nodes to be included in topology tree, must include all Slurm compute nodes
2-
topology_topology_nodes: []
2+
topology_nodes: []
33

44
# Override to use custom topology.conf template
55
topology_conf_template: templates/topology.conf.j2

ansible/roles/topology/tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
- name: Map instances to hosts
22
become: false
33
map_hosts:
4-
compute_vms: "{{ topology_topology_nodes }}"
4+
compute_vms: "{{ topology_nodes }}"
55
register: _topology
66
delegate_to: localhost
77
run_once: true

environments/common/inventory/group_vars/all/openhpc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ openhpc_config_default:
5757
- enable_configless
5858
TaskPlugin: task/cgroup,task/affinity
5959
ReturnToService: 2 # workaround for templating bug TODO: Remove once on stackhpc.openhpc v1.2.0
60-
TopologyPlugin: "topology/{{ 'tree' if (topology_topology_nodes | length) > 0 else 'flat' }}"
60+
TopologyPlugin: "topology/{{ 'tree' if (topology_nodes | length) > 0 else 'flat' }}"
6161

6262
# default additional slurm.conf parameters when "rebuild" enabled:
6363
openhpc_config_rebuild:
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
topology_topology_nodes: "{{ groups['topology'] }}"
1+
topology_nodes: "{{ groups['topology'] }}"

0 commit comments

Comments
 (0)