Skip to content

Commit affc619

Browse files
committed
Add ironic ipv6
1 parent cbac00e commit affc619

File tree

1 file changed

+12
-0
lines changed
  • tests/roles/ironic_adoption/defaults

1 file changed

+12
-0
lines changed

tests/roles/ironic_adoption/defaults/main.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,12 @@ ironic_patch: |
1818
annotations:
1919
metallb.universe.tf/address-pool: ctlplane
2020
metallb.universe.tf/allow-shared-ip: ctlplane
21+
{% if ipv6_enabled | default(false) -%}
22+
metallb.universe.tf/loadBalancerIPs: {{ ctlplane_prefix_ipv6 | default('2620:cf:cf:aaaa') }}::50
23+
{%- else -%}
2124
metallb.universe.tf/loadBalancerIPs: {{ ctlplane_prefix | default('192.168.122') }}.80
25+
{%- endif %}
26+
2227
spec:
2328
type: LoadBalancer
2429
ironicConductors:
@@ -43,10 +48,17 @@ ironic_patch: |
4348
- {{ ironic_network }}
4449
dhcpRanges:
4550
- name: inspector-0
51+
{% if ipv6_enabled | default(false) -%}
52+
cidr: 2620:cf:cf:ffff::/64
53+
start: 2620:cf:cf:ffff::190
54+
end: 2620:cf:cf:ffff::199
55+
{%- else -%}
4656
cidr: 172.20.1.0/24
4757
start: 172.20.1.190
4858
end: 172.20.1.199
4959
gateway: 172.20.1.1
60+
{%- endif %}
61+
5062
serviceUser: ironic-inspector
5163
databaseAccount: ironic-inspector
5264
passwordSelectors:

0 commit comments

Comments
 (0)