Merge "Add a no_driver ironic driver type"

This commit is contained in:
Zuul 2023-04-04 19:29:17 +00:00 committed by Gerrit Code Review
commit e7099c1e47
3 changed files with 13 additions and 1 deletions

View File

@ -328,6 +328,7 @@ ironic_conductor_init_config_overrides: {}
# driver definitions
ironic_drivers_enabled:
- no_driver
- agent_ipmitool
- pxe_ipmitool

View File

@ -0,0 +1,7 @@
---
features:
- |
A new driver type ``no_driver`` is defined in the os_ironic role which
enables the ``no-console``, ``no-raid`` and ``no-inspect`` interfaces
in the ironic configuration. This driver is added to the defaults set of
drivers configured by the ironic ansible role.

View File

@ -20,6 +20,10 @@ _ironic_inspector_is_first_play_host: "{{ (ironic_services['ironic-inspector']['
# task to save time.
ironic_driver_types:
no_driver:
inspect: no-inspect
console: no-console
raid: no-raid
agent_ilo:
hardware_type: ilo
boot: ilo-virtual-media
@ -140,7 +144,7 @@ ironic_packages_list: >
{%- set package_list = package_list + ironic_inspector_http_distro_packages %}
{%- endif %}
{%- if 'ipmitool-socat' in (filtered_ironic_drivers | json_query('[*].console') | unique) %}
{% set package_list = package_list + ironic_ipmitool_socat_distro_packages %}
{%- set package_list = package_list + ironic_ipmitool_socat_distro_packages %}
{%- endif %}
{{- package_list -}}