Vagrant script to create a foreman 1.5 VM
After the Foreman is up and running, during the very first interface access, please do this following:
- From the top menu bar, Host -> Provisioning Templates
- Jump to page 2, then select "PXELinux global default"
- At the very bottom add these lines:
LABEL discovery MENU LABEL Foreman Discovery MENU DEFAULT KERNEL /boot/vmlinuz0 APPEND initrd=/boot/initrd0.img foreman.url=https://foreman.cloudcomplab.ch root=live:/foreman.iso IPAPPEND 2
- Change 'ONTIMEOUT local' -> 'ONTIMEOUT discovery' on line 13
- Save the changes
- From the top menu bar, Infrastructure -> Provisioning setup
- Go through the steps, providing all known values as much as possible
- For the subnet, choose the foreman machine IP as the gateway for the subnet
- NOTE: THERE IS NO NEED TO EXECUTE THE FOREMAN INSTALL COMMAND SUGGESTED IN STEP 3, just click next
- Just choose the Operating System setup option suggested by the system, just select the 'Ubuntu mirror' as the media source and choose next.
That is all. Your foreman is all configured to do host discovery and provisioning.