Yeah I tried that.  It didn't work.

I guess because we're using "body changes", its entering a special place in
the code where if_repaired doesn't take effect.


On 4/21/11 11:44 AM, "no-re...@cfengine.com" <no-re...@cfengine.com> wrote:

> Forum: Cfengine Help
> Subject: Re: laying a tripwire and firing the checksum_alerts class
> Author: phnakarin
> Link to topic: https://cfengine.com/forum/read.php?3,21544,21554#msg-21554
> 
> What if you use classes => if_repaired() instead of checksum_alerts:: class,
> would it work?
> 
> files:
>  linux::
>   "/etc"
>           changes => detect_filesystem_changes,
> ...
> ...
>           classes => if_repaired("changes_detected");
> 
> reports:
> 
>  changes_detected::
> 
>   "cf3: The tripwire on $(sys.host):/etc has been tripped. ";
> 
> 
> Cheers,
> --Nakarin
> 
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@cfengine.org
> https://cfengine.org/mailman/listinfo/help-cfengine

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

Reply via email to