help-cfengine
[Top][All Lists]
Advanced

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

RE: Copy command copies directories I don't want


From: Mark Burgess
Subject: RE: Copy command copies directories I don't want
Date: Wed, 24 Aug 2005 17:59:32 +0200

You can set recurse=0 and name the directories you want explicitly, or
you can use a wildcard path...

M

On Wed, 2005-08-24 at 08:56 -0700, Mark wrote:
> Hi Mark,
> 
> Using ignore= would help me short term, but long-term there is no way to add 
> each new directory that I add into the /etc directory
> to the ignore list.
> Sooner or later I (or somebody else) will add a directory and forget to put 
> it in the ignore list.
> Is there any other way to NOT traverse any subdirectories EXCEPT the ones I 
> want?
> 
> 
> I have
> 
>   etc
> *  |- ldap.conf
>    |- pam.d
> *  |     +- system-auth
>    |
>    |- openldap
> *  |     +- ldap.conf
>    |          
>    |- ha.d
>    |     +- <somefiles>
>    +- ipsec.d
>          |- autostart.d.___hq___
>          + <somefiles>
> 
> The ones with the * are the files I want (ldap.conf, openldap/ldap.conf, 
> pam.d/system-auth).
> I do NOT want ha.d, ipsec.d or autostart.d.___hq___
> 
> 
> Thanks,
> 
> MARK
> 
> 
> 
> 
> 
> > -----Original Message-----
> > From: Mark Burgess [mailto:Mark.Burgess@iu.hio.no] 
> > Sent: Wednesday, August 24, 2005 12:42 AM
> > To: Mark
> > Cc: help-cfengine@gnu.org
> > Subject: Re: Copy command copies directories I don't want
> > 
> > 
> > ignore=
> > 
> > On Tue, 2005-08-23 at 23:55 -0700, Mark wrote:
> > >                 $(config_download_dir)/etc/
> > >                         trustkey=true
> > >                         action=fix
> > >                         dest=/etc/
> > >                         r=inf
> > >                         mode=0644
> > >                         owner=root
> > >                         group=root
> > >                         server=$(policy_host)
> > >                         include=hosts
> > >                         include=openldap/ldap.conf
> > >                         include=ldap.conf
> > >                         include=nsswitch.conf
> > >                         include=system-auth
> > >                         type=checksum
> > > 
> > > The above configuration copies a folder 
> > > /etc/ipsec.d/autostart.d.___hq___ from the policy host to the local 
> > > /etc/ directory. However, it does not copy the contents (files) of 
> > > that folder. Since none of the include-patterns match this 
> > directory 
> > > name, I did not expect it to copy it... How can I prevent this 
> > > directory from being copied?
> > > 
> > > I tried filters:
> > >    { ignore_dirs
> > >    Type:        "dir"
> > >    Result:      "!Type"
> > >    }
> > > 
> > > but now it does not copy the system-auth (in /etc/pam.d) and 
> > > openldap/ldap.conf (in /etc/openldap) any more either although they 
> > > are specified in the include-patterns.
> > > 
> > > Is there a way to do what I want without having to make a new copy 
> > > command for each subfolder???
> > > 
> > > I found discussions about similar problems in the past, but no fix 
> > > yet...
> > > 
> > > Thanks,
> > > 
> > > MARK
> > > 
> > > 
> > > 
> > > _______________________________________________
> > > Help-cfengine mailing list
> > > Help-cfengine@gnu.org 
> > > http://lists.gnu.org/mailman/listinfo/help-cfengine
> > 
> 





reply via email to

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