We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 13c8cae + 3c52611 commit 64ffeacCopy full SHA for 64ffeac
1 file changed
contrib/digitalocean/provision-do-cluster.sh
@@ -18,11 +18,16 @@ CONTRIB_DIR=$(dirname $THIS_DIR)
18
REGION_SLUG=$1
19
SSH_ID=$2
20
SIZE=$3
21
+PREFIX=$4
22
+
23
+if [ -z "$PREFIX" ]; then
24
+ PREFIX="deis"
25
+fi
26
27
source $CONTRIB_DIR/utils.sh
28
29
if [ -z "$3" ]; then
- echo_red 'Usage: provision-do-cluster.sh <REGION_SLUG> <SSH_ID> <SIZE>'
30
+ echo_red 'Usage: provision-do-cluster.sh <REGION_SLUG> <SSH_ID> <SIZE> [PREFIX]'
31
exit 1
32
fi
33
@@ -58,7 +63,7 @@ fi
58
63
59
64
# launch the Deis cluster on DigitalOcean
60
65
i=1 ; while [[ $i -le $DEIS_NUM_INSTANCES ]] ; do \
61
- NAME=deis-$i
66
+ NAME="$PREFIX-$i"
62
67
echo_yellow "Provisioning ${NAME}..."
68
docl create $NAME $BASE_IMAGE_ID $SIZE $REGION_SLUG --key=$SSH_ID --private-networking --user-data=$CONTRIB_DIR/coreos/user-data --wait
69
((i = i + 1)) ; \
0 commit comments