Support redfish-virtual-media with legacy boot

Depends-On: https://review.opendev.org/757859
Change-Id: I3f8e34628feb21309b6a5be7224f07e0e87a9417
This commit is contained in:
Dmitry Tantsur 2020-10-13 14:40:04 +02:00
parent 13001e5a79
commit 9e3c685e06
9 changed files with 26 additions and 0 deletions

View File

@ -34,6 +34,7 @@ required_packages:
- gcc
- dnsmasq
- apache2-utils
- isolinux
# NOTE(TheJulia): The above entry for dnsmasq must be the last entry in the
# package list as the installation causes name resolution changes that can
# temporarily block packages following it while the system is being

View File

@ -31,6 +31,7 @@ required_packages:
- qemu-img
- qemu-kvm
- socat
- syslinux-nonlinux
- tftp-server
- wget
- xinetd

View File

@ -37,6 +37,7 @@ required_packages:
- firewalld
- python3-firewall
- httpd-tools
- syslinux-nonlinux
iscsi_required_packages:
- iscsi-initiator-utils
- gdisk

View File

@ -39,6 +39,7 @@ required_packages:
- gcc
- python-PyMySQL
- apache2-utils
- syslinux
iscsi_required_packages:
- open-iscsi
- gptfdisk

View File

@ -28,6 +28,7 @@ required_packages:
- curl
- dnsmasq
- apache2-utils
- isolinux
# NOTE(TheJulia): The above entry for dnsmasq must be the last entry in the
# package list as the installation causes name resolution changes that can
# temporarily block packages following it while the system is being

View File

@ -31,6 +31,7 @@
enabled_boot_interfaces: >-
ipxe,pxe
{%- if "ilo" in enabled_hardware_types -%},ilo-virtual-media{%- endif -%}
{%- if "redfish" in enabled_hardware_types -%},redfish-virtual-media{%- endif -%}
{%- if "fake-hardware" in enabled_hardware_types -%},fake{%- endif -%}
when: not enabled_boot_interfaces

View File

@ -30,6 +30,12 @@
when: not hostvars[inventory_hostname][provisioning_itf_name].get('ipv4', {}).get('address')
- name: "Configure hardware interfaces"
import_tasks: hw_types.yml
- name: "Locate ISOLINUX binary"
set_fact:
isolinux_bin_path: "{{ item }}"
with_first_found:
- /usr/lib/ISOLINUX/isolinux.bin
- /usr/share/syslinux/isolinux.bin
- name: "Create ironic config"
template:
src="ironic.conf.j2"

View File

@ -36,6 +36,8 @@ http_basic_auth_user_file = /etc/ironic/htpasswd
log_dir = {{ ironic_log_dir }}
{% endif %}
isolinux_bin = {{ isolinux_bin_path }}
{% if enable_tls | bool %}
[api]
enable_ssl_api = True
@ -115,6 +117,14 @@ allow_credentials = {{ enable_cors_credential_support | default('true') }}
[ilo]
use_web_server_for_images = true
[redfish]
use_swift = False
{% if testing | bool %}
kernel_append_params = console=ttyS0 ipa-insecure=1 {{ extra_kernel_options | default('') }}
{% else %}
kernel_append_params = systemd.journald.forward_to_console=yes ipa-insecure=1 {{ extra_kernel_options | default('') }}
{% endif %}
{% if enable_inspector | bool == true %}
[inspector]
power_off = {{ power_off_after_inspection }}

View File

@ -0,0 +1,4 @@
---
features:
- |
Enables support for ``redfish-virtual-media`` in legacy (BIOS) boot mode.