Add 'workshopctl ssh' helper command

This commit is contained in:
Jerome Petazzoni
2019-05-24 20:27:25 -05:00
parent e48c23e4f4
commit d987f21cba

View File

@@ -391,6 +391,15 @@ _cmd_retag() {
aws_tag_instances $OLDTAG $NEWTAG
}
_cmd ssh "Open an SSH session to the first node of a tag"
_cmd_ssh() {
TAG=$1
need_tag
IP=$(head -1 tags/$TAG/ips.txt)
info "Logging into $IP"
ssh docker@$IP
}
_cmd start "Start a group of VMs"
_cmd_start() {
while [ ! -z "$*" ]; do