Skip to content

iTerm / OpenStack Shortcut to SSH into multiple instances at once

Notifications You must be signed in to change notification settings

marcopolo4k/BroadcastNova

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

BroadcastNova

Using iTerm2, paste results from 'nova list' into a temp file, then connect to all your VM's at once. Allows you to send them all commands and view all the results in real time.

Usage

$ Broadcast-Launch.py -h

Broadcast-Launch.py [-h|-a|-s|-b|-i|-w|-v|-g <glob_pattern>] ( [-f <filepath>] )

Optional Options:
-h    This help
-v    Verbose
-f    Use custom file for input. Default is:
          ${HOME}/.config/broadcastnova/input-servers.txt
-w    Show contents of input file, can be combined with -g

Required Options (only one):
-a    SSH into all VM's
-g    SSH into any VM's matching a provided glob, like "*search_term*"
# These also satify the requirement, but are tailored for my own workflow
  -s    SSH into only sandbox VM's
  -b    SSH into only binary VM's
  -i    SSH into only idev VM's

I use these aliases on my Mac (~/.bash_profile or ~/.zshrc):

alias broadcast="${HOME}/git/BroadcastNova/Broadcast-Launch.py"
broadcastpaste() {
    pbpaste > "${HOME}/.config/broadcastnova/input-servers.txt"
}

Contribute

  • The python3 version is latest and the only one supported.
  • If anyone wants to make contributions using bash or perl, check git history, I'd be willing to switch.

Credit

About

iTerm / OpenStack Shortcut to SSH into multiple instances at once

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published