Hi,

 

I'm looking to solve two related problems and was hoping to be able to
trigger them with classes based on a couple of conditions, but I've yet
been able to figure out how to do them. They are:

 

*         Setting a class if a specified file changes

*         Setting a class if a specified file or directory appears for
the first time

 

I've had a look and bit of an experiment with the "changes in file
"body, but I've only been able to find examples (or been able to get
working) of it being used an reporting system for file changes in a
tripwire-like scenario. Does change correspond to a promise_repaired in
this case?

 

Ideally, I'd like to be set a class on a change, or if a particular file
or directory is generated, and use that to conditionally run some
commands.

 

Does anyone have any hints as to how I might best achieve this?

 

 

Thanks,

 

 

Simon

 

--

Simon Oxwell

ControlCircle

Senior Server Engineer

The Datacentre People

0044 (0)20 7517 6594

Hertsmere House, 2 Hertsmere Road,

simon.oxw...@controlcircle.com <mailto:simon.oxw...@controlcircle.com> 

London, E14 4AB

 

 

_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to