NAME

Rex::CMDB - Function to access the CMDB.

DESCRIPTION

This module exports a function to access a CMDB via a common interface.

SYNOPSIS

task "prepare", "server1", sub {
  my $virtual_host = cmdb("vhost");
  my %all_information = cmdb;
};

EXPORTED FUNCTIONS

cmdb([$item, $server])

Function to query a CMDB. If this function is called without $item it should return a hash containing all the information for the requested server. If $item is given it should return only the value for $item.

task "prepare", "server1", sub {
  my $virtual_host = cmdb("vhost");
  my %all_information = cmdb;
};