Rex::Group::Lookup::YAML - read hostnames and groups from a YAML file
With this module you can define hostgroups out of an yaml file.
use Rex::Group::Lookup::YAML; groups_yaml "file.yml";
With this function you can read groups from yaml files.
File Example:
webserver: - fe01 - fe02 - f03 backends: - be01 - be02 - f03
groups_yaml($file); groups_yaml($file, create_all_group => TRUE);
To install Rex, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Rex
CPAN shell
perl -MCPAN -e shell install Rex
For more information on module installation, please visit the detailed CPAN module installation guide.