072-enable-consul.sh 252 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
#!/bin/bash

set -eu

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

# chef
for host in "${GCP_HOSTS[@]}" "${AZURE_HOSTS[@]}"; do
  echo "Starting consul agent on $host"
  ssh_remote "$host" sudo sv start /opt/gitlab/sv/consul
done