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 09:41:57 +0200

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
> address@hidden
> http://lists.gnu.org/mailman/listinfo/help-cfengine





reply via email to

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