110-check-repmgr-state.sh 212 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash

set -eu

for host in "${AZURE_HOSTS[@]}" "${GCP_HOSTS[@]}"
do
  echo "Checking repmgr state for host $host"
  echo
  ssh_remote "$host" sudo -u gitlab-psql gitlab-ctl repmgr cluster show
  echo
done