Fix efi file paths in RHEL

The file paths are slightly different (redhat instead of centos) in
RHEL.

Backport note:
This change uses legacy facts instead of structured facts to make
the implementation consistent with the old codes.

Change-Id: Ib9c386d713a4845ebafdfe5377a016e5effa0de0
(cherry picked from commit fe1774fbb6)
(cherry picked from commit b6a3f2872c)
(cherry picked from commit 14787fb98c)
This commit is contained in:
Takashi Kajinami
2023-05-09 20:13:07 +09:00
parent 32a6c1fd1d
commit f169e76453

View File

@@ -71,9 +71,17 @@ 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/centos/grubx64.efi'
$shim_package = 'shim'
$shim_file = '/boot/efi/EFI/centos/shimx64.efi'
case $::operatingsystem {
'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'
}
}
}
'Debian': {
$common_package_name = 'ironic-common'