diff --git a/launch-node.sh b/launch-node.sh index d8b7fc7..51b3dc6 100755 --- a/launch-node.sh +++ b/launch-node.sh @@ -7,6 +7,7 @@ KEY_NAME="$1" KEY_PATH="$2" IMAGE="node" INSTANCE_NAME="$3" +FLAVOR="$4" . $THISDIR/functions @@ -17,7 +18,7 @@ nova delete "$INSTANCE_NAME" || true nova boot \ --poll \ --image "$IMAGE" \ - --flavor "performance1-8" \ + --flavor "$FLAVOR" \ --key-name $KEY_NAME $INSTANCE_NAME IP=$(xitc-get-ip-address-of-instance $INSTANCE_NAME) diff --git a/update-node-image.sh b/update-node-image.sh index 8ed350c..140c635 100755 --- a/update-node-image.sh +++ b/update-node-image.sh @@ -10,6 +10,7 @@ KEY_NAME="$1" KEY_PATH="$2" INSTANCE_NAME="$3" NODE_IMAGE="node" +FLAVOR="$4" # Use this configuration to start with a cloud image IMAGE="62df001e-87ee-407c-b042-6f4e13f5d7e1" @@ -26,7 +27,7 @@ nova image-delete "$NODE_IMAGE" || true nova boot \ --poll \ --image "$IMAGE" \ - --flavor "performance1-8" \ + --flavor "$FLAVOR" \ --key-name $KEY_NAME $INSTANCE_NAME IP=$(xitc-get-ip-address-of-instance $INSTANCE_NAME)