Removed obsolete 'ccm' scripts in preparation for move to Jenkins.

We will introduce the use of `dcos_launch` in our Jenkinsfile instead of
relying directly on CCM.
This commit is contained in:
Kevin Klues 2017-06-28 17:14:22 -07:00
parent cb4a60931e
commit 7425a6b151
3 changed files with 0 additions and 66 deletions

View File

@ -1,10 +0,0 @@
#!/bin/bash
# This script expects the following env var:
# CCM_AUTH_TOKEN
# CLUSTER_ID
set -e
set -o pipefail
http --ignore-stdin DELETE https://ccm.mesosphere.com/api/cluster/${CLUSTER_ID}/ Authorization:"Token ${CCM_AUTH_TOKEN}"

View File

@ -1,26 +0,0 @@
#!/bin/bash
# This script expects the following env var:
# CLUSTER_NAME
# CCM_AUTH_TOKEN
# DCOS_CHANNEL
# CF_TEMPLATE_URL
set -e
# create cluster
CLUSTER_ID=$(http --ignore-stdin \https://ccm.mesosphere.com/api/cluster/ \
Authorization:"Token ${CCM_AUTH_TOKEN}" \
name=$CLUSTER_NAME \
cloud_provider=0 \
region=${CCM_CLUSTER_REGION:-"eu-central-1"} \
time=120 \
channel=$DCOS_CHANNEL \
cluster_desc="DC/OS CLI testing cluster" \
template_url=$CF_TEMPLATE_URL \
adminlocation=0.0.0.0/0 \
public_agents=1 \
private_agents=1 | \
jq ".id");
echo $CLUSTER_ID

View File

@ -1,30 +0,0 @@
#!/bin/bash
# This script expects the following env var:
# CCM_AUTH_TOKEN
# CLUSTER_ID
set -e
set -o pipefail
# wait for cluster to come up
while true; do
STATUS=$(http --ignore-stdin \
https://ccm.mesosphere.com/api/cluster/${CLUSTER_ID}/ \
Authorization:"Token ${CCM_AUTH_TOKEN}" | \
jq ".status");
if [ $STATUS -eq 0 ]; then
CLUSTER_INFO=$(http GET https://ccm.mesosphere.com/api/cluster/${CLUSTER_ID}/ Authorization:"Token ${CCM_AUTH_TOKEN}" | jq ".cluster_info")
# # ensure cluster_info is populated
if [ ! -z "$CLUSTER_INFO" ]; then
eval CLUSTER_INFO=$CLUSTER_INFO # unescape json
break;
fi;
fi;
sleep 10;
done;
DCOS_URL=$(echo "$CLUSTER_INFO" | jq ".MastersIpAddresses[0]")
DCOS_URL=${DCOS_URL:1:-1} # remove JSON string quotes
echo $DCOS_URL