Skip to content

Instantly share code, notes, and snippets.

@tbreeds
Created August 8, 2018 03:59
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 tbreeds/2116e4ec8f6e0e50cae26713fb0e9a49 to your computer and use it in GitHub Desktop.
Save tbreeds/2116e4ec8f6e0e50cae26713fb0e9a49 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
source stackrc
openstack server list -f value -c Name -c Networks | while read name network ; do
echo screen -t $name $((i++)) ssh -oStrictHostKeyChecking=no heat-admin@${network##ctlplane=} -qt sudo -i
done > screenrc.heat-admin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment