NAME
Rex::Group::Lookup::YAML - read hostnames and groups from a YAML file
DESCRIPTION
With this module you can define hostgroups out of an yaml file.
SYNOPSIS
use Rex::Group::Lookup::YAML;groups_yaml "file.yml";
EXPORTED FUNCTIONS
groups_yaml($file, create_all_group => $boolean )
With this function you can read groups from yaml files. The optional "create_all_group" option can be passed. If it is set to "true", the group all, including all hosts, will also be created.
# in my_groups.ymlwebserver:- fe01- fe02- f03backends:- be01- be02- f03# in Rexfilegroups_yaml('my_groups.yml');# orgroups_yaml('my_groups.yml', create_all_group => TRUE);