Rex::CMDB - Function to access the CMDB.
This module exports a function to access a CMDB via a common interface.
task "prepare", "server1", sub { my $virtual_host = cmdb("vhost"); my %all_information = cmdb; };
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.
To install Rex, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Rex
CPAN shell
perl -MCPAN -e shell install Rex
For more information on module installation, please visit the detailed CPAN module installation guide.