S├ębastien Aperghis-Tramoni
and 1 contributors

NAME

RackMan::Tasks - High-level tasks

DESCRIPTION

This module provides high-level tasks for working on RackObjects. It especially implements the actions documented in rack under the methods named task_$action.

METHODS

All tasks expect arguments to be given as a hashref, the following ones being common to all tasks:

  • rackman - RackMan instance

  • stdout - indicate that the task is executed from the rack command, and as such should send results to stdout

task_diff

Print the difference between the actual and expected configuration of the device corresponding to the given RackObject

task_dump

Print or return (an extract of) the internal structure of the RackObject.

The task prints on standard output when option stdout is set, otherwise returns the result.

Arguments

  • as - specify the format: json, perl, yaml

task_info

Print information about the RackObject

task_list

Print the list the RackObject of the given type (server, pdu, switch or all)

task_push

Push the configuration to the device corresponding to the given RackObject

task_write

Generate and write the configuration files for the given RackObject

AUTHOR

Sebastien Aperghis-Tramoni (sebastien@aperghis.net)