Rex::Helper::Rexfile::ParamLookup(3) A command to manage task parameters.


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


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''.