Doh, I'm a bit slow. I just noticed the bundle's including itself. :P Never mind. :)
Justin -----Original Message----- From: help-cfengine-boun...@cfengine.org [mailto:help-cfengine-boun...@cfengine.org] On Behalf Of Justin Lloyd Sent: Friday, May 28, 2010 9:08 AM To: Seva Gluschenko Cc: help-cfengine@cfengine.org Subject: RE: Working with a global variable defenition bundle for ALL variables Are you certain? The default promises.cf provided by Cfengine (the company) does just that: body common control { bundlesequence => { @(def.bundles_basic), "main" }; ... } bundle common def { ... "bundles_basic" slist => { "def" }; ... } Also, I cannot find any statement in the reference manual that corroborates your statement, although the following statement in section 6 may implicitly be saying that: "Common bundles are observed by every agent, whereas the agent specific bundle types are ignored by components other than the intended recipient." I suppose it would be analogous to how cf-serverd reads any server bundles and cf-monitord reads any monitor bundles. Thanks, Justin -----Original Message----- From: Seva Gluschenko [mailto:seva.glusche...@gmail.com] Sent: Friday, May 28, 2010 8:48 AM To: Justin Lloyd Cc: Tom Van de Velde; help-cfengine@cfengine.org Subject: Re: Working with a global variable defenition bundle for ALL variables Justin, There's no reason and need to include bundle common * into bundlesequence. 2010/5/28 Justin Lloyd <jll...@digitalglobe.com>: > Tom, > > It doesn't look like you have the "def" bundle in your bundlesequence. Does > including it at the beginning of the bundlesequence fix your problem? > > Justin > > -----Original Message----- > From: help-cfengine-boun...@cfengine.org > [mailto:help-cfengine-boun...@cfengine.org] On Behalf Of Tom Van de Velde > Sent: Friday, May 28, 2010 2:33 AM > To: Seva Gluschenko > Cc: help-cfengine@cfengine.org > Subject: Re: Working with a global variable defenition bundle for ALL > variables > > Seva, > > No that does not work, with the -v option you can see that he does not > resolve . > Also the class with the domain name is not defined. > > Regards, > Tom > > cf-agent -Kv | grep SET > cf3 SET domain = $(def.cfengineDomain) > cf3 SET ignore_missing_bundles true > cf3 SET ignore_missing_inputs true > my_cf3 SET domain = $(def.cfengineDomain) > my_cf3 SET ignore_missing_bundles true > my_cf3 SET ignore_missing_inputs true > my_cf3 SET ifelapsed = 15 > my_cf3 SET inform = > > > --- On Fri, 5/28/10, Seva Gluschenko <seva.glusche...@gmail.com> wrote: > >> From: Seva Gluschenko <seva.glusche...@gmail.com> >> Subject: Re: Working with a global variable defenition bundle for ALL >> variables >> To: "Tom Van de Velde" <tom_vandeve...@yahoo.com> >> Cc: help-cfengine@cfengine.org >> Date: Friday, May 28, 2010, 9:52 AM >> Tom, >> >> does this help? >> >> domain >> => "$(def.cfengineDomain)"; >> >> (arguments must be quoted, AFAIR.) >> >> 2010/5/28 Tom Van de Velde <tom_vandeve...@yahoo.com>: >> > Hi >> > >> > I was wondering if it is possible th have a >> configuriation bundle that holds ALL variables at the >> beginning of the configuration file. >> > It turns out that it is working for most of them >> except definitions for the "body common control" block, like >> for instance domain. >> > Is there anybody who has needed this kind of a >> situation before?? >> > >> > Regards, >> > Tom >> > >> > >> ####################################################### >> > # promises.cf >> > >> ####################################################### >> > >> > bundle common def{ >> > vars: >> > "policyMaster" slist => >> {"localhost"}; >> > "cfengineDomain" string => >> "universe"; >> > } >> > >> > body common control{ >> > domain => >> $(def.cfengineDomain); >> > bundlesequence => { >> > >> "update", >> > >> "clean_input", >> > >> "garbage_collection", >> > >> "main", >> > >> "cfengine", >> > >> "cluster", >> > >> "sudo" >> > }; >> > >> > inputs => { >> > >> "update.cf", >> > >> "site.cf", >> > >> "library.cf", >> > >> "cf3.cluster", >> > >> "cf3.sudo" >> > }; >> > version => >> "0.0.1"; >> > >> > ignore_missing_bundles => "true"; >> > ignore_missing_inputs => "true"; >> > output_prefix => "my_cf3"; >> > } >> > >> > >> > >> > _______________________________________________ >> > Help-cfengine mailing list >> > Help-cfengine@cfengine.org >> > https://cfengine.org/mailman/listinfo/help-cfengine >> > >> >> >> >> -- >> SY, Seva Gluschenko. >> > > > > _______________________________________________ > Help-cfengine mailing list > Help-cfengine@cfengine.org > https://cfengine.org/mailman/listinfo/help-cfengine > > This electronic communication and any attachments may contain confidential > and proprietary > information of DigitalGlobe, Inc. If you are not the intended recipient, or > an agent or employee > responsible for delivering this communication to the intended recipient, or > if you have received > this communication in error, please do not print, copy, retransmit, > disseminate or > otherwise use the information. Please indicate to the sender that you have > received this > communication in error, and delete the copy you received. DigitalGlobe > reserves the > right to monitor any electronic communication sent or received by its > employees, agents > or representatives. > > -- SY, Seva Gluschenko. This electronic communication and any attachments may contain confidential and proprietary information of DigitalGlobe, Inc. If you are not the intended recipient, or an agent or employee responsible for delivering this communication to the intended recipient, or if you have received this communication in error, please do not print, copy, retransmit, disseminate or otherwise use the information. Please indicate to the sender that you have received this communication in error, and delete the copy you received. DigitalGlobe reserves the right to monitor any electronic communication sent or received by its employees, agents or representatives. _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine