forked from elhmn/ac-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
create_cluster.sh
executable file
·33 lines (26 loc) · 1.09 KB
/
create_cluster.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# ************************************************************************** #
# #
# create_cluster.sh #
# #
# By: elhmn <www.elhmn.com> #
# <[email protected]> #
# #
# Created: by elhmn #
# Updated: Sun Aug 26 10:13:15 2018 by bmbarga #
# #
# ************************************************************************** #
#!/bin/sh
# Usage :
# ./script.sh vmName vmCount
source createSwarmCluster.sh
vmName=acvm
vmCount=6
if [ ! -z "$2" ]; then
echo "vmCount= $2"
vmCount=$2
fi
if [ ! -z "$1" ]; then
echo "vmName= $1"
vmName=$1
fi
setupNodes $vmName $vmCount