Skip to content

Instantly share code, notes, and snippets.

@allomov
Created January 19, 2017 21:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save allomov/8ee50cd7de61fb4ef5d1c3d68cc7c42e to your computer and use it in GitHub Desktop.
Save allomov/8ee50cd7de61fb4ef5d1c3d68cc7c42e to your computer and use it in GitHub Desktop.
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"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment