Rex::Group::Lookup::INI(3pm)

Rex::Group::Lookup::INI3pm

Read host names and groups from an ini style file

Usage

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

Overview

With this module you can define host groups in an INI style file.

Exported functions

groups_file($file)

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

File example:

 # servers.ini
 [webservers]
 fe01
 fe02
 [backends]
 be[01..03]

It supports the same expressions as the group command.

Since 0.42, it also supports custom host properties if the use_server_auth feature flag is enabled:

 # servers.ini
 [webservers]
 server01 user=root password=foob4r sudo=true services=apache,memcache
 # Rexfile
 use Rex -feature => ['use_server_auth'];
 task 'list_services', group => 'webservers', sub {
   say connection->server->option('services');
 }

Releases

5 releases since Debian 9 (Stretch); the text changed 4 times.

  1. 9
  2. 10
  3. 11
  4. 12
  5. 13

From rex 1.16.0-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.