gt; Sent: Monday, May 17, 2010 4:43 PM
> To: Justin Lloyd
> Cc: help-cfengine@cfengine.org
> Subject: Re: Problem defining classes from an slist
>
> I am not sure what you're doing worng. The following bundle works just
> fine
> for me... I did "cf-agent -Kb f
engine.org] On Behalf Of Justin Lloyd
Sent: Monday, May 17, 2010 5:29 PM
To: Daniel V Klein
Cc: help-cfengine@cfengine.org
Subject: RE: Problem defining classes from an slist
I just compared your bundle to mine and found the problem. I was doing
this in a common bundle while yours is in an agent bund
n a common bundle for global access. Is this a technical limitation
with how common bundles work?
Justin
-Original Message-
From: Daniel V Klein [mailto:d...@lonewolf.com]
Sent: Monday, May 17, 2010 4:43 PM
To: Justin Lloyd
Cc: help-cfengine@cfengine.org
Subject: Re: Problem defining class
I am not sure what you're doing worng. The following bundle works just fine
for me... I did "cf-agent -Kb foo -f ./justin.cf"
-Dan
bundle agent foo {
vars:
"logs" slist => { "foo", "bar", "gar-bletch" };
"canonified[$(logs)]" string => canonify("$(logs)");
classes:
"$(canonifi
FWIW, I just found out that this does not work:
vars:
"logs" slist => { "foo", "bar" };
"canonified[$(logs)]" string => canonify("$(logs)");
classes:
"$(canonified[$(logs)])_exists" expression =>
fileexists("/var/adm/$(logs)");
It gives the same error about illegal characters.
Justi