> Hello,

Hi!

> I'm trying to construct a bundle sequence using an slist which contains 
> bundle names. Some of the bundles are parameterized and I can't find a way to 
> get these to work with the list. Below is an example:

Welcome to hell.  I tried to do the same obviously reasonable
thing.  It won't work, best I can tell.  One option (which
I settled on, and believe is the only way to do what we want):

bundle agent test(x) {
     reports:
         cfengine_3::
             "testreport: $(x)";
}

bundle agent mymain {
     methods:
         "foo" usebundle => test('foobar');
}

body common control {
     bundlesequence => { "mymain" };
}

Sad, really.  I'd like to hear if you figure out something.

Search the forums/list for jblaine in the last 3 weeks for
the thread(s).
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to