Set GCE_ALPHA_FEATURES environment variable in gce.conf

This commit is contained in:
Yu-Ju Hong 2017-08-22 17:14:45 -07:00
parent 6858bb4e60
commit ab07115ff2
2 changed files with 12 additions and 0 deletions

View File

@ -264,6 +264,12 @@ EOF
use_cloud_config="true"
cat <<EOF >>/etc/gce.conf
multizone = ${MULTIZONE}
EOF
fi
if [[ -n "${GCE_ALPHA_FEATURES:-}" ]]; then
use_cloud_config="true"
cat <<EOF >>/etc/gce.conf
alpha-features = ${GCE_ALPHA_FEATURES}
EOF
fi
if [[ "${use_cloud_config}" != "true" ]]; then

View File

@ -425,6 +425,12 @@ EOF
use_cloud_config="true"
cat <<EOF >>/etc/gce.conf
multizone = ${MULTIZONE}
EOF
fi
if [[ -n "${GCE_ALPHA_FEATURES:-}" ]]; then
use_cloud_config="true"
cat <<EOF >>/etc/gce.conf
alpha-features = ${GCE_ALPHA_FEATURES}
EOF
fi
if [[ "${use_cloud_config}" != "true" ]]; then