040-disable-chef.sh 289 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}"

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