Check for deprecated and new SDC_URL of cgn-1 DC
This commit is contained in:
parent
06e9047fb6
commit
a43e2480ed
|
@ -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
|
# set the CNS (container name service) base for auto-generated DNS records
|
||||||
# in public and private networks
|
# in public and private networks
|
||||||
# note, this makes assumptions that only work with Greenbaum's public cloud
|
# 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_PUBLIC="${triton_account_uuid}.cgn-1.greenbaum.zone"
|
||||||
export TRITON_CNS_SEARCH_DOMAIN_PRIVATE="${triton_account_uuid}.cgn-1.int.greenbaum.zone"
|
export TRITON_CNS_SEARCH_DOMAIN_PRIVATE="${triton_account_uuid}.cgn-1.int.greenbaum.zone"
|
||||||
export TRITON_DC=cgn-1
|
export TRITON_DC=cgn-1
|
||||||
|
|
Loading…
Reference in a new issue