30 lines
1.1 KiB
Django/Jinja
30 lines
1.1 KiB
Django/Jinja
set default="1"
|
|
|
|
function load_video {
|
|
insmod efi_gop
|
|
insmod efi_uga
|
|
insmod video_bochs
|
|
insmod video_cirrus
|
|
insmod all_video
|
|
}
|
|
|
|
load_video
|
|
set gfxpayload=keep
|
|
insmod gzio
|
|
insmod part_gpt
|
|
insmod ext2
|
|
|
|
set timeout=5
|
|
### END /etc/grub.d/00_header ###
|
|
|
|
{% set is_bootstrap = (node.role == 'bootstrap') %}
|
|
{% set install_dev = '/dev/vda' if is_bootstrap else '/dev/disk/by-path/' ~ node.disk_path %}
|
|
{% set ignition_file = 'bootstrap.ign' if is_bootstrap else ('master.ign' if node.role == 'control-plane' else 'worker.ign') %}
|
|
{% set display_name = 'Bootstrap Node' if is_bootstrap else ('Control Plane Node' if node.role == 'control-plane' else 'Compute Node') %}
|
|
|
|
### BEGIN /etc/grub.d/10_linux ###
|
|
menuentry 'Install OCP {{ ocp_latest_version }} {{ display_name }}' --class fedora --class gnu-linux --class gnu --class os {
|
|
linux {{ pxe_url_path }}/{{ rhcos_kernel_file }} coreos.inst.install_dev={{ install_dev }} coreos.live.rootfs_url={{ pxe_base_url }}/{{ rhcos_rootfs_file }} coreos.inst.ignition_url={{ pxe_base_url }}/{{ ignition_file }} ignition.firstboot ignition.platform.id=metal
|
|
initrd {{ pxe_url_path }}/{{ rhcos_initramfs_file }}
|
|
}
|