allomov
1/19/2017 - 9:57 PM

concourse-recreate-all-workers.sh

workers_list=$(bosh vms --json | jq '.Tables | .[0].Rows | map(.[0])' | grep worker | tr -d "\",\ ")
echo "Recreating following workers: "
echo "$workers_list"
while read -r worker; do
    bosh recreate -f "$worker"
done <<< "$workers_list"