You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# (c) Copyright 2016 DataNexus Inc. All Rights Reserved.
# postgresql deployment wrapper
export application=postgresql # application overlay to deploy
: "${AWS_PROFILE:=datanexus}" && export AWS_PROFILE=$AWS_PROFILE # sets this to a reasonable ~/.aws/credentials default
: "${AZURE_PROFILE:=datanexus}" && export AZURE_PROFILE="$AZURE_PROFILE" # sets this to a reasonable ~/.azure/credentials default
if [ $# -eq 0 ] || [ "$1" = "-h" ] ; then
printf "Usage: deploy [-h]\\thelp\\n"
printf "\\t deploy [FILE | TENANT PROJECT CLOUD REGION DOMAIN CLUSTER SSH_USER TENANT_PATH]\\tdeploy %s overlay with FILE configuration or with the specified values\\n" "$application"
printf "Example: deploy datanexus demo aws us-east-1 development a centos /tmp/datanexus\\n"
printf "\\t deploy /tmp/configuration.yml\\n"
exit 0
fi
# likely called by the orchestrator to just pass through everything
if [ $# -eq 4 ] && [ "$1" = "-e" ]; then
./provision-postgresql "$3" "$4" "$1" "$2"
# deploy postgresql as an overlay or a full deployment via configuration file