Rex::Group::Lookup::YAML(3pm)

Rex::Group::Lookup::YAML3pm

Read hostnames and groups from a yaml file

Usage

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

Overview

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);

Releases

5 releases since Debian 9 (Stretch); the text changed 4 times.

  1. 9
  2. 10
  3. 11
  4. 12
  5. 13

From rex 1.16.0-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.