Skip to content

Commit 8394a29

Browse files
committed
[ironic_adoption] Enable IPv6 support for dns_server_provisioning_ip
The logic for `dns_server_provisioning_ip` is updated to dynamically select the IP address based on whether IPv6 is enabled. If `ipv6_enabled` is true, it uses the `ctlplane_prefix_ipv6` with an IPv6 address; otherwise, it defaults to the previous IPv4 address logic. Signed-off-by: Roberto Alfieri <[email protected]>
1 parent 4a95bc6 commit 8394a29

File tree

1 file changed

+6
-1
lines changed
  • tests/roles/ironic_adoption/defaults

1 file changed

+6
-1
lines changed

tests/roles/ironic_adoption/defaults/main.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
---
22
storage_class_name: local-storage
3-
dns_server_provisioning_ip: 192.168.122.80
3+
dns_server_provisioning_ip: >-
4+
{{
5+
(ctlplane_prefix_ipv6 | default('2620:cf:cf:aaaa')) ~ '::50'
6+
if ipv6_enabled | default(false)
7+
else (ctlplane_prefix | default('192.168.122')) ~ '.80'
8+
}}
49
ironic_network: baremetal
510
ironic_patch: |
611
spec:

0 commit comments

Comments
 (0)