041-disable-consul.sh 617 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
#!/bin/bash

set -eu

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

for host in "${AZURE_PGBOUNCERS[@]}"
do
  echo "Stopping consul on $host"
  ssh_remote "$host" sudo sv stop /opt/gitlab/sv/consul
done
for host in "${GCP_PGBOUNCERS[@]}"
do
  echo "Stopping consul on $host"
  ssh_remote "$host" sudo sv stop /opt/gitlab/sv/consul
done

for host in "${AZURE_HOSTS[@]}"
do
  echo "Stopping consul on $host"
  ssh_remote "$host" sudo sv stop /opt/gitlab/sv/consul
done

for host in "${GCP_HOSTS[@]}"
do
  echo "Stopping consul on $host"
  ssh_remote "$host" sudo sv stop /opt/gitlab/sv/consul
done