Re: Problem defining classes from an slist

2010-05-17 Thread Daniel V Klein
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

RE: Problem defining classes from an slist

2010-05-17 Thread Justin Lloyd
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

RE: Problem defining classes from an slist

2010-05-17 Thread Justin Lloyd
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

Re: Problem defining classes from an slist

2010-05-17 Thread Daniel V Klein
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

RE: Problem defining classes from an slist

2010-05-17 Thread Justin Lloyd
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