Actions
Fetch boot files via http instead of TFTP » History » Revision 8
« Previous |
Revision 8/26
(diff)
| Next »
Ohad Levy, 02/27/2013 02:07 PM
Deal with updated pxeboot files without the need to delete or re-download them¶
- In your foreman instance, go to "Provisioning templates".Create a new template (kind: PXELinux) and have the following in the body:
( You'll need to have the ipxe.lkrn file in your tftpboot directory. Can be downloaded from here attachment:ipxe.lkrndefault linux label linux IPAPPEND 2 kernel ipxe.lkrn append dhcp && chain <%25= foreman_url('gPXE') %25>
- Make sure you have a template (kind: gPXE) with the following in the body:
#!gpxe kernel <%25= "#{@host.url_for_boot(:kernel)}" %25> ks=<%25= foreman_url("provision")%25> initrd <%25= "#{@host.url_for_boot(:initrd)}" %25> boot
- Make sure you have your (or default) kickstart template (kind: provision).
- In the association tab of the above templates select the desired "applicable operating systems".
- Go to "Operating Systems" and in the "Templates" tab select the respective "provision", "gPXE" and "PXELinux" templates (should be 3 templates in total).
- Now you can either assign the OS to some host group or simply edit some host and change its OS.
- That's it - verify it works!
Updated by Ohad Levy almost 12 years ago · 26 revisions