Forum: Cfengine Help
Subject: Re: usebundle and slist of sub-bundles
Author: [email protected]
Link to topic: https://cfengine.com/forum/read.php?3,18881,18974#msg-18974
Hi,
An example from reference:
body common control
{
bundlesequence => { "example" };
}
bundle agent example
{
vars:
"userlist" slist => { "mark", "jeang", "jonhenrik", "thomas", "eben" };
methods:
"any" usebundle => subtest("$(userlist)");
}
###########################################
bundle agent subtest(user)
{
commands:
"/bin/echo Fix $(user)";
reports:
linux::
"Finished doing stuff for $(user)";
}
/Eduard
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine