search for: clusterno

Displaying 1 result from an estimated 1 matches for "clusterno".

2007 Jun 11
1
Thoughts on arrays and generic functions
...ite various config files from this ''golden'' data. It also shells out to a script to call lots of the ha* commands. Also one thing would be nice is really compact test harness for custom functions! Any thoughts anyone? Cheers, Derek define clusterconf($members, $clustername, $clusterno, $vips, $vipmasks, $loprinic, $hiprinic, $primarynic) { $hostlist = array2string($members) # <-- Custom fn - join(" ") $vip1 = array_elt($members, 0) # <-- Custom fn - return element $mask1 = array_elt($vipmasks, 0) file { llthosts: owner => root...