summaryrefslogtreecommitdiffstats
path: root/create_node.sh
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2008-07-11 12:14:13 +1000
committerMartin Schwenke <martin@meltin.net>2008-07-11 12:14:13 +1000
commit98269bfc6c10dbf8203dce5e9d05ecb8e99abf25 (patch)
treef0772adafeb043a8c8e7470002c8a7ff054059a8 /create_node.sh
parentf77931b35e4d91ad2291bbf4b0323457fd75c91d (diff)
parente25eb155b3e696d9f33403930de83ab80f23c739 (diff)
Merge commit 'origin/master' into for-tridge
Diffstat (limited to 'create_node.sh')
-rwxr-xr-xcreate_node.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/create_node.sh b/create_node.sh
index 85e7b94..9e02bce 100755
--- a/create_node.sh
+++ b/create_node.sh
@@ -40,12 +40,12 @@ unmount_disk
mkdir -p tmp
MAC1=`get_macaddr $CLUSTER $NODENUMBER 1`
-MAC2=`get_macaddr $CLUSTER $NODENUMBER 1`
-MAC3=`get_macaddr $CLUSTER $NODENUMBER 1`
+MAC2=`get_macaddr $CLUSTER $NODENUMBER 2`
+MAC3=`get_macaddr $CLUSTER $NODENUMBER 3`
UUID=`uuidgen`
echo "Creating $NAME.xml"
-substitute_vars templates/node.xml tmp/$NAME.xml
+substitute_vars $NODE_TEMPLATE tmp/$NAME.xml
# install the XML file
virsh undefine $NAME > /dev/null 2>&1 || true