Updating Global PXE Localboot template

I'm currently implementing Foreman on some VM's and I have some servers
that have gone through the process of being build and a MAC specific file
has been deployed to the TFTP directory that contains the contents of the Global
PXE Localboot template file.

I now wish to update this Global PXE Localboot template to include a
couple more options, like a Memtest for each server. This is fine for the
pxelinux.cfg/default file since this gets updated when you do "Build PXE
Default" from the provisioning templates section, but if you have a set of
servers that have already been built and have MAC specific boot files then
the contents of these files are never overwritten and it seems like there
are no options to force update these files. Is there any way that I'm
missing to force update the MAC specific files with the contents of the Global
PXE Localboot template file?

I've just found a little bit of a workaround where you can move hosts into
another environment and back again which will force a rebuild of the MAC
specific template, but it would be better if there was some way of doing
this without moving hosts around in environments.

··· On Friday, 8 November 2013 10:31:49 UTC, Paul Oyston wrote: > > I'm currently implementing Foreman on some VM's and I have some servers > that have gone through the process of being build and a MAC specific file > has been deployed to the TFTP directory that contains the contents of the Global > PXE Localboot template file. > > I now wish to update this Global PXE Localboot template to include a > couple more options, like a Memtest for each server. This is fine for the > pxelinux.cfg/default file since this gets updated when you do "Build PXE > Default" from the provisioning templates section, but if you have a set of > servers that have already been built and have MAC specific boot files then > the contents of these files are never overwritten and it seems like there > are no options to force update these files. Is there any way that I'm > missing to force update the MAC specific files with the contents of the Global > PXE Localboot template file? >

Thats a great usecase, and ties in with Dominic's mail to Frederick just
now (also on this list). Could you raise an issue at
http://projects.theforeman.org ? Thanks!

Greg

··· On 8 November 2013 10:41, Paul Oyston wrote:

I’ve just found a little bit of a workaround where you can move hosts into
another environment and back again which will force a rebuild of the MAC
specific template, but it would be better if there was some way of doing
this without moving hosts around in environments.

Sure, I'll post an issue there. I should also note that a bulk update
across several hosts, changing the environment then back again, does not
force a re-write of the MAC specific PXEboot config which may highlight
another issue.

··· On Friday, 8 November 2013 12:29:32 UTC, Greg Sutcliffe wrote: > > On 8 November 2013 10:41, Paul Oyston <pa...@synforge.com >wrote: > >> I've just found a little bit of a workaround where you can move hosts >> into another environment and back again which will force a rebuild of the >> MAC specific template, but it would be better if there was some way of >> doing this without moving hosts around in environments. >> > > Thats a great usecase, and ties in with Dominic's mail to Frederick just > now (also on this list). Could you raise an issue at > http://projects.theforeman.org ? Thanks! > > Greg >