help-cfengine
[Top][All Lists]
Advanced

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

Re: Iteration over server list


From: Mark . Burgess
Subject: Re: Iteration over server list
Date: Thu, 12 Aug 2004 07:37:41 +0200 (MEST)

Sebastien,

this seems okay to me. Cfagent should contact both hosts.
If you run your program

 cfagent -p -d3

you should be able to dee duplicate entries for this copy operation,
one with mach1 and one with mach2:



DEFINED FILE IMAGES


COPY /etc/passwd
 Mode +644
     -7133
 TO dest: /tmp/passwd
 action: fix
 Size > -1
 IfElapsed=1, ExpireAfter=120
 recurse=0
 xdev = n
 uids = ( 0 )
 gids = ( 0 )
 filters:
 exclude:
 ignore:
 symlink:
 include:
 classes = any
 method = t (time/checksum)
 server = mach1 (encrypt=n,verified=n)       <<<<<<<<<<<<<<<<<<<<<<<<
 accept the server's public key on trust? y
 purging = n
 Define
 ElseDefine
 FailoverClasses
 Single backup archive


COPY /etc/passwd
 Mode +644
     -7133
 TO dest: /tmp/passwd
 action: fix
 Size > -1
 IfElapsed=1, ExpireAfter=120
 recurse=0
 xdev = n
 uids = ( 0 )
 gids = ( 0 )
 filters:
 exclude:
 ignore:
 symlink:
 include:
 classes = any
 method = t (time/checksum)
 server = mach2 (encrypt=n,verified=n)         <<<<<<<<<<<<<<<<<<<<<<
 accept the server's public key on trust? y
 purging = n
 Define
 ElseDefine
 FailoverClasses
 Single backup archive


cheers

Mark


On  4 Aug, Sebastien Begue wrote:
> Hi,
> 
> I would like to understand my problem with iteration over a server list 
> in a copy.
> 
> control:
>     list_server = (mach1:mach2 )
> 
> copy:
>     FILE
>         dest=FILE
>         server=$(list_server)
>         mode=644
>         owner=root
>         group=root
>         truskey=true
>  
> With this little configuration, i would like to copy FILE, from 
> different server. But the problem is that the iteration don't go on, 
> because of only the first server (here mach1) is contact... Why did 
> iteration don't go on the other server ?
> 
> Thanks for your help
> 
> Sébastien
> 
> 
> 
> _______________________________________________
> 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]