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)
(cherry picked from commit f169e76453)
(cherry picked from commit 61f8ec1943)
This commit is contained in:
Takashi Kajinami 2023-05-09 20:13:07 +09:00
parent 39ba8bc1ca
commit edf93f985a

View File

@ -69,9 +69,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'