gnu.cfengine.help
[Top] [All Lists]

Re: Excluding directory in update.conf

Subject: Re: Excluding directory in update.conf
From: Frank Ranner <franner@xxxxxxxxxxxxxxxxxxxx>
Date: 25 May 2008 00:13:31 GMT
Newsgroups: gnu.cfengine.help

On Mon, 19 May 2008 15:00:48 -0700, scarolan wrote:

> I am trying to exclude directory "CVS" from my update.conf config, but
> the exclude rule doesn't seem to work.  How do I exclude /master/
> cfengine/cfengine_cvs/CVS from being copied to all hosts?
> 
> Here's my update.conf:
> 
> control:
>    actionsequence = ( copy tidy )
>    workdir        = ( /var/cfengine )
>    policyhost     = ( mypolicyhost.domain.com ) master_cfinput = (
>    /master/cfengine/cfengine_cvs ) cf_install_dir = ( /usr/sbin )
> 
> copy:
>    $(master_cfinput)     dest=$(workdir)/inputs
>                          r=inf
>                          mode=600
>                        owner=root
>                        group=root
>                          type=binary
>                          exclude=*.lst
>                          exclude=*~
>                          exclude=#*
>                        exclude=*CVS
>                          server=$(policyhost)
>                        trustkey=true
>                        action=fix
> 
> tidy:
>    $(workdir)/outputs pattern=* age=7

exclude is for files. use 'ignore' for directories

ignore=CVS

In fact you can specify ignore globally in ignore: sections. See the 
cfengine tutorial/reference manuals

regards
Frank Ranner

<Prev in Thread] Current Thread [Next in Thread>