Merge "Add IronicDefaultBootInterface parameter"

This commit is contained in:
Zuul 2021-11-24 10:25:32 +00:00 committed by Gerrit Code Review
commit 85e65d2a24
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.