Re: if_repaired

2010-11-24 Thread Seva Gluschenko
Michael, while the promise to define restart_class is indeed only checked when sshd_reconfigured class is defined, you're not quite right defining it as a problem for this case, since Sandra wrote about if_repaired problem, not restart_class problem. While agreeing that it isn't reasonable to chec

Cfengine Help: How does edit backup => "rotate " work?

2010-11-24 Thread no-reply
Forum: Cfengine Help Subject: How does edit_backup => "rotate" work? Author: zzamboni Link to topic: https://cfengine.com/forum/read.php?3,19393,19393#msg-19393 Howdy, Somehow I had never tried edit_backup => "rotate" before (I always used "timestamp"), and maybe I'm being dense, but I don't thi

Re: if_repaired

2010-11-24 Thread Michael Potter
On Thu, Nov 25, 2010 at 7:05 AM, Sandra Wittenbrock wrote: > Hello, > > I am trying to use if_repaired(x). > > I have it defined as follows in library.cf: > > body classes if_repaired(x) { >    promise_repaired => { "$(x)" }; > } > > I'm using the following in an attempt to restart sshd when the >

Cfengine Help: Re: if_repaired

2010-11-24 Thread no-reply
Forum: Cfengine Help Subject: Re: if_repaired Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,19388,19390#msg-19390 Check the verbose agent output to see what is happening. Also under your processes you have the any class followed by the ssh_reconfigured class with noth

Cfengine Help: Re: Cfengine community 3.1.1 released

2010-11-24 Thread no-reply
Forum: Cfengine Help Subject: Re: Cfengine community 3.1.1 released Author: mark Link to topic: https://cfengine.com/forum/read.php?3,19382,19389#msg-19389 The list iteration was fixed, and the memory leak was quite generic to all components. It was in the parser at a deep and subtle level, so th

Re: if_repaired

2010-11-24 Thread Seva Gluschenko
Sandra, your sshd signaling promise is perfectly correct (any:: can be easily omitted, though, since it does nothing and gets overridden by sshd_reconfigured::). What does verbose run show? 2010/11/24 Sandra Wittenbrock : > Hello, > > I am trying to use if_repaired(x). > > I have it defined as fo

if_repaired

2010-11-24 Thread Sandra Wittenbrock
Hello, I am trying to use if_repaired(x). I have it defined as follows in library.cf: body classes if_repaired(x) { promise_repaired => { "$(x)" }; } I'm using the following in an attempt to restart sshd when the configuration is changed by cfengine. Unfortunately, I'm not able to get it

Re: cf3 body "restart_sshd()" was undeclared

2010-11-24 Thread Sandra Wittenbrock
Hi Michael, Thanks for the help. That is an easy fix. Sandra On 11/23/2010 02:25 PM, Michael Potter wrote: > Change: > >restart_class => restart_sshd; > > To: > >restart_class => "restart_sshd"; > > And try again. > > On Wed, Nov 24, 2010 at 7:46 AM, Sandra Wittenbrock > wrote: >

Re: Cfengine Help: Re: replace_patterns bug?

2010-11-24 Thread Daniel V. Klein
It might help everyone to think about regex's this way: Every repeating pattern (that is, with a *, +, or ?) is "elastic". WHich means that it will gobble up as much as possible, leaving the remainder of the string for the rest of the pattern to attempt to match. If the match occurs, fine. B

Cfengine Help: Re: replace_patterns bug?

2010-11-24 Thread no-reply
Forum: Cfengine Help Subject: Re: replace_patterns bug? Author: babudro Link to topic: https://cfengine.com/forum/read.php?3,19347,19384#msg-19384 For prosperity: The flaw in my regex judgement was following my logic in a sequential left-to-right fashion, assuming that "\s*" would always match a

Preventing sigmask inheritance in commands?

2010-11-24 Thread Frans Lawaetz
Hi, It looks like cfengine3 masks the SIGPIPE signal. This mask gets inherited by any processes cf3 invokes which can cause undesirable behaviour. I've noticed, for example, that if sshd gets restarted by cf3 it results in shell behaviour as shown below. cat somefile | head -10 [sn

Cfengine Help: Re: Cfengine community 3.1.1 released

2010-11-24 Thread no-reply
Forum: Cfengine Help Subject: Re: Cfengine community 3.1.1 released Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,19382,19383#msg-19383 Great news Mark, Was the one element list iteration bug fixed? The memory leak was cleaned in cf-serverd. What about cf-monitord?

Cfengine community 3.1.1 released

2010-11-24 Thread Mark Burgess
Source code release of Cfengine 3.1.1 cfengine-3.1.1.tar.gz at http://www.cfengine.org MD5 ad94aa9599b885bedb26fc4a8d4d73b5 SHA1 b7ed3b9e47da0cbdb30bc59d256d56fb901b0f46 Date: November 24 2010 16:48:55 This is a bigfix release only. Users of cfengine-3.1.0 are strongly advised to upgrade. * Me

Cfengine Help: Re: replace_patterns bug?

2010-11-24 Thread no-reply
Forum: Cfengine Help Subject: Re: replace_patterns bug? Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,19347,19381#msg-19381 [^$(x)] is to vague. It does not account multiple characters. Anchoring with the dollar sign is one way to fix this. __

Cfengine Help: Re: replace_patterns bug?

2010-11-24 Thread no-reply
Forum: Cfengine Help Subject: Re: replace_patterns bug? Author: babudro Link to topic: https://cfengine.com/forum/read.php?3,19347,19380#msg-19380 Entered in Cfengine bug tracker ___ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine