On 8/22/11 10:36 AM, no-re...@cfengine.com wrote: > From the top-level, what I want is for "update.cf", when checking > "/var/cfengine/inputs", to try one server, and if that times out, then to try > another in the list. > > Now the "copy_from" compound body has a "servers" which takes a list, and the > manual defines that as "the servers are tried in order until one of them > succeeds". That sounds good. Very good. In theory. > > I don't know about the examples, but having your copy body use two servers works just fine in my experience. Just do something like this:
vars: "servers" comment => "Location unknown, just set both policy hosts", slist => { "host1.foo.net","host2.foo.net" }; files: "/var/cfengine/inputs" copy_from => umycopy("${policyrepo}","@(servers)"), other stuff; body copy_from umycopy(from,phosts) { source => "${from}"; servers => { @(phosts) }; compare => "digest"; verify => "true"; purge => "true"; trustkey => "true"; } _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine