1Rex::Group::Lookup::YAMULs(e3r)Contributed Perl DocumentRaetxi:o:nGroup::Lookup::YAML(3)
2
3
4
6 Rex::Group::Lookup::YAML - read hostnames and groups from a YAML file
7
9 With this module you can define hostgroups out of an yaml file.
10
12 use Rex::Group::Lookup::YAML;
13 groups_yaml "file.yml";
14
16 groups_yaml($file, create_all_group => $boolean )
17 With this function you can read groups from yaml files. The optional
18 "create_all_group" option can be passed. If it is set to "true", the
19 group all, including all hosts, will also be created.
20
21 # in my_groups.yml
22 webserver:
23 - fe01
24 - fe02
25 - f03
26 backends:
27 - be01
28 - be02
29 - f03
30
31 # in Rexfile
32
33 groups_yaml('my_groups.yml');
34
35 # or
36 groups_yaml('my_groups.yml', create_all_group => TRUE);
37
38
39
40perl v5.30.2 2020-04-06 Rex::Group::Lookup::YAML(3)