os/ipxe/tftpboot/menu.ipxe

39 lines
1.3 KiB
Plaintext
Raw Normal View History

2022-12-01 17:59:08 +01:00
#!ipxe
:start
menu Cadoles PXE Boot Options
item shell iPXE shell
item klead CadolesKube Leader
item kmaster CadolesKube Master
item knode CadolesKube Node
item exit Exit to BIOS
choose --default exit --timeout 10000 option && goto ${option}
:shell
shell
:klead
set base-url http://stable.release.flatcar-linux.net/amd64-usr/current
set ignition-url http://192.168.10.177:8001/leader.json
kernel ${base-url}/flatcar_production_pxe.vmlinuz initrd=flatcar_production_pxe_image.cpio.gz flatcar.first_boot=1 ignition.config.url=${ignition-url}
initrd ${base-url}/flatcar_production_pxe_image.cpio.gz
boot
:kmaster
set base-url http://stable.release.flatcar-linux.net/amd64-usr/current
set ignition-url http://192.168.10.177:8001/master.json
kernel ${base-url}/flatcar_production_pxe.vmlinuz initrd=flatcar_production_pxe_image.cpio.gz flatcar.first_boot=1 ignition.config.url=${ignition-url}
initrd ${base-url}/flatcar_production_pxe_image.cpio.gz
:knode
set base-url http://stable.release.flatcar-linux.net/amd64-usr/current
set ignition-url http://192.168.10.177:8001/worker.json
kernel ${base-url}/flatcar_production_pxe.vmlinuz initrd=flatcar_production_pxe_image.cpio.gz flatcar.first_boot=1 ignition.config.url=${ignition-url}
initrd ${base-url}/flatcar_production_pxe_image.cpio.gz
:exit
exit