On 28/06/2011 16:04, no-re...@cfengine.com wrote: > Forum: Cfengine Help > Subject: Re: Client config examples (update.cf / failsafe.cf) for multiple > Master Policy Servers > Author: msvob...@linkedin.com > Link to topic: https://cfengine.com/forum/read.php?3,22618,22640#msg-22640 > > select_class was introduced in 3.1.5. So before the most recent version, how > were folks accomplishing this? Most of my infrastructure is still on 3.1.4 > b/c of the BerkeleyDB issue. I suppose I'm in the holding pattern for 3.1.6 > to use this... >
You could use the same pattern, but with dist: bundle agent copy { classes: "pseudo_random" dist=> { "29", "30", "31" }; files: "/tmp/test1-copy" copy_from => multiple_cp("/tmp/testfile1", "host1", "host2", "host3"); } body copy_from multiple_cp(from, server1, server2, server3) { source => "$(from)"; pseudo_random_29:: servers => { "$(server1)", "$(server3)", "$(server2)" }; pseudo_random_30:: servers => { "$(server2)", "$(server1)", "$(server3)" }; pseudo_random_31:: servers => { "$(server3)", "$(server2)", "$(server1)" }; } A bit more akward, and slightly less equiprobable, but it would still do the job Regards Nicolas _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine