Forum: Cfengine Help
Subject: Re: Cfengine Help: usebundle and slist of sub-bundles
Author: joke
Link to topic: https://cfengine.com/forum/read.php?3,18882,18889#msg-18889
Works perfectly without quotes.
Thanks.
___
Help-cfengine mailing list
Help
Forum: Cfengine Help
Subject: Re: Cfengine Help: usebundle and slist of sub-bundles
Author: mark
Link to topic: https://cfengine.com/forum/read.php?3,18882,18887#msg-18887
You should not put quotes around the function object..
M
___
Help-cfengine
Forum: Cfengine Help
Subject: Re: Cfengine Help: usebundle and slist of sub-bundles
Author: joke
Link to topic: https://cfengine.com/forum/read.php?3,18882,18886#msg-18886
I just tried this using the 3.1.0b2 (debian unstable package) but cf-agent
reports an error.
Undeclared promise bundle
This will work as of 3.1.0, but do it this way instead (auto-iteration is
always through a scalar reference to a list):
bundle agent some_bundle {
vars:
"bundle_list" slist => some_function_generating_slist(...);
methods:
"any" usebundle => "$(bundle_list)";
}
-Dan
On O
Forum: Cfengine Help
Subject: usebundle and slist of sub-bundles
Author: joke
Link to topic: https://cfengine.com/forum/read.php?3,18881,18881#msg-18881
Hi,
I'm trying to figure out if there is a way to use the "usebundle" method with
slists variables. The slist contains a list of sub-bundles wh