Cfengine Help: Re: Cfengine Help: depth_search exclude files in tripwire changes

2010-11-25 Thread no-reply
Forum: Cfengine Help Subject: Re: Cfengine Help: depth_search exclude files in tripwire changes Author: steve Link to topic: https://cfengine.com/forum/read.php?3,19377,19422#msg-19422 Hi Bas van der Vlies, Yes, this a good idea (just noticed this post, thanks for your response), do you know if

Cfengine Help: Re: depth_search exclude files in tripwire changes

2010-11-25 Thread no-reply
Forum: Cfengine Help Subject: Re: depth_search exclude files in tripwire changes Author: steve Link to topic: https://cfengine.com/forum/read.php?3,19372,19421#msg-19421 Hi Neil, Thanks for your advice, maybe I did not explain the problem clearly, the issue I have is that ntp keeps touching a fi

Cfengine Help: Re: delete file .libs/ message

2010-11-25 Thread no-reply
Forum: Cfengine Help Subject: Re: delete file .libs/ message Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,19417,19420#msg-19420 I don't have any directory called .libs in my master files. Something in the CF binaries is creating /var/cfengine/bin/libs. ettin:/var/cfe

Cfengine Help: Re: "Duplicate selection of value for variable ..." messages

2010-11-25 Thread no-reply
Forum: Cfengine Help Subject: Re: "Duplicate selection of value for variable ..." messages Author: zzamboni Link to topic: https://cfengine.com/forum/read.php?3,19400,19419#msg-19419 Mark Burgess Wrote: --- > I recall fixing this message a while

Cfengine Help: Re: delete file .libs/ message

2010-11-25 Thread no-reply
Forum: Cfengine Help Subject: Re: delete file .libs/ message Author: mark Link to topic: https://cfengine.com/forum/read.php?3,19417,19418#msg-19418 Look like files that libtool builds. Note that there was a decision to build shared lib versions by default. Looks like some build files got tranfe

Cfengine Help: delete file .libs/ message

2010-11-25 Thread no-reply
Forum: Cfengine Help Subject: delete file .libs/ message Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,19417,19417#msg-19417 Anyone see these before? -> Deleted file /var/cfengine/bin/.libs/lt-cf-agent -> Deleted file /var/cfengine/bin/.libs/lt-cf-promises -> Dele

Cfengine Help: Re: "Duplicate selection of value for variable ..." messages

2010-11-25 Thread no-reply
Forum: Cfengine Help Subject: Re: "Duplicate selection of value for variable ..." messages Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,19400,19416#msg-19416 I saw it today in 3.1 until I made the correction in my policy as pointed out by Diego. __

Cfengine Help: Re: depth_search exclude files in tripwire changes

2010-11-25 Thread no-reply
Forum: Cfengine Help Subject: Re: depth_search exclude files in tripwire changes Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,19372,19415#msg-19415 What good would a file called exlcude_me do? It's not something that would be executed by anything automatically. Any s

Re: "Duplicate selection of value for variable ..." messages

2010-11-25 Thread Mark Burgess
I recall fixing this message a while ago, but I presume everyone is saying that it is still present in 3.1? On 11/25/2010 09:35 PM, Michael Potter wrote: > I use policy=>"free" on the variable to avoid these messages. Not sure > if this is a solution or a workaround though... > > vars: > >

Cfengine Help: Re: depth_search exclude files in tripwire changes

2010-11-25 Thread no-reply
Forum: Cfengine Help Subject: Re: depth_search exclude files in tripwire changes Author: steve Link to topic: https://cfengine.com/forum/read.php?3,19372,19412#msg-19412 Hi Neil, Thank you very much for your quick response, i've had a play around with what you have suggested, and here is what I

Re: "Duplicate selection of value for variable ..." messages

2010-11-25 Thread Michael Potter
I use policy=>"free" on the variable to avoid these messages. Not sure if this is a solution or a workaround though... vars: "foo" slist => { readstringlist ( "/tmp/foo" , "#.*" , "[\n]" , 1000 , 10 ) }, policy

Re: Cfengine Help: Re: "Duplicate selection of value for variable ..." messages

