Scroll to navigation

Rex::Group::Lookup::INI(3pm) User Contributed Perl Documentation Rex::Group::Lookup::INI(3pm)

NAME

Rex::Group::Lookup::INI - read hostnames and groups from a INI style file

DESCRIPTION

With this module you can define hostgroups out of an ini style file.

SYNOPSIS

 use Rex::Group::Lookup::INI;
 groups_file "file.ini";

EXPORTED FUNCTIONS

groups_file($file)

With this function you can read groups from INI style files.

File example:

 [webserver]
 fe01
 fe02
 f03
    
 [backends]
 be01
 be02

It also supports hostname expressions like [1..3], [1,2,3] and [1..5/2].

2018-02-01 perl v5.26.1