summaryrefslogtreecommitdiffstats
path: root/cluster.sh
diff options
context:
space:
mode:
Diffstat (limited to 'cluster.sh')
-rwxr-xr-xcluster.sh18
1 files changed, 10 insertions, 8 deletions
diff --git a/cluster.sh b/cluster.sh
index 3aaabd07d..6363e1e8d 100755
--- a/cluster.sh
+++ b/cluster.sh
@@ -23,25 +23,27 @@ EOT
# @formatter:on
function create_cluser {
+ for (( i = 0; i < $MASTERS; i ++ )); do
+ ./cloud.rb "${PROVIDER}" launch -e "${ENV}" --type=$MASTER_PLAYBOOK
+ done
+
for (( i = 0; i < $MINIONS; i ++ )); do
./cloud.rb "${PROVIDER}" launch -e "${ENV}" --type=$MINION_PLAYBOOK
done
- for (( i = 0; i < $MASTERS; i ++ )); do
- ./cloud.rb "${PROVIDER}" launch -e "${ENV}" --type=$MASTER_PLAYBOOK
- done
update_cluster
- echo -e "\nCreated ${MASTERS} ${MASTER_PLAYBOOK} masters and ${MINIONS} ${MINION_PLAYBOOK} minions using ${PROVIDER} provider\n"
+
+ echo -e "\nCreated ${MASTERS}/${MASTER_PLAYBOOK} masters and ${MINIONS}/${MINION_PLAYBOOK} minions using ${PROVIDER} provider\n"
}
function update_cluster {
- for (( i = 0; i < $MINIONS; i ++ )); do
- ./cloud.rb "${PROVIDER}" config -e "${ENV}" --type=$MINION_PLAYBOOK
- done
-
for (( i = 0; i < $MASTERS; i ++ )); do
./cloud.rb "${PROVIDER}" config -e "${ENV}" --type=$MASTER_PLAYBOOK
done
+
+ for (( i = 0; i < $MINIONS; i ++ )); do
+ ./cloud.rb "${PROVIDER}" config -e "${ENV}" --type=$MINION_PLAYBOOK
+ done
}
function terminate_cluster {