Support redfish-virtual-media with legacy boot
Depends-On: https://review.opendev.org/757859 Change-Id: I3f8e34628feb21309b6a5be7224f07e0e87a9417
This commit is contained in:
parent
13001e5a79
commit
9e3c685e06
@ -34,6 +34,7 @@ required_packages:
|
|||||||
- gcc
|
- gcc
|
||||||
- dnsmasq
|
- dnsmasq
|
||||||
- apache2-utils
|
- apache2-utils
|
||||||
|
- isolinux
|
||||||
# NOTE(TheJulia): The above entry for dnsmasq must be the last entry in the
|
# 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
|
# package list as the installation causes name resolution changes that can
|
||||||
# temporarily block packages following it while the system is being
|
# temporarily block packages following it while the system is being
|
||||||
|
@ -31,6 +31,7 @@ required_packages:
|
|||||||
- qemu-img
|
- qemu-img
|
||||||
- qemu-kvm
|
- qemu-kvm
|
||||||
- socat
|
- socat
|
||||||
|
- syslinux-nonlinux
|
||||||
- tftp-server
|
- tftp-server
|
||||||
- wget
|
- wget
|
||||||
- xinetd
|
- xinetd
|
||||||
|
@ -37,6 +37,7 @@ required_packages:
|
|||||||
- firewalld
|
- firewalld
|
||||||
- python3-firewall
|
- python3-firewall
|
||||||
- httpd-tools
|
- httpd-tools
|
||||||
|
- syslinux-nonlinux
|
||||||
iscsi_required_packages:
|
iscsi_required_packages:
|
||||||
- iscsi-initiator-utils
|
- iscsi-initiator-utils
|
||||||
- gdisk
|
- gdisk
|
||||||
|
@ -39,6 +39,7 @@ required_packages:
|
|||||||
- gcc
|
- gcc
|
||||||
- python-PyMySQL
|
- python-PyMySQL
|
||||||
- apache2-utils
|
- apache2-utils
|
||||||
|
- syslinux
|
||||||
iscsi_required_packages:
|
iscsi_required_packages:
|
||||||
- open-iscsi
|
- open-iscsi
|
||||||
- gptfdisk
|
- gptfdisk
|
||||||
|
@ -28,6 +28,7 @@ required_packages:
|
|||||||
- curl
|
- curl
|
||||||
- dnsmasq
|
- dnsmasq
|
||||||
- apache2-utils
|
- apache2-utils
|
||||||
|
- isolinux
|
||||||
# NOTE(TheJulia): The above entry for dnsmasq must be the last entry in the
|
# 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
|
# package list as the installation causes name resolution changes that can
|
||||||
# temporarily block packages following it while the system is being
|
# temporarily block packages following it while the system is being
|
||||||
|
@ -31,6 +31,7 @@
|
|||||||
enabled_boot_interfaces: >-
|
enabled_boot_interfaces: >-
|
||||||
ipxe,pxe
|
ipxe,pxe
|
||||||
{%- if "ilo" in enabled_hardware_types -%},ilo-virtual-media{%- endif -%}
|
{%- 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 -%}
|
{%- if "fake-hardware" in enabled_hardware_types -%},fake{%- endif -%}
|
||||||
when: not enabled_boot_interfaces
|
when: not enabled_boot_interfaces
|
||||||
|
|
||||||
|
@ -30,6 +30,12 @@
|
|||||||
when: not hostvars[inventory_hostname][provisioning_itf_name].get('ipv4', {}).get('address')
|
when: not hostvars[inventory_hostname][provisioning_itf_name].get('ipv4', {}).get('address')
|
||||||
- name: "Configure hardware interfaces"
|
- name: "Configure hardware interfaces"
|
||||||
import_tasks: hw_types.yml
|
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"
|
- name: "Create ironic config"
|
||||||
template:
|
template:
|
||||||
src="ironic.conf.j2"
|
src="ironic.conf.j2"
|
||||||
|
@ -36,6 +36,8 @@ http_basic_auth_user_file = /etc/ironic/htpasswd
|
|||||||
log_dir = {{ ironic_log_dir }}
|
log_dir = {{ ironic_log_dir }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
isolinux_bin = {{ isolinux_bin_path }}
|
||||||
|
|
||||||
{% if enable_tls | bool %}
|
{% if enable_tls | bool %}
|
||||||
[api]
|
[api]
|
||||||
enable_ssl_api = True
|
enable_ssl_api = True
|
||||||
@ -115,6 +117,14 @@ allow_credentials = {{ enable_cors_credential_support | default('true') }}
|
|||||||
[ilo]
|
[ilo]
|
||||||
use_web_server_for_images = true
|
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 %}
|
{% if enable_inspector | bool == true %}
|
||||||
[inspector]
|
[inspector]
|
||||||
power_off = {{ power_off_after_inspection }}
|
power_off = {{ power_off_after_inspection }}
|
||||||
|
@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
features:
|
||||||
|
- |
|
||||||
|
Enables support for ``redfish-virtual-media`` in legacy (BIOS) boot mode.
|
Loading…
x
Reference in New Issue
Block a user