help-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: tidy and exclude?


From: Bas van der Vlies
Subject: RE: tidy and exclude?
Date: Wed, 22 Aug 2001 07:37:36 +0200 (MET DST)

Antony,

 I always use the ignore directive:

control:

  actionsequence = ( tidy )

tidy:

  /home/sara/bas/cfengine/tmp pattern=* age=0

ignore:
  /home/sara/bas/cfengine/tmp/bas

 
On 22-Aug-2001 Antony Nguyen wrote:
> Hello,
> 
> I'm trying to keep a directory empty except for one file.  I've tried:
> 
> tidy:
>       myserver::
>               /mydir pattern=* exclude=myfile age=0
> 
> When I run cfengine, I get:
> 
> cf:myserver.com:cfengine.conf:89:  Illegal tidy attribute
> 
> ... which only happens when I keep the 'exclude' attribute in that line.
> However, the Reference doc lists 'exclude' as an option to tidy (but
> there's no formal description of it like the other attributes).  Am I
> correct in thinking tidy doesn't support exclude?
> 
> If so, what's a good workaround?
> 
> I've tried:
> 
> tidy:
>       myserver::
>               /mydir pattern=[^(myfile)]* age=0
> 
> But cfengine chokes on that.
> 
> Any help is greatly appreciated!
> 
> --tony
> 
> _______________________________________________
> Help-cfengine mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/help-cfengine

********************************************************************
*                                                                  *
*  Bas van der Vlies                     e-mail: address@hidden      *
*  SARA - Academic Computing Services    phone:  +31 20 592 8012   *
*  Kruislaan 415                         fax:    +31 20 6683167    *
*  1098 SJ Amsterdam                     WWW:    www.sara.nl       *
*                                                                  *
********************************************************************



reply via email to

[Prev in Thread] Current Thread [Next in Thread]