Feature #846
closed
Add support for solaris tftp pxeboot configuration files
Added by Paul Kelly over 13 years ago.
Updated over 13 years ago.
Description
Linux downloads syslinux.cfg/XX-XX-XX-XX-XX-XX-XX pxe configuration file whilst solaris uses menu.lst.XXXXXXXXXXXXXX configuration files.
The easiest solution is to add an API version, passed as a HTML header, which allows for the writing of files, with the correct filename format, to arbitrary locations in the tftpboot directory structure.
After a discussion with Ohad it was agreed that the API should be extended to support {post,get,delete} /tftp/{jumpstart,kickstart}/:mac and that the old API should be supported via an internal rewrite from tftp/:mac => tftp/kickstart/:mac. Luckily the names jumstart and kickstart are already supported in the family code in foreman as @operatingsystem.pxe_type.
Also DRYed some code
Note that due to the use of :before with a regexp this implementation now requires sinatra 1.1.0. Sinatra 1.0 will no longer be sufficient.
Switched names to use syslinux and pxegrub and refactored the code so as not to require sinatra 1.1.0
Rebased and fixed an issue with interoperability with earlier revisions of Foreman. This now works fine with a Foreman that does not understand variants.
rebased and added create_default support
- Target version set to 0.2
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Also available in: Atom
PDF