Rex::Helper::Rexfile::ParamLookup(3pm)

Rex::Helper::Rexfile::ParamLookup3pm

A command to manage task parameters. a command to manage task parameters. additionally it register the parameters as template values. this module also looks inside a cmdb (if present) for a valid key.

Usage

 task "setup", sub {
   my $var = param_lookup "param_name", "default_value";
 };

Lookup

First param_lookup checks the task parameters for a valid parameter. If none is found and if a CMDB is used, it will look inside the cmdb.

If your module is named "Rex::NTP" than it will first look if the key "Rex::NTP::param_name" exists. If it doesn't exists it checks for the key "param_name".

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.