074-convert-azure-master-to-standby-of-gcp.sh 270 Bytes
Newer Older
1 2 3 4 5 6 7
#!/bin/bash

set -eu

# shellcheck source=/dev/null
source "${BASE}/env_${ENVIRONMENT}"

Matteo Melli's avatar
Matteo Melli committed
8
echo "Convert postgres on $AZURE_MASTER as standby of $GCP_MASTER_CANDIDATE"
9
ssh_remote "$AZURE_MASTER" sudo -u gitlab-psql gitlab-ctl repmgr standby follow "$GCP_MASTER_CANDIDATE"