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