Make ipxe bootfile name configurable

This is a follow up of 3864e15998 and
allows using a different name for ipxe bootfile. This is useful if
a user needs to switch back to ipxe*.efi from ipxe-snponly*.efi for
some reasons.

Change-Id: I565e3ae6388812c358e86fac49b17e0cce97b9df
This commit is contained in:
Takashi Kajinami 2021-07-21 08:28:33 +09:00
parent 1904baa3cc
commit d99a51d17b
2 changed files with 24 additions and 11 deletions

View File

@ -55,18 +55,25 @@
# (optional) Beginning of the source file name which is copied to
# $tftproot/ipxe.efi. Setting this to 'ipxe-snponly' on CentOS8 would result
# in the source file being /usr/share/ipxe/ipxe-snponly-x86_64.efi
# Defaults to 'ipxe'
# Defaults to 'ipxe-snponly'
#
# [*uefi_ipxe_bootfile_name*]
# (optional) Name of efi file used to boot servers with iPXE + UEFI. This
# should be consistent with the uefi_ipxe_bootfile_name parameter in pxe
# driver.
# Defaults to 'snponly.efi'
#
class ironic::pxe (
$package_ensure = 'present',
$tftp_root = '/tftpboot',
$http_root = '/httpboot',
$http_port = '8088',
$syslinux_path = $::ironic::params::syslinux_path,
$syslinux_files = $::ironic::params::syslinux_files,
$tftp_bind_host = undef,
$enable_ppc64le = false,
$ipxe_name_base = 'ipxe-snponly',
$package_ensure = 'present',
$tftp_root = '/tftpboot',
$http_root = '/httpboot',
$http_port = '8088',
$syslinux_path = $::ironic::params::syslinux_path,
$syslinux_files = $::ironic::params::syslinux_files,
$tftp_bind_host = undef,
$enable_ppc64le = false,
$ipxe_name_base = 'ipxe-snponly',
$uefi_ipxe_bootfile_name = 'snponly.efi'
) inherits ironic::params {
include ironic::deps
@ -181,7 +188,7 @@ class ironic::pxe (
require => Anchor['ironic-inspector::install::end'],
}
file { "${tftp_root_real}/snponly.efi":
file { "${tftp_root_real}/${uefi_ipxe_bootfile_name}":
ensure => 'file',
seltype => 'tftpdir_t',
owner => 'ironic',

View File

@ -0,0 +1,6 @@
---
features:
- |
The new ``ironic::pxe::uefi_ipxe_bootfile_name`` parameter has been added.
This parameter is used to determine name of the efi file used to boot nodes
with UEFI + iPXE.