Chef cookbook to install a PXE server
Include pxeserver
in your node's run_list
:
{
"run_list": [
"recipe[pxe::default]"
]
}
Add the following chunk to your existing ISC dhcpd.conf file:
next-server X.X.X.X;
if exists user-class and ( option user-class = "iPXE" ) {
filename "http://X.X.X.X:6767/boot.ipxe";
}
else {
filename "undionly.kpxe";
}
Change X.X.X.X to the IP of the pxeserver
node.
Adjust the port accordingly: default: 6767, can be changed in your node's attributes
:
{
"pxeserver": {
"httpdport": 6767
}
}