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
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
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
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.
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
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
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