NAME
RackMan::Format::DHCP - Generate the DHCP config for a given RackObject
SYNOPSIS
use RackMan::Format::DHCP;
RackMan::Format::DHCP->write({
rackdev => $rackdev, # a RackMan::Device instance
rackman => $rackman, # a RackMan instance
});
DESCRIPTION
This module generates the DHCP 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--dhcp-template
option
SEE ALSO
AUTHOR
Sebastien Aperghis-Tramoni