help-cfengine
[Top][All Lists]
Advanced

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

Re: How to code conditional copy


From: Chip Seraphine
Subject: Re: How to code conditional copy
Date: Thu, 15 Jan 2004 14:50:11 -0600
User-agent: KMail/1.5

Um, forgot the very import part.  The copy: bit should be:

copy:
        xxx_exists::
                /masterfiles/example.xxx        dest=/some/path/to/example 
mode=123


(Howcome you only notice these things when the mail comes back to you on the 
list?)

On Thursday 15 January 2004 14:18, Chip Seraphine wrote:
> groups:
>       xxx_exists = ( FileExists(/path/to/xxx) )
>
> copy:
>       /masterfiles/example.xxx        dest=/some/path/to/example mode=123
>
> On Thursday 15 January 2004 10:48, Morgan Ives wrote:
> > I am trying to code conditional copies based upon the existance of
> >  a file on each client.   For example if:
> >
> >   /.XXX exists then
> > copy::
> >  /local/masterfiles/.example.xxx dest=/usr/local/bin/example mode=600
> >
> >  /.YYY exists then
> > copy::
> >  /local/masterfiles/.example.yyy dest=/usr/local/bin/example mode=600
> >
> > I am thinking this can be done with filters but I am having trouble with
> > the syntax.
> > Does anyone have a quick example of this?
> >
> >               Morgan
>
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@gnu.org
> http://mail.gnu.org/mailman/listinfo/help-cfengine





reply via email to

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