The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

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 instance

  • rackman - (mandatory) a RackMan instance

  • verbose - (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 files

  • template - specify the path of the template; can be overriden by the --pxe-template option

SEE ALSO

RackMan::Template

AUTHOR

Sebastien Aperghis-Tramoni