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

neilhwatson Wrote:
-------------------------------------------------------
> What is your intention with this:
> system_ntpclient_configure(@(ntpservers) ?

Hi Neil,

I want to pass a list of NTP servers to "bundle agent 
system_ntpclient_configure" so that the bundle can use them to populate an NTP 
config file.

I define @(g.bundles), my body common control bundlesequence, based on classes 
in body common g.

This two facts combined mean:


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

body common g {
    vars:

        any::

            "bundles" slist => { "base_empty" };

        site_x::

            "ntpservers" slist => { "blah", "foo" };

            "bundles" slist => {
                @(bundles), 
                system_ntpclient_configure(@(ntpservers)),
            };
}


Adding "policy => "free"" isn't buying me anything other than all of a sudden 
my command-line-defined class "site_x" is causing just the base_empty 
bundlesequence to be run.

> Try this thread. 
> 
> https://cfengine.com/forum/read.php?3,22882,22882#
> msg-22882

I've spent the last hour and a half perusing those threads and trying things 
like crazy.  I either get the error indicated in the original post or my site_x 
bundlesequence (and inputs) don't get hit, even though -v shoes site_x as a 
defined class.

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

Reply via email to