os/ipxe/tftpboot/menu/boot.ipxe

70 lines
2.6 KiB
Plaintext
Raw Permalink Normal View History

#!ipxe
2022-12-02 14:26:25 +01:00
set ignition-server MY_IP_HERE
2022-12-02 12:24:23 +01:00
#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
2022-12-02 14:26:25 +01:00
set bm-install-target /dev/sda
2022-12-02 12:24:23 +01:00
: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 14:26:25 +01:00
set ignition-url http://${ignition-server}/os/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 14:26:25 +01:00
set ignition-url http://${ignition-server}/os/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 14:26:25 +01:00
set ignition-url http://${ignition-server}/os/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
2022-12-02 14:26:25 +01:00
set ignition-url http://${ignition-server}/os/leader-install.json
2022-12-02 12:24:23 +01:00
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
2022-12-02 14:26:25 +01:00
set ignition-url http://${ignition-server}/os/leader.json
2022-12-02 12:24:23 +01:00
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
2022-12-02 14:26:25 +01:00
set ignition-url http://${ignition-server}/os/leader.json
2022-12-02 12:24:23 +01:00
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