#!/bin/bash set -eu # shellcheck source=/dev/null source "${BASE}/env_${ENVIRONMENT}" for host in "${AZURE_HOSTS[@]}" "${GCP_HOSTS[@]}"; do echo "Stopping chef on $host" ssh_remote "$host" sudo service chef-client stop ssh_remote "$host" sudo mv /etc/chef /etc/chef.migration done