Forum: CFEngine Help
Subject: Method bundles in slists passed to the bundlesequence
Author: crd
Link to topic: https://cfengine.com/forum/read.php?3,23644,23644#msg-23644

Hello,

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:


bundle common g{
        vars:
                "common_bundles" slist  =>      {"test('test string')"};
}
body common control
{
        bundlesequence => {"@(g.common_bundles)"};
}

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



If I simply do 

        bundlesequence => {test('less')};
}


it works fine. Is this just a limitation of the implementation of slists? Or is 
there another way?

I'm hoping to avoid using usebundle for clarity of code

Thanks.

_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to