Separate build and cluster_build nodes.
authorAmitay Isaacs <amitay@gmail.com>
Fri, 12 Dec 2014 03:05:30 +0000 (14:05 +1100)
committerAmitay Isaacs <amitay@gmail.com>
Fri, 12 Dec 2014 03:05:30 +0000 (14:05 +1100)
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
config.d/52node_build.defconf
config.d/53node_cbuild.defconf [new file with mode: 0644]

index c58123e..632fdc7 100644 (file)
@@ -11,7 +11,7 @@ node_name_format_build ()
 cluster_setup_tasks_build ()
 {
     case "$1" in
-       install_packages) echo "clusterfs build" ;;
+       install_packages) echo "build" ;;
        setup_clusterfs)  echo "" ;;
        setup_node)       echo "build" ;;
        setup_cluster)    echo "" ;;
diff --git a/config.d/53node_cbuild.defconf b/config.d/53node_cbuild.defconf
new file mode 100644 (file)
index 0000000..b8bea12
--- /dev/null
@@ -0,0 +1,19 @@
+# Hey Emacs, this is a -*- shell-script -*- !!!
+
+node_name_format_cbuild ()
+{
+    local cluster="$1"
+    local index="$2"
+
+    printf '%sbuild%d' "$cluster" "$index"
+}
+
+cluster_setup_tasks_cbuild ()
+{
+    case "$1" in
+       install_packages) echo "clusterfs build" ;;
+       setup_clusterfs)  echo "" ;;
+       setup_node)       echo "build" ;;
+       setup_cluster)    echo "" ;;
+    esac
+}