Skip to content

Commit 5cb063d

Browse files
hjensasopenshift-merge-bot[bot]
authored andcommitted
Fallback sushy-emulator to public net if no ctlplane
If ctlplane network is not enabled/attached to the controller-0 node fallback the sushy.utility host record to the public net. This allows me to configure controller with only public net: ``` cifmw_libvirt_manager_configuration: vms: controller: nets: - ocpbm cifmw_networking_definition: instances: controller-0: networks: {} ```
1 parent 0254480 commit 5cb063d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

roles/reproducer/tasks/prepare_networking.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,8 @@
216216
- "sushy.utility"
217217
- "controller-0.utility"
218218
ips:
219-
- "{{ _controller_net.ctlplane.ip_v4 | default('') }}"
220-
- "{{ _controller_net.ctlplane.ip_v6 | default('') }}"
219+
- "{{ _controller_net.ctlplane.ip_v4 | default(_controller_net[_pub_net].ip_v4) | default('') }}"
220+
- "{{ _controller_net.ctlplane.ip_v6 | default(_controller_net[_pub_net].ip_v6) | default('') }}"
221221
state: present
222222
ansible.builtin.include_role:
223223
name: "dnsmasq"

0 commit comments

Comments
 (0)