Re: class definition by script problem

2006-04-07 Thread Michael Grubb
That did the trick, thanks! Probably should be a link to this under the classes section as well. Sorry for the waste of time, I just couldn't see the forest for the trees =] Thanks again, Michael On Apr 7, 2006, at 4:26 PM, Brendan Strejcek wrote: Michael Grubb wrote: I want to define

Re: class definition by script problem

2006-04-07 Thread Brendan Strejcek
Michael Grubb wrote: > I want to define a class based on the exit value of a script. I want > to be able to do variable substitution in the command Check out ReturnsZero in the reference. That might allow the variable interpolation. I would recommend using a module though. The interface is more s

Re: class definition by script problem

2006-04-07 Thread Michael Grubb
I forgot again, I'm running cfengine 2.1.20 On Apr 7, 2006, at 4:03 PM, Michael Grubb wrote: Ok, I have a new problem now. I want to define a class based on the exit value of a script. According to the documentation I do this: classes: myclass = ( "/path/to/script some_opts some_args" )

class definition by script problem

2006-04-07 Thread Michael Grubb
Ok, I have a new problem now. I want to define a class based on the exit value of a script. According to the documentation I do this: classes: myclass = ( "/path/to/script some_opts some_args" ) This works. But I want to be able to do variable substitution in the command string like t

Re: Why list iteration and copy doesn't work

2006-04-07 Thread Ed Brown
Michael Grubb wrote: I understand that this mechanism works as documented, meaning that it iterates of each server in the list. I guess I was hoping for a little more intelligence, in that it would only go onto other items if the first one failed. I wondered if this is what you were rea

Cannot access Changelog

2006-04-07 Thread Timo Wendt
Hi, I am read the Changelog for version 2.1.20 using the links on the cfengine hompage, but it doesn't seem to work. Am I doing something wrong? I am using Firefox on Mac OS X. Timo ___ Help-cfengine mailing list Help-cfengine@cfengine.org http

Re: Why list iteration and copy doesn't work

2006-04-07 Thread Brendan Strejcek
Ed Brown wrote: > But even in context main, it doesn't work in my tests just now to > define a list variable for 'server' in an imported file, for a copy > action in the importing file. I think this is the standard "imports happen after everything else" problem. More here: http://praksys.blogspo

Re: Why list iteration and copy doesn't work

2006-04-07 Thread Michael Grubb
You make a good point about update.conf being self contained. By moving the definition of cf_policy_hosts into update.conf that seems to work now. I understand that this mechanism works as documented, meaning that it iterates of each server in the list. I guess I was hoping for a little

Re: tidy question

2006-04-07 Thread Brendan Strejcek
Wolf, Mark W. wrote: > I would still like to find a copy of the documentation for version > 2.1.9. Try this: ftp://ftp.iu.hio.no/pub/cfengine/cfengine-2.1.9.tar.gz $ wget -qO - ftp://ftp.iu.hio.no/pub/cfengine/cfengine-2.1.9.tar.gz | > tar tzf - | grep -i Reference.html cfengine-2.1.

RE: tidy question

2006-04-07 Thread Wolf, Mark W.
I figured out the tidy question. But I would still like to find a copy of the documentation for version 2.1.9. Is there someplace I can find a copy? Does anyone have a copy they could send me? I moved the order around This is what I had My tidy statement: tidy: any:: /

Re: Why list iteration and copy doesn't work

2006-04-07 Thread Ed Brown
Michael Grubb wrote: Here are the relevant entries in update.conf: import: main.cf #... snip ... copy: $(cf_master_inputs) dest=$(cf_workdir)/inputs server=$(cf_policy_hosts) The relevant entry in main.cf: control: cf_policy_hosts = ( polserv1.domain:pol

Re: Why list iteration and copy doesn't work

2006-04-07 Thread Michael Grubb
Doh. I forgot to mention that, sorry all. 2.1.20 On Apr 6, 2006, at 6:21 PM, Ed Brown wrote: I don't know when list iteration was extended to the server field, but I can tell you it doesn't work in 2.1.11 and does work in 2.1.18. What version are you using? -Ed Michael Grubb wrote: In