110-check-repmgr-state.sh 306 Bytes
Newer Older
1 2 3 4
#!/bin/bash

set -eu

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

8 9 10
echo "Checking repmgr state for host $AZURE_MASTER"
echo
echo "select * from repmgr_gitlab_cluster.repl_nodes" \
11
  | ssh_remote "$AZURE_MASTER" sudo -u gitlab-psql gitlab-psql -v ON_ERROR_STOP=1 -d gitlab_repmgr
12
echo