1Rex::Group::Lookup::INIU(s3e)r Contributed Perl DocumentaRteixo:n:Group::Lookup::INI(3)
2
3
4
6 Rex::Group::Lookup::INI - read host names and groups from an INI style
7 file
8
10 With this module you can define host groups in an INI style file.
11
13 use Rex::Group::Lookup::INI;
14 groups_file 'file.ini';
15
17 groups_file($file)
18 With this function you can read groups from INI style files.
19
20 File example:
21
22 # servers.ini
23 [webservers]
24 fe01
25 fe02
26
27 [backends]
28 be[01..03]
29
30 It supports the same expressions as the group command.
31
32 Since 0.42, it also supports custom host properties if the
33 use_server_auth feature flag is enabled:
34
35 # servers.ini
36 [webservers]
37 server01 user=root password=foob4r sudo=true services=apache,memcache
38
39 # Rexfile
40 use Rex -feature => ['use_server_auth'];
41
42 task 'list_services', group => 'webservers', sub {
43 say connection->server->option('services');
44 }
45
46
47
48perl v5.38.0 2023-08-07 Rex::Group::Lookup::INI(3)