diff options
author | Jhon Honce <jhonce@redhat.com> | 2014-10-01 15:39:26 -0700 |
---|---|---|
committer | Jhon Honce <jhonce@redhat.com> | 2014-10-02 15:36:11 -0700 |
commit | b1b2cbe00cfe766a414972352730454c1e79c2c2 (patch) | |
tree | da75bd9df2bca097bf5937f760597990e85e9b4c /cluster.sh | |
parent | 2808f726dacb60e58c289c18a91258e0526705a3 (diff) | |
download | openshift-b1b2cbe00cfe766a414972352730454c1e79c2c2.tar.gz openshift-b1b2cbe00cfe766a414972352730454c1e79c2c2.tar.bz2 openshift-b1b2cbe00cfe766a414972352730454c1e79c2c2.tar.xz openshift-b1b2cbe00cfe766a414972352730454c1e79c2c2.zip |
Finish origin -> openshift rename
Diffstat (limited to 'cluster.sh')
-rwxr-xr-x | cluster.sh | 18 |
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 { |