Allow configuring enabled vendor interfaces

Change-Id: Ie1fa1836381ba7f7601259f4c888a89b6ddcd895
This commit is contained in:
Dmitry Tantsur 2021-07-07 15:57:17 +02:00
parent 49fb766bbb
commit bf11adba5c
4 changed files with 20 additions and 0 deletions

View File

@ -148,6 +148,7 @@ enabled_bios_interfaces: ""
enabled_boot_interfaces: ""
enabled_management_interfaces: ""
enabled_power_interfaces: ""
enabled_vendor_interfaces: ""
default_resource_class: baremetal

View File

@ -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

View File

@ -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 }}

View File

@ -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.