#!ipxe

set server_ip 10.10.50.10
set base_url http://${server_ip}

menu Provision Server
item type_a Install Ubuntu 24.04 - Type A workstation
item type_b Install Ubuntu 24.04 - Type B workstation
item type_c Install Ubuntu 24.04 - Type C mini PC
item type_d Install Ubuntu 24.04 - Type D server
item shell iPXE shell
item reboot Reboot

choose --default type_a --timeout 10000 target && goto ${target}

:type_a
kernel ${base_url}/images/ubuntu-24.04/vmlinuz ip=dhcp url=${base_url}/images/ubuntu-24.04/ubuntu-24.04-live-server-amd64.iso autoinstall ds=nocloud-net;s=${base_url}/autoinstall/ubuntu-24.04/type-a/
initrd ${base_url}/images/ubuntu-24.04/initrd
boot

:type_b
kernel ${base_url}/images/ubuntu-24.04/vmlinuz ip=dhcp url=${base_url}/images/ubuntu-24.04/ubuntu-24.04-live-server-amd64.iso autoinstall ds=nocloud-net;s=${base_url}/autoinstall/ubuntu-24.04/type-b/
initrd ${base_url}/images/ubuntu-24.04/initrd
boot

:type_c
kernel ${base_url}/images/ubuntu-24.04/vmlinuz ip=dhcp url=${base_url}/images/ubuntu-24.04/ubuntu-24.04-live-server-amd64.iso autoinstall ds=nocloud-net;s=${base_url}/autoinstall/ubuntu-24.04/type-c/
initrd ${base_url}/images/ubuntu-24.04/initrd
boot

:type_d
kernel ${base_url}/images/ubuntu-24.04/vmlinuz ip=dhcp url=${base_url}/images/ubuntu-24.04/ubuntu-24.04-live-server-amd64.iso autoinstall ds=nocloud-net;s=${base_url}/autoinstall/ubuntu-24.04/type-d/
initrd ${base_url}/images/ubuntu-24.04/initrd
boot

:shell
shell

:reboot
reboot
