help-cfengine
[Top][All Lists]
Advanced

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

Re: Recursion Problem??


From: Adam M. Dunn
Subject: Re: Recursion Problem??
Date: Thu, 9 Sep 2004 10:36:23 -0500 (CDT)

GREAT!
 
I hadn't used filters before, but that worked great.  I just setup a
filter to ignore directories and can now just call it from a files option:
filter=ignoredir.  That's exactly what I was looking for.

filters:
                                                                                
   { ignoredir
                                                                                
   Type:        "dir"
   Result:      "!Type"
                                                                                
   }




Thanks Mark!

~Adam


On Thu, 9 Sep 2004, Mark Burgess wrote:

> 
> You could use a filter to do this,
> 
> M
> 
> 
> On Wed, Sep 08, 2004 at 05:20:19PM -0500, Adam M. Dunn wrote:
> > 
> > Yes, thanks.  That ignore worked.  It would be nice though if cfengine had
> > an option to treat files and directory names differently, such as an omit
> > directory option.  I would much rather be able to create random sub
> > directories and not have them copied without specifying them explicitly.
> > 
> > 
> > thanks,
> > 
> > ~adam
> > 
> > 
> > 
> > On Wed, 8 Sep 2004, Ed Brown wrote:
> > 
> > > With a directory for a source/dest, and 'r=1', cfengine will create any
> > > subdirectories in that top-level directory, but does not recurse into
> > > them (they will be empty).  If you don't want the subdirectory created,
> > > try 'ignore=modules' (or whatever the subdirectory is that you don't
> > > want created.)
> > > 
> > > -Ed 
> > > 
> > > 
> > > 
> > > On Wed, 2004-09-08 at 13:56, Adam M. Dunn wrote:
> > > > Anyone,
> > > >                                                                         
> > > >         
> > > > I'm running into a problem with the recursion option in a copy command.
> > > > For example, using the default model of copying the updated configs 
> > > > from:
> > > >                                                                         
> > > >         
> > > > server:/var/cfengine/masterfiles --> client:/var/cfengine/inputs
> > > >                                                                         
> > > >         
> > > > just as an example, and setting a recursion to r=0, nothing copies.
> > > > However, if I keep it at r=1, or r=inf, then everything copies, but I
> > > > don't want that.  Basically I just want to copy only single files from a
> > > > source directory to the client and ignore any subdirectories, but it's 
> > > > not
> > > > letting me.
> > > >                                                                         
> > > >         
> > > > Is this common behavior, or am I doing something wrong?
> > > >                                                                         
> > > >         
> > > >                                                                         
> > > >         
> > > > Thanks,
> > > > Adam
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > _______________________________________________
> > > > Help-cfengine mailing list
> > > > Help-cfengine@gnu.org
> > > > http://lists.gnu.org/mailman/listinfo/help-cfengine
> > > 
> > > 
> > > 
> > 
> > 
> > 
> > _______________________________________________
> > Help-cfengine mailing list
> > Help-cfengine@gnu.org
> > http://lists.gnu.org/mailman/listinfo/help-cfengine
> 
> -- 
> 
> 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Work: +47 22453272            Email:  Mark.Burgess@iu.hio.no
> Fax : +47 22453205            WWW  :  http://www.iu.hio.no/~mark
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
> 
> 




reply via email to

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