RE: Splaytime and hostname hashing

2010-02-25 Thread C R Ritson
A colleague, now retired, wrote the attached piece of python - clearly you would need to customise this as it does things with our domain name to get the correct string to hash. I hope this helps. Chris Ritson (Computing Officer and School Safety Officer) Room 707, Claremont Tower,EMAIL

Reloading cf-execd after cf-execd.cf changes

2010-10-18 Thread C R Ritson
Is there a "right" way to promise that cf-execd is using an up to date promise definition? I have recently taken the "-I" out of the command string it is using to start cf-agent periodically, but the running instance on my server is still mailing me with more verbose output than I want. Sending

RE: Cfengine Help: Re: Bundle and Body

2010-11-02 Thread C R Ritson
> topic: https://cfengine.com/forum/read.php?3,18931,19016#msg-19016 > >Mark, > >I propose to add my explanation from above to the reference. I believe >it's clear enough. This prompted me, as a struggling newcomer, to have another look at the topic. It's very easy to ignore the "item" in that de

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"

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

Distribute and customise cups/printers.conf

2010-12-14 Thread C R Ritson
What's the best way to ensure that a cups configuration is up to date? If I check that /etc/cups/printers.conf is identical on the clients and a policy master, then I cannot use "lpadmin -d" after a repair as this would make the files diverge. It looks as if cfengine has to do the whole job to a

Splay across a shift?

2011-02-14 Thread C R Ritson
Is there any possibility of altering splayclass to pick a pseudo random 5-minute interval in a complete shift? I think this would mean altering FnCallSplayClass() to generate (for example) something like Min15_20.(Hr02|Hr08|Hr14|Hr20) instead of the current class string it generates. If I we

RE: Cfengine Help: Hard classes vs defined classes ?

2011-04-06 Thread C R Ritson
>-Original Message- > >Forum: Cfengine Help >Subject: Re: Cfengine Help: Hard classes vs defined classes ? >Author: Seva Gluschenko >Link to topic: https://cfengine.com/forum/read.php?3,21346,21350#msg-21350 > >You can use hostname or IP based guessing like: > >bundle common g >{ > classes:

RE: Cfengine Help: Re: Avoiding "Duplicate selection of value"

2011-04-27 Thread C R Ritson
Is there any chance of a change to the C code that implements "splayclass" to give me an easy way of selecting a random quarter-hour slot in each 6 hour shift? I too have had to up my schedule and reduce my default splay time to 5 minutes in cf-execd to allow the use of splayclass. Chris Ritson

RE: Cfengine Help: Re: Avoiding "Duplicate selection of value"

2011-04-28 Thread C R Ritson
I don't think that particular use of ifelapsed would work if the resource intensive update is also potentially disruptive, so constrained only to be checked at "Night". The first 5-minute interval in which that promise is checked, it will be about 18 hours old so all will be done together. The