help-cfengine
[Top][All Lists]
Advanced

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

Re: server iteration


From: Alexander Jolk
Subject: Re: server iteration
Date: Mon, 23 May 2005 12:34:49 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.2) Gecko/20030708

Mark Burgess wrote:
There is a failover option in copy. Why is no one discussing that?


Correct me if I misunderstood, but failover= in copy lets me define a class when the copy fails, doesn't it? So in order to re-try the copy from a different server, I would have to restate the same copy with the failover server, activated by my failover class? Or could I do something along the following lines:

control:
   AllowRedefinitionOf = ( server )
   AddInstallable = ( server_fail )
   server = ( primaryhost )
   server_fail::
      server = ( failoverhost )

copy:
   $(server)/some/file dest=/some/file failover=server_fail

Would cfengine's second pass take into account the changed definition, or not? That would actually be quite nice for a single layer failover scenario.

Alex


--
Alexander Jolk         /         BUF Compagnie
tel +33-1 42 68 18 28 /  fax +33-1 42 68 18 29





reply via email to

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