I have a lab of servers that need to be rebuilt frequently. I currently have a PXE server on a special vlan that can automatically install a single OS without human interaction.
How would I expand this to allow specific servers to get a specific OS installed automatically. Ie server A, B, C would get CentOS 7, server D, E gets RHEL 8, and server F gets CentOS Stream.
I can add OS versions to a boot menu in TFTP but then a human has to select the OS version. I tried to use expect to make the selection over serial, but it was cumbersome and prone to failure.
Is there someway to whitelist OS version to MAC address using PXE or another technology that can achieve the same goal?