os/ipxe/tftpboot/menu.ipxe

69 lines
2.5 KiB
Plaintext
Raw Normal View History

#!ipxe
2022-12-02 12:24:23 +01:00
set ignition-server 192.168.40.3
#set base-url http://${ignition-server}/flatcar
set base-url http://stable.release.flatcar-linux.net/amd64-usr/current
set vm-install-target /dev/vda
:start
menu Cadoles PXE Boot Options
2022-12-02 12:24:23 +01:00
item gap1 -------------------- CadolesKube --------------------
item klead Run Leader (RAM)
item kmaster Run Master (RAM)
item knode Run Node (RAM)
item gap2 -----------------------------------------------------
item iklead Install Leader (VM)
item ikmaster Install Master (VM)
item iknode Install Node (VM)
item gap2 -----------------------------------------------------
item shell iPXE shell
2022-12-02 12:24:23 +01:00
item gap3 -----------------------------------------------------
item exit Exit to BIOS
choose --default exit --timeout 10000 option && goto ${option}
:shell
shell
:klead
2022-12-02 12:24:23 +01:00
set ignition-url http://${ignition-server}/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
2022-12-02 12:24:23 +01:00
set ignition-url http://${ignition-server}/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
:knode
2022-12-02 12:24:23 +01:00
set ignition-url http://${ignition-server}/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
2022-12-02 12:24:23 +01:00
:iklead
set ignition-url http://${ignition-server}/leader-install.json
kernel ${base-url}/flatcar_production_pxe.vmlinuz initrd=flatcar_production_pxe_image.cpio.gz flatcar.first_boot=1 flatcar.target=${vm-install-target} ignition.config.url=${ignition-url}
initrd ${base-url}/flatcar_production_pxe_image.cpio.gz
boot
:iknode
set ignition-url http://${ignition-server}/leader.json
kernel ${base-url}/flatcar_production_pxe.vmlinuz initrd=flatcar_production_pxe_image.cpio.gz flatcar.first_boot=1 flatcar.target=${vm-install-target} ignition.config.url=${ignition-url}
initrd ${base-url}/flatcar_production_pxe_image.cpio.gz
boot
:iknode
set ignition-url http://${ignition-server}/leader.json
kernel ${base-url}/flatcar_production_pxe.vmlinuz initrd=flatcar_production_pxe_image.cpio.gz flatcar.first_boot=1 flatcar.target=${vm-install-target} ignition.config.url=${ignition-url}
initrd ${base-url}/flatcar_production_pxe_image.cpio.gz
boot
:exit
2022-12-02 12:24:23 +01:00
exit