summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordalyd <david.daly@mongodb.com>2016-10-17 17:01:15 -0400
committerdalyd <david.daly@mongodb.com>2016-10-19 15:26:38 -0400
commit01048382eb13ebb67a41c913e53ce165e92cb1a7 (patch)
treef9213dcd098f07e362958f6add3cf63a3d50510c
parent0fc6434e6e37b0eec1074ccb2e4aa4913947e008 (diff)
downloadmongo-01048382eb13ebb67a41c913e53ce165e92cb1a7.tar.gz
SERVER-26689: Updated system-perf.yml and longevity.yml to use updated setup-cluster.sh
(cherry picked from commit 6e56f3f3cadc94dae09209df01098f8319835f19)
-rw-r--r--etc/longevity.yml2
-rw-r--r--etc/system_perf.yml12
2 files changed, 5 insertions, 9 deletions
diff --git a/etc/longevity.yml b/etc/longevity.yml
index 34d2616567c..4e642ea39ad 100644
--- a/etc/longevity.yml
+++ b/etc/longevity.yml
@@ -63,7 +63,7 @@ functions:
set -e
set -o verbose
cd ./clusters/${cluster}
- ../../bin/setup-cluster.sh ${cluster}
+ ../../bin/setup-cluster.sh ${cluster} false
echo "EC2 Cluster CREATED."
"configure mongodb cluster":
diff --git a/etc/system_perf.yml b/etc/system_perf.yml
index e9d05938ed5..1f855a177a2 100644
--- a/etc/system_perf.yml
+++ b/etc/system_perf.yml
@@ -108,16 +108,12 @@ functions:
set -o verbose
source ./dsienv.sh
if [ ! -e $HOME/infrastructure_provisioning/terraform/provisioned.${cluster} ]; then
- echo "Provisinging new resources."
- $DSI_PATH/bin/setup-cluster.sh ${cluster} ../terraform
+ EXISTING="false"
else
- # on host with pre-existing resources, call terraform directly to
- # avoid recreating instances due to terraform apply concurrency limitation
- echo "Update expire-on tag for existing resources."
- ./terraform apply -var-file=cluster.json
- # call env.sh to generate ips.sh, etc. for downstream modules
- $DSI_PATH/bin/env.sh
+ EXISTING="true"
fi
+
+ $DSI_PATH/bin/setup-cluster.sh ${cluster} $EXISTING
# handle the case when setup-cluster.sh fail
if [ $? -eq 0 ]; then
echo "Resource provisioned/updated."