NAME
RackMan::Format::PXE - Generate the PXE config for a given RackObject
SYNOPSIS
use RackMan::Format::PXE;
RackMan::Format::PXE->write({
rackdev => $rackdev, # a RackMan::Device instance
rackman => $rackman, # a RackMan instance
});
DESCRIPTION
This module generates the PXE configuration file for a given RackObject, based on a template provided by the user.
METHODS
write
Generate the file.
Arguments
Arguments are expected as a hashref with the following keys:
rackdev
- (mandatory) a RackMan::Device instancerackman
- (mandatory) a RackMan instanceverbose
- (optional) boolean, set to true to be verbose
TEMPLATE PARAMETERS
See "TEMPLATE PARAMETERS" in RackMan::Template for more details about the available parameters.
CONFIGURATION
This module gets its configuration from the [format:dhcp]
section of the main rack.conf, with the following parameters:
path
- specify the location to store the generated filestemplate
- specify the path of the template; can be overriden by the--pxe-template
option
SEE ALSO
AUTHOR
Sebastien Aperghis-Tramoni