Add secondary-range-name to the gce.conf

This commit is contained in:
Bowei Du 2017-09-01 14:27:01 -07:00
parent 44c5182187
commit 1aeebcf6d3
2 changed files with 12 additions and 0 deletions

View File

@ -270,6 +270,12 @@ EOF
use_cloud_config="true"
cat <<EOF >>/etc/gce.conf
alpha-features = ${GCE_ALPHA_FEATURES}
EOF
fi
if [[ -n "${SECONDARY_RANGE_NAME:-}" ]]; then
use_cloud_config="true"
cat <<EOF >> /etc/gce.conf
secondary-range-name = ${SECONDARY-RANGE-NAME}
EOF
fi
if [[ "${use_cloud_config}" != "true" ]]; then

View File

@ -430,6 +430,12 @@ EOF
use_cloud_config="true"
cat <<EOF >>/etc/gce.conf
alpha-features = ${GCE_ALPHA_FEATURES}
EOF
fi
if [[ -n "${SECONDARY_RANGE_NAME:-}" ]]; then
use_cloud_config="true"
cat <<EOF >> /etc/gce.conf
secondary-range-name = ${SECONDARY-RANGE-NAME}
EOF
fi
if [[ "${use_cloud_config}" != "true" ]]; then