Forum: Cfengine Help
Subject: Re: Handles vs Classes - Scope Intersection
Author: Seva Gluschenko
Link to topic: https://cfengine.com/forum/read.php?3,18170,18172#msg-18172
Your question is quite complex and requires certain clarifications before any
advices can be given. Anyway,
[*] Handles are only available in Nova
[*] It seems like you're messing bundles and bodies. If you want to define
variables in bundle common, don't name it "control" not to mess it with control
body.
In your example, to make it work it must be like follows:
bundle common control {
vars:
#. Core - Minimal (Don't EVER break these!)...
"bundle" slist => { "Client", "Server" };
"inputs" slist => {
"lib-conf.cf", #. User configurations
"lib-core.cf", #. System variables and library functions
"cf-agent.cf", #. Starting point for cfengine clients & servers
"cf-serverd.cf", #. Cfengine server configuration
}
body common control {
bundlesequence => { @(control.bundle) };
inputs => { @(control.inputs) } ;
}
I'm not sure the common bundle can be named "control", though. I believe,
'control' is the reserved word. Also, I don't see any sence in making an array
of slists here. The Cfengine has limited depth of variables expansion, so the
thing can become broken at the certain stage.
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine