Table of Contents
usemodule
Table of Contents
Prototype: usemodule(module, args)
Return type: boolean
Description: Execute CFEngine module script module
with args
, and
return whether successful.
The module script is expected to be located in the registered modules
directory, WORKDIR/modules
.
Arguments:
Example:
bundle agent test
{
classes:
# returns $(user)
"done" expression => usemodule("getusers","");
commands:
"/bin/echo" args => "test $(user)";
}