2010-11-25 Thread Daniel V. Klein
${foo} and $(foo) are equivalent, and @{foo{ and @(foo) are also equivalent. On Nov 25, 2010, at 2:43 PM, Seva Gluschenko wrote: > I'm not Cfengine guru by any kind, but it seems like wrong syntax to me. Try > > "foo" slist => @(bar); > > (parenthesises, not braces). > > By all means, Cfengine

Re: Cfengine community 3.1.1 released

2010-11-25 Thread Erlend Leganger
Will you provide Solaris 10 binaries for this 3.1.1? I have plans to upgrade soon (I need the "exists" option in file copy); if I can avoid the extra work of compiling it myself, I'd prefer that. Cheers, Erlend On 24 November 2010 16:18, Mark Burgess wrote: > > Source code release of Cfengine

Cfengine Help: Re: Cfengine Help: Re: "Duplicate selection of value for variable ..." messages

2010-11-25 Thread no-reply
Forum: Cfengine Help Subject: Re: Cfengine Help: Re: "Duplicate selection of value for variable ..." messages Author: zzamboni Link to topic: https://cfengine.com/forum/read.php?3,19400,19409#msg-19409 Seva, The result is the same. Braces and parenthesis are interchangeable in cfengine syntax.

Re: Cfengine Help: Re: "Duplicate selection of value for variable ..." messages

2010-11-25 Thread Seva Gluschenko
I'm not Cfengine guru by any kind, but it seems like wrong syntax to me. Try "foo" slist => @(bar); (parenthesises, not braces). By all means, Cfengine should have either been producing an error message or handling it correctly, while it actually shows signs of some memory corruption. 2010/11/2

Cfengine Help: Re: "Duplicate selection of value for variable ..." messages

2010-11-25 Thread no-reply
Forum: Cfengine Help Subject: Re: "Duplicate selection of value for variable ..." messages Author: zzamboni Link to topic: https://cfengine.com/forum/read.php?3,19400,19407#msg-19407 Bug filed: https://cfengine.com/bugtracker/view.php?id=397 I just noticed another (maybe related) strange behavior

Cfengine Help: Re: "Duplicate selection of value for variable ..." messages

2010-11-25 Thread no-reply
Forum: Cfengine Help Subject: Re: "Duplicate selection of value for variable ..." messages Author: mark Link to topic: https://cfengine.com/forum/read.php?3,19400,19406#msg-19406 You are right, it should not make any difference whether you use { } or not around the function. By all means flag it

Cfengine Help: Re: "Duplicate selection of value for variable ..." messages

2010-11-25 Thread no-reply
Forum: Cfengine Help Subject: Re: "Duplicate selection of value for variable ..." messages Author: zzamboni Link to topic: https://cfengine.com/forum/read.php?3,19400,19405#msg-19405 Actually, there is a bit of an inconsistency here in the syntax. List variables can be included into other lists a

Cfengine Help: Re: "Duplicate selection of value for variable ..." messages

2010-11-25 Thread no-reply
Forum: Cfengine Help Subject: Re: "Duplicate selection of value for variable ..." messages Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,19400,19404#msg-19404 Nice catch Diego. I think that the braces were in the reference before, how else would I have come to them, bu

Re: Cfengine Help: Re: "Duplicate selection of value for variable ..." messages

2010-11-25 Thread Marc Baudoin
no-re...@cfengine.com écrit : > > readstringlist() returns an array, so the braces around it are not needed. > Removing them make the test work correctly: That's right, thank you! Then the three examples that use readstringlist in the reference manual are wrong because they all use braces...

Cfengine Help: Re: "Duplicate selection of value for variable ..." messages

2010-11-25 Thread no-reply
Forum: Cfengine Help Subject: Re: "Duplicate selection of value for variable ..." messages Author: zzamboni Link to topic: https://cfengine.com/forum/read.php?3,19400,19402#msg-19402 readstringlist() returns an array, so the braces around it are not needed. Removing them make the test work correc

Cfengine Help: Re: "Duplicate selection of value for variable ..." messages

2010-11-25 Thread no-reply
Forum: Cfengine Help Subject: Re: "Duplicate selection of value for variable ..." messages Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,19400,19401#msg-19401 I see it too. I don't know the cause. https://cfengine.com/forum/read.php?3,19046,19046#msg-19046

"Duplicate selection of value for variable ..." messages

2010-11-25 Thread Marc Baudoin
Hi, cf-agent, used with the -I option and the attached test.cf file, displays: !! Duplicate selection of value for variable "foo" in scope test !! Rule from /home/user/.cfagent/inputs/test.cf at/before line 14 !! Duplicate selection of value for variable "foo" in scope test !! Rule from /home

Re: Cfengine Help: Re: if_repaired

2010-11-25 Thread Seva Gluschenko
It is unlikely to happen that way. Remember, there are two conditions, "promise_repaired" and "promise_kept". In your example, promise_kept will be set by one body and promise_repaired by another. They shouldn't supercede each other. 2010/11/25 : > Forum: Cfengine Help > Subject: Re: if_repaired

Re: Cfengine Help: Apply a bundle to the content of a given path

2010-11-25 Thread Seva Gluschenko
Pablo, the recursive search is only working for files promises, so it's unlikely you can pass a path to your bundle and hope it will work out. >From my point of view, the desired state can be achieved by obtaining an slist for files using readstringlist() call over execresult() for ls or find outp

Cfengine Help: Re: Cfengine Help: Re: replace_patterns bug?

2010-11-25 Thread no-reply
Forum: Cfengine Help Subject: Re: Cfengine Help: Re: replace_patterns bug? Author: babudro Link to topic: https://cfengine.com/forum/read.php?3,19386,19397#msg-19397 Thanks. This is indeed helpful. (BTW, I meant "posterity" rather than "prosperity" - fuzzy synapse...) __

Cfengine Help: Re: if_repaired

2010-11-25 Thread no-reply
Forum: Cfengine Help Subject: Re: if_repaired Author: babudro Link to topic: https://cfengine.com/forum/read.php?3,19388,19396#msg-19396 I note that two promises are being combined: perms => usystem("0744"), copy_from => umycopy("/var/lib/cfengine3/masterfiles/conf/sshd_config"), The Cfengine

Cfengine Help: Apply a bundle to the content of a given path

2010-11-25 Thread no-reply
Forum: Cfengine Help Subject: Apply a bundle to the content of a given path Author: orviz Link to topic: https://cfengine.com/forum/read.php?3,19395,19395#msg-19395 Hi all, I've got a bundle that checks if a given x509 certificate (passed as an argument) is expired and if so it gets deleted: b