Simplify logic to locate efi/shim file

... using the operating system name. This may allow the module to work
with untested distributions such as Rocky.

Change-Id: Idd73ccd4d5366ccbb9373d7e3bfcba120fc238bb
This commit is contained in:
Takashi Kajinami 2023-12-11 22:26:17 +09:00
parent 4ea8a53abf
commit 0e78daf80d
1 changed files with 2 additions and 10 deletions

View File

@ -73,17 +73,9 @@ class ironic::params {
$syslinux_path = '/tftpboot'
$syslinux_files = ['pxelinux.0', 'chain.c32', 'ldlinux.c32']
$grub_efi_package = 'grub2-efi-x64'
$grub_efi_file = "/boot/efi/EFI/${downcase($facts['os']['name'])}/grubx64.efi"
$shim_package = 'shim'
case $facts['os']['name'] {
'RedHat': {
$grub_efi_file = '/boot/efi/EFI/redhat/grubx64.efi'
$shim_file = '/boot/efi/EFI/redhat/shimx64.efi'
}
default: {
$grub_efi_file = '/boot/efi/EFI/centos/grubx64.efi'
$shim_file = '/boot/efi/EFI/centos/shimx64.efi'
}
}
$shim_file = "/boot/efi/EFI/${downcase($facts['os']['name'])}/shimx64.efi"
}
'Debian': {
$common_package_name = 'ironic-common'