Merge pull request #2684 from hashicorp/f-print-bastion-host-details

communicator/ssh: print ssh bastion host details to output
This commit is contained in:
Paul Hinze 2015-07-16 12:13:32 -05:00
commit 98891aef96
1 changed files with 15 additions and 0 deletions

View File

@ -96,6 +96,21 @@ func (c *Communicator) Connect(o terraform.UIOutput) (err error) {
c.connInfo.KeyFile != "", c.connInfo.KeyFile != "",
c.connInfo.Agent, c.connInfo.Agent,
)) ))
if c.connInfo.BastionHost != "" {
o.Output(fmt.Sprintf(
"Using configured bastion host..."+
" Host: %s\n"+
" User: %s\n"+
" Password: %t\n"+
" Private key: %t\n"+
" SSH Agent: %t",
c.connInfo.BastionHost, c.connInfo.BastionUser,
c.connInfo.BastionPassword != "",
c.connInfo.BastionKeyFile != "",
c.connInfo.Agent,
))
}
} }
log.Printf("connecting to TCP connection for SSH") log.Printf("connecting to TCP connection for SSH")