Skip to content

Commit f1d8fb0

Browse files
committed
refactor + added to CI groups
1 parent 3c9d509 commit f1d8fb0

File tree

5 files changed

+11
-4
lines changed

5 files changed

+11
-4
lines changed
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1-
# If set to non-empty string, will override topology.conf file auto-detected from OpenStack project
2-
topology_topology_override: ""
1+
# Nodes to be included in topology tree, must include all Slurm compute nodes
2+
topology_topology_nodes: []
3+
4+
# If set, will override topology.conf file auto-detected from OpenStack project
5+
# topology_topology_override:

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: "{{ groups['compute'] }}"
4+
compute_vms: "{{ topology_topology_nodes }}"
55
register: _topology
66
delegate_to: localhost
77
run_once: true

ansible/roles/topology/templates/topology.conf.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# topology.conf
22
# Switch Configuration
3-
{% if topology_topology_override != '' %}
3+
{% if topology_topology_override is defined %}
44
{{ topology_topology_override }}
55
{% else %}
66
{% for az in _topology.topology.keys() %}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
topology_topology_groups: "{{ groups['topology'] }}"

environments/common/layouts/everything

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,3 +135,6 @@ builder
135135
[nhc:children]
136136
# Hosts to configure for node health checks
137137
compute
138+
139+
[topology:children]
140+
compute

0 commit comments

Comments
 (0)