043-reset-automatic-failover-state.sh 247 Bytes
Newer Older
1 2 3 4 5 6 7 8 9
#!/bin/bash

set -eu

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

echo "TRUNCATE repmgr_gitlab_cluster.repl_nodes" \
  | ssh_remote "$GCP_MASTER_CANDIDATE" sudo -u gitlab-psql gitlab-psql -v ON_ERROR_STOP=1 -d gitlab_repmgr