Add IronicDefaultBootInterface parameter

Add IronicDefaultBootInterface parameter otherwise, some ironic
drivers will complain about missing default_boot_interface parameter.

Change-Id: Iebb572d0bfdc0e9146aa1f405023bcd1c1e3f9ed
This commit is contained in:
David Hill 2021-11-22 11:57:11 -05:00
parent 03010fad3f
commit 0436025d87
2 changed files with 22 additions and 0 deletions

View File

@ -85,6 +85,15 @@ parameters:
requested in node's driver_info, capabilities or in the
"instance_info" configuration. One of 'bios' or 'uefi'.
type: string
IronicDefaultBootInterface:
default: ''
description: Boot interface implementation to use by default. Leave empty to
set none. This may not work if a hardware type does not support
the set boot interface. This overrides create-time defaults.
The ordered union of the enabled boot interfaces and hardware
type determines, under normal circumstances, what the default
will be.
type: string
IronicDefaultDeployInterface:
default: ''
description: Deploy interface implementation to use by default. Leave empty to
@ -298,6 +307,8 @@ parameter_groups:
- IronicIpVersion
conditions:
default_boot_interface_set:
not: {equals : [{get_param: IronicDefaultBootInterface}, '']}
default_deploy_interface_set:
not: {equals : [{get_param: IronicDefaultDeployInterface}, '']}
default_inspect_interface_set:
@ -385,6 +396,9 @@ outputs:
- if:
- default_deploy_interface_set
- ironic::drivers::interfaces::default_deploy_interface: {get_param: IronicDefaultDeployInterface}
- if:
- default_boot_interface_set
- ironic::drivers::interfaces::default_boot_interface: {get_param: IronicDefaultBootInterface}
- if:
- default_inspect_interface_set
- ironic::drivers::interfaces::default_inspect_interface: {get_param: IronicDefaultInspectInterface}

View File

@ -0,0 +1,8 @@
---
features:
- |
Add IronicDefaultBootInterface parameter to allow users to set / override
the default boot interface used by ironic. This may not work if a hardware
type does not support the set boot interface. This overrides create-time
defaults. The ordered union of the enabled boot interfaces and hardware
type determines, under normal circumstances, what the default will be.