Minimize metadata when creating startup scripts.

Strip all comments when creating the omnibus startup scripts for starting the VMs.  This reduces some noise and may prevent us from hitting the eventual limits there.
pull/6/head
Joe Beda 2014-06-06 22:26:39 -07:00
parent 9f25cd29c5
commit 2e5be7c4e5
2 changed files with 4 additions and 4 deletions

View File

@ -42,7 +42,7 @@ detect-master
(
echo MASTER_RELEASE_TAR=$RELEASE_NORMALIZED/master-release.tgz
cat $(dirname $0)/templates/download-release.sh
grep -v "^#" $(dirname $0)/templates/download-release.sh
echo "echo Executing configuration"
echo "sudo salt '*' mine.update"
echo "sudo salt --force-color '*' state.highstate"

View File

@ -62,8 +62,8 @@ HTPASSWD=$(cat ${KUBE_TEMP}/htpasswd)
echo "MASTER_NAME=${MASTER_NAME}"
echo "MASTER_RELEASE_TAR=${RELEASE_NORMALIZED}/master-release.tgz"
echo "MASTER_HTPASSWD='${HTPASSWD}'"
cat $(dirname $0)/templates/download-release.sh
cat $(dirname $0)/templates/salt-master.sh
grep -v "^#" $(dirname $0)/templates/download-release.sh
grep -v "^#" $(dirname $0)/templates/salt-master.sh
) > ${KUBE_TEMP}/master-start.sh
echo "Starting VMs and configuring firewalls"
@ -86,7 +86,7 @@ for (( i=0; i<${#MINION_NAMES[@]}; i++)); do
echo "#! /bin/bash"
echo "MASTER_NAME=${MASTER_NAME}"
echo "MINION_IP_RANGE=${MINION_IP_RANGES[$i]}"
cat $(dirname $0)/templates/salt-minion.sh
grep -v "^#" $(dirname $0)/templates/salt-minion.sh
) > ${KUBE_TEMP}/minion-start-${i}.sh
gcloud compute instances create ${MINION_NAMES[$i]} \