logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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.

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.yml
         webserver:
          - fe01
          - fe02
          - f03
         backends:
          - be01
          - be02
          - f03

         # in Rexfile

         groups_yaml('my_groups.yml');

         # or
         groups_yaml('my_groups.yml', create_all_group => TRUE);

perl v5.40.0                                       2025-02-06                      Rex::Group::Lookup::YAML(3pm)

Name

       Rex::Group::Lookup::YAML - read hostnames and groups from a YAML file

Synopsis

        use Rex::Group::Lookup::YAML;
        groups_yaml "file.yml";

See Also