Cfengine Help: Re: Global vars issue

2011-03-09 Thread no-reply
Forum: Cfengine Help Subject: Re: Global vars issue Author: berntjernberg Link to topic: https://cfengine.com/forum/read.php?3,20975,21007#msg-21007 > That was false advice. I meant "user_name" slist => { @(g.user_name) }; Thanks for pointing

Re: Global vars issue

2011-03-08 Thread Mark Burgess
Well, nothing is obvious from documentation I suspect, no matter how hard we try. But it also doesn't say that you do not have to include them the first example I found includes the common bundles... http://www.cfengine.org/manuals/cf3-reference.html#Global-and-local-classes On 03/08/2011 09

Re: Global vars issue

2011-03-08 Thread Michael Hoskins (michoski)
Is this obvious from documentation (e.g. why did Seva have to 'figure out' common functionality)? Mark Burgess wrote: Not strictly true. There is no reason why common bundles should not be included in the bundlesequence. Indeed, it increases the chances of variables being expanded with multipl

Re: Global vars issue

2011-03-08 Thread Mark Burgess
Not strictly true. There is no reason why common bundles should not be included in the bundlesequence. Indeed, it increases the chances of variables being expanded with multiple indirection. If any reports are made in common bundles these will only be executed if the bundles are in the sequence.

Re: Global vars issue

2011-03-08 Thread Seva Gluschenko
That was false advice. Common bundles aren't included into the bundlesequence. What it meant to be done is to declare a local slist inside the target bundle as follows: bundle agent foo { vars: "user_name" slist => { @(g.user_name) }; ... } 2011/3/7 Mikhail Gusarov : > On 07.03.2011 00:58, J

Cfengine Help: Re: Global vars issue

2011-03-07 Thread no-reply
Forum: Cfengine Help Subject: Re: Global vars issue Author: berntjernberg Link to topic: https://cfengine.com/forum/read.php?3,20975,20977#msg-20977 Hi, Import them to local bundle first with vars: "username" slist => "$(g.user_name)"; and then

Re: Global vars issue

2011-03-07 Thread Mikhail Gusarov
On 07.03.2011 00:58, Jones, Stephen (MAS) wrote: > bundle common g { Have you got this bundle added to the bundlesequence before the bundle that contains aforementioned commands promise? -- Mikhail Gusarov ___ Help-cfengine mailing list Help-cfengine