nistration tasks done, we're falling
short of the author's (MB) intention for CFEngine as a knowledge mgmt
tool.
Yours respectfully,
-at
On Mon, Sep 17, 2012 at 11:53 AM, wrote:
> Forum: CFEngine Help
> Subject: Re: reporting on existence of files in a directory
> Author:
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_d
On Aug 28, 2012, at 8:50 PM, Aleksey Tsalolikhin
wrote:
> Try this, it's more native to CFEngine, though I still use an external
> command to report the detected file.
>
> # Report all files in directory /tmp/. matching regex pattern \w.*
>
> bundle agent example
>
> {
> files:
>
> "/t
Try this, it's more native to CFEngine, though I still use an external
command to report the detected file.
# Report all files in directory /tmp/. matching regex pattern \w.*
bundle agent example
{
files:
"/tmp/."
file_select => files_we_care_about,
transformer => "
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
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
b
That would do exactly what I want but it seems fileexists() wants to see only a
fully qualified file name - regex’s don’t work. I need to use a regex because
the only information I have is that a file in the directory will match \w.*
On Aug 26, 2012, at 8:36 AM, Aleksey Tsalolikhin wrote:
> C
Classes: "somefilesthere"
Expression => fileexists(...);
Reports:
Somefilesthere::
"Report text";
How's that?
On Aug 25, 2012 10:33 PM, "Aleksey Tsalolikhin"
wrote:
> Hi Abid. Check out the fileexists() function. You can use it to set a
> class which you can link to a reports promise.
Hi Abid. Check out the fileexists() function. You can use it to set a
class which you can link to a reports promise.
Yours,
Aleksey
On Aug 25, 2012 9:03 AM, "Abid Khwaja" wrote:
> I’m running community 3.2.3.
>
> My goal is to notify a group of non-technical users whenever there are
> files in