Re: body executor control and separately defined classes

2010-11-19 Thread Michael Potter
On Sat, Nov 20, 2010 at 1:14 AM, C R Ritson wrote: > It seems to me that I cannot arrange to validate promises regularly using > classes defined elsewhere. Have I misunderstood something? In body executor > control... > > schedule => { "Weekday.Morning.Q1", ... } > > fails to validate my promise

Re: body executor control and separately defined classes

2010-11-19 Thread Daniel V. Klein
Chris- Well, actually I think Cfengine is doing what it was supposed to, then :-) Rather than resort to hoop-jumping, why not just get in the habit of executing your policy immediately after you check it in, to test for missed bugs? -Dan On Nov 19, 2010, at 10:17 AM, C R Ritson wrote: >> I ag

Re: body executor control and separately defined classes

2010-11-19 Thread Seva Gluschenko
To be honest, Cfengine is not that lightweight to run it on default schedule on busy production servers, from my experience. My current approach to writing promises consists of defining relatively relaxed schedule (from 20 minutes to 1 hour and even more) while enforcing urgent changes via cf-runag

RE: body executor control and separately defined classes

2010-11-19 Thread C R Ritson
>I agree with Seva about hard classes. But this makes me ask: why are >you so erratically validating your promises? Why not every 5 minutes, This started when I was deluged by a weekend's-worth of mail every 5 minutes, because a syntax error had been overlooked and caused a noisy back-off to f

Re: body executor control and separately defined classes

2010-11-19 Thread Daniel V. Klein
Chris- I agree with Seva about hard classes. But this makes me ask: why are you so erratically validating your promises? Why not every 5 minutes, which is the default? Cfengine is lightweight, and does not load your system. But if you have "expensive" promises, just change the "if_elapsed"

Re: body executor control and separately defined classes

2010-11-19 Thread Seva Gluschenko
Chris, the schedule only accepts hard classes, AFAIR 2010/11/19 C R Ritson : > It seems to me that I cannot arrange to validate promises regularly using > classes defined elsewhere. Have I misunderstood something? In body executor > control... > > schedule => { "Weekday.Morning.Q1", ... } > > f

body executor control and separately defined classes

2010-11-19 Thread C R Ritson
It seems to me that I cannot arrange to validate promises regularly using classes defined elsewhere. Have I misunderstood something? In body executor control... schedule => { "Weekday.Morning.Q1", ... } fails to validate my promises when the class Weekday is defined in "bundle agent executor"