File tree Expand file tree Collapse file tree 2 files changed +14
-10
lines changed
roles/installer/templates Expand file tree Collapse file tree 2 files changed +14
-10
lines changed Original file line number Diff line number Diff line change 99metadata:
1010 name: {{ cluster }}
1111networking:
12- {% if not dualstack_baremetal |bool %}
12+ {% if not dualstack_baremetal |bool and not ipv 6 _enabled | bool %}
1313 machineCIDR: {{ extcidrnet }}
14+ {% elif ipv 6_enabled |bool %}
15+ machineCIDR: {{ extcidrnet6 }}
1416{% endif %}
1517 networkType: {{ network_type }}
1618{% if ipv 6_enabled |bool and not (ipv 4_baremetal |bool or dualstack_baremetal |bool ) %}
@@ -48,22 +50,22 @@ platform:
4850 baremetal:
4951{% if ((release_version .split ('.' )[0]|int == 4) and (release_version .split ('.' )[1]|int >= 12)) and dualstack_baremetal |bool and dualstack_vips |bool %}
5052 apiVIPs:
51- {% if apivip is defined and apivip |ipv 4 %}
53+ {% if ipv 4 _baremetal | bool and apivip is defined and apivip |ipv 4 %}
5254 - {{ apivip }}
5355{% endif %}
5456{% if ipv 6_enabled |bool and apivip 6 is defined and apivip 6|ipv 6 %}
5557 - {{ apivip6 }}
5658{% endif %}
5759 ingressVIPs:
58- {% if ingressvip is defined and ingressvip |ipv 4 %}
60+ {% if ipv 4 _baremetal | bool and ingressvip is defined and ingressvip |ipv 4 %}
5961 - {{ ingressvip }}
6062{% endif %}
6163{% if ipv 6_enabled |bool and ingressvip 6 is defined and ingressvip 6|ipv 6 %}
6264 - {{ ingressvip6 }}
6365{% endif %}
6466{% else %}
65- apiVIP: {{ apivip }}
66- ingressVIP: {{ ingressvip }}
67+ apiVIP: {{ (ipv4_baremetal|bool) | ternary( apivip, apivip6) }}
68+ ingressVIP: {{ (ipv4_baremetal|bool) | ternary( ingressvip, ingressvip6) }}
6769{% endif %}
6870{% if ((release_version .split ('.' )[0]|int == 4) and (release_version .split ('.' )[1]|int < 5)) %}
6971 dnsVIP: {{ dnsvip }}
Original file line number Diff line number Diff line change 99metadata:
1010 name: {{ cluster }}
1111networking:
12- {% if not dualstack_baremetal |bool %}
12+ {% if not dualstack_baremetal |bool and not ipv 6 _enabled | bool %}
1313 machineCIDR: {{ extcidrnet }}
14+ {% elif ipv 6_enabled |bool %}
15+ machineCIDR: {{ extcidrnet6 }}
1416{% endif %}
1517 networkType: {{ network_type }}
1618{% if ipv 6_enabled |bool and not (ipv 4_baremetal |bool or dualstack_baremetal |bool ) %}
@@ -48,22 +50,22 @@ platform:
4850 baremetal:
4951{% if ((release_version .split ('.' )[0]|int == 4) and (release_version .split ('.' )[1]|int >= 12)) and dualstack_baremetal |bool and dualstack_vips |bool %}
5052 apiVIPs:
51- {% if apivip is defined and apivip |ipv 4 %}
53+ {% if ipv 4 _baremetal | bool and apivip is defined and apivip |ipv 4 %}
5254 - {{ apivip }}
5355{% endif %}
5456{% if ipv 6_enabled |bool and apivip 6 is defined and apivip 6|ipv 6 %}
5557 - {{ apivip6 }}
5658{% endif %}
5759 ingressVIPs:
58- {% if ingressvip is defined and ingressvip |ipv 4 %}
60+ {% if ipv 4 _baremetal | bool and ingressvip is defined and ingressvip |ipv 4 %}
5961 - {{ ingressvip }}
6062{% endif %}
6163{% if ipv 6_enabled |bool and ingressvip 6 is defined and ingressvip 6|ipv 6 %}
6264 - {{ ingressvip6 }}
6365{% endif %}
6466{% else %}
65- apiVIP: {{ apivip }}
66- ingressVIP: {{ ingressvip }}
67+ apiVIP: {{ (ipv4_baremetal|bool) | ternary( apivip, apivip6) }}
68+ ingressVIP: {{ (ipv4_baremetal|bool) | ternary( ingressvip, ingressvip6) }}
6769{% endif %}
6870{% if ((release_version .split ('.' )[0]|int == 4) and (release_version .split ('.' )[1]|int < 5)) %}
6971 dnsVIP: {{ dnsvip }}
You can’t perform that action at this time.
0 commit comments