Re: CFEngine Help: Re: reporting on existence of files in a directory

2012-09-21 Thread Aleksey Tsalolikhin
Aye. The trouble with using tidy and warn_only with a repair_denied class is it wold pollute the clarity of intention. We want the code to embody the intention. We want the intention to "shine through" the code. If we have to jump through syntactical hoops in order to get system administration

CFEngine Help: Re: reporting on existence of files in a directory

2012-09-17 Thread no-reply
Forum: CFEngine Help Subject: Re: reporting on existence of files in a directory Author: sauer Link to topic: https://cfengine.com/forum/read.php?3,27088,27397#msg-27397 Could you use your original promise with the tidy and warn_only, and add a classes body to raise a class for "repair_denied"?

Re: CFEngine Help: Re: reporting on existence of files in a directory

2012-08-27 Thread Abid Khwaja
Brilliant! Nakarin, that works perfectly - exactly as is. I went with the following though because I care only if files exist or not - one more condition I added to the requirements is that the command to check if files are in the directory should not execute on any node other than a Weblogic

CFEngine Help: Re: reporting on existence of files in a directory

2012-08-26 Thread no-reply
Forum: CFEngine Help Subject: Re: reporting on existence of files in a directory Author: phnakarin Link to topic: https://cfengine.com/forum/read.php?3,27088,27093#msg-27093 Try this one. Not quite sure that it is good enough but it should do what you like. # I didn't try the code. :-D bundle