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 Hel

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_con

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 rea

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 t

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

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 hav

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&