Allow configuring enabled vendor interfaces
Change-Id: Ie1fa1836381ba7f7601259f4c888a89b6ddcd895
This commit is contained in:
parent
49fb766bbb
commit
bf11adba5c
@ -148,6 +148,7 @@ enabled_bios_interfaces: ""
|
||||
enabled_boot_interfaces: ""
|
||||
enabled_management_interfaces: ""
|
||||
enabled_power_interfaces: ""
|
||||
enabled_vendor_interfaces: ""
|
||||
|
||||
default_resource_class: baremetal
|
||||
|
||||
|
@ -59,3 +59,13 @@
|
||||
{%- if enable_credential_less_deploy|bool -%},agent{%- endif -%}
|
||||
{%- if "staging-wol" in enabled_hardware_types -%},staging-wol{%- endif -%}
|
||||
when: not enabled_power_interfaces
|
||||
|
||||
- name: "Configure vendor interfaces if required"
|
||||
set_fact:
|
||||
enabled_vendor_interfaces: >-
|
||||
no-vendor
|
||||
{%- if "idrac" in enabled_hardware_types -%},idrac-redfish{%- endif -%}
|
||||
{%- if "ilo" in enabled_hardware_types -%},ilo{%- endif -%}
|
||||
{%- if "ipmi" in enabled_hardware_types -%},ipmitool{%- endif -%}
|
||||
{%- if "redfish" in enabled_hardware_types -%},redfish{%- endif -%}
|
||||
when: not enabled_vendor_interfaces
|
||||
|
@ -16,6 +16,7 @@ enabled_boot_interfaces = {{ enabled_boot_interfaces }}
|
||||
enabled_management_interfaces = {{ enabled_management_interfaces }}
|
||||
enabled_power_interfaces = {{ enabled_power_interfaces }}
|
||||
enabled_deploy_interfaces = {{ enabled_deploy_interfaces }}
|
||||
enabled_vendor_interfaces = {{ enabled_vendor_interfaces }}
|
||||
|
||||
enabled_hardware_types = {{ enabled_hardware_types }}
|
||||
|
||||
|
@ -0,0 +1,8 @@
|
||||
---
|
||||
features:
|
||||
- |
|
||||
Automatically configures ``enabled_vendor_interfaces`` based on the
|
||||
``enabled_hardware_types``.
|
||||
- |
|
||||
Adds support for manually specified enabled vendor interfaces via the new
|
||||
``enabled_vendor_interfaces`` parameter.
|
Loading…
Reference in New Issue
Block a user