Fix Ironic configuration for IPv6

When using IPv6 for provisioning baremtal nodes ironic.conf
needs:
  - [pxe]/ip_version must be set to '6'. Add parameter
    IronicIpVersion.
  - [deploy]/http_url must have the IPv6 address wrapped.
    Use the $NETWORK_uri value from hiera which carries
    an ip address fit for use in url.

Related-Bug: #1845746
Depends-On: Ib29adccc8378bd3e2a46b7d2ca3cfacba55e7674
Change-Id: I6384e11dd68cdbf2179545caae2c818fd1a6b23e
This commit is contained in:
Harald Jensås 2019-09-28 01:39:20 +02:00
parent bf055342a2
commit 6e202df4ea
1 changed files with 6 additions and 1 deletions

View File

@ -232,6 +232,10 @@ parameters:
default: []
description: List of additional architectures to enable.
type: comma_delimited_list
IronicIpVersion:
default: 4
description: The IP version that will be used for PXE booting.
type: string
conditions:
default_deploy_interface_unset: {equals : [{get_param: IronicDefaultDeployInterface}, '']}
@ -306,7 +310,7 @@ outputs:
ironic_conductor_http_host:
str_replace:
template:
"%{hiera('$NETWORK')}"
"%{hiera('$NETWORK_uri')}"
params:
$NETWORK: {get_param: [ServiceNetMap, IronicNetwork]}
ironic::conductor::http_url:
@ -317,6 +321,7 @@ outputs:
- {get_param: IronicIPXEPort}
ironic::drivers::pxe::ipxe_enabled: {get_param: IronicIPXEEnabled}
ironic::drivers::pxe::ipxe_timeout: {get_param: IronicIPXETimeout}
ironic::drivers::pxe::ip_version: {get_param: IronicIpVersion}
# NOTE: bind IP is found in hiera replacing the network name with the
# local node IP for the given network; replacement examples
# (eg. for internal_api):