Forum: CFEngine Help
Subject: Evaluation of bundlesequence with constructed mybundle(@(args))
Author: jblaine
Link to topic: https://cfengine.com/forum/read.php?3,23499,23499#msg-23499

I'm trying to do the following and failing.  Any advice would be appreciated, 
as I appear to be fighting the language.  The error obviously indicates that 
the whole string is being evaluated as a bundle name.  I basically need a way 
to "eval" @(g.bundles), or more likely start again with a totally different 
approach.

bundle common g {
    vars:
        any::
            "common_inputs" slist => {
                    "cfengine_stdlib.cf",
                    "our_stdlib.cf"
            };
        site_x::
            "ntpservers" slist => {
                    "time.foo.our.org",
                    "time.bar.our.org",
            };
            "bundles" slist => {
                    "system_ntpclient_configure(@(ntpservers))"
            };
            "inputfiles" slist => {
                    @(common_inputs),
                    "site_x.cf"
            };
}

body common control {
    bundlesequence => {
        @(g.bundles)
    };
}

cf3> Bundle "system_ntpclient_configure(@(ntpservers))" listed in the 
bundlesequence is not a defined bundle

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

Reply via email to