Check for deprecated and new SDC_URL of cgn-1 DC

This commit is contained in:
jhonas 2022-02-09 11:38:21 +01:00
parent 06e9047fb6
commit a43e2480ed
Signed by: teutat3s
GPG key ID: 924889A86D0B0FEB

View file

@ -10,7 +10,7 @@ triton_account_uuid="$(triton account get --json | json id)"
# set the CNS (container name service) base for auto-generated DNS records
# in public and private networks
# note, this makes assumptions that only work with Greenbaum's public cloud
if env | grep -q "SDC_URL=https://api.greenbaum.cloud"; then
if env | grep -q -E "SDC_URL=https://api.greenbaum.cloud|SDC_URL=https://cgn-1.api.greenbaum.cloud"; then
export TRITON_CNS_SEARCH_DOMAIN_PUBLIC="${triton_account_uuid}.cgn-1.greenbaum.zone"
export TRITON_CNS_SEARCH_DOMAIN_PRIVATE="${triton_account_uuid}.cgn-1.int.greenbaum.zone"
export TRITON_DC=cgn-1