View on
MetaCPAN
Jan Gehring > Rex > Rex::Group::Lookup::File

Download:
Rex-1.5.0.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: v1.5.0   Source   Latest Release: Rex-1.5.99_02

NAME ^

Rex::Group::Lookup::File - read hostnames from a file.

DESCRIPTION ^

With this module you can define hostgroups out of a file.

SYNOPSIS ^

 use Rex::Group::Lookup::File;
 group "webserver" => lookup_file("./hosts.lst");

EXPORTED FUNCTIONS ^

lookup_file($file)

With this function you can read hostnames from a file. Every hostname in one line.

 group "webserver"  => lookup_file("./webserver.lst");
 group "mailserver" => lookup_file("./mailserver.lst");
syntax highlighting: