Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
packer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kristopher Ruzic
packer
Commits
71d8c661
Commit
71d8c661
authored
Jun 13, 2015
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1968 from bhcleek/master
do not request a pty
parents
f1cef0ba
2184892f
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
9 deletions
+8
-9
builder/vmware/iso/builder.go
builder/vmware/iso/builder.go
+1
-1
builder/vmware/iso/driver_esx5.go
builder/vmware/iso/driver_esx5.go
+0
-1
builder/vmware/vmx/builder.go
builder/vmware/vmx/builder.go
+1
-1
common/step_connect_ssh.go
common/step_connect_ssh.go
+3
-3
communicator/ssh/communicator.go
communicator/ssh/communicator.go
+3
-3
No files found.
builder/vmware/iso/builder.go
View file @
71d8c661
...
@@ -302,7 +302,7 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe
...
@@ -302,7 +302,7 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe
SSHAddress
:
driver
.
SSHAddress
,
SSHAddress
:
driver
.
SSHAddress
,
SSHConfig
:
vmwcommon
.
SSHConfigFunc
(
&
b
.
config
.
SSHConfig
),
SSHConfig
:
vmwcommon
.
SSHConfigFunc
(
&
b
.
config
.
SSHConfig
),
SSHWaitTimeout
:
b
.
config
.
SSHWaitTimeout
,
SSHWaitTimeout
:
b
.
config
.
SSHWaitTimeout
,
NoPty
:
b
.
config
.
SSHSkipRequestPty
,
Pty
:
!
b
.
config
.
SSHSkipRequestPty
,
},
},
&
vmwcommon
.
StepUploadTools
{
&
vmwcommon
.
StepUploadTools
{
RemoteType
:
b
.
config
.
RemoteType
,
RemoteType
:
b
.
config
.
RemoteType
,
...
...
builder/vmware/iso/driver_esx5.go
View file @
71d8c661
...
@@ -335,7 +335,6 @@ func (d *ESX5Driver) connect() error {
...
@@ -335,7 +335,6 @@ func (d *ESX5Driver) connect() error {
User
:
d
.
Username
,
User
:
d
.
Username
,
Auth
:
auth
,
Auth
:
auth
,
},
},
NoPty
:
true
,
}
}
comm
,
err
:=
ssh
.
New
(
address
,
sshConfig
)
comm
,
err
:=
ssh
.
New
(
address
,
sshConfig
)
...
...
builder/vmware/vmx/builder.go
View file @
71d8c661
...
@@ -94,7 +94,7 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe
...
@@ -94,7 +94,7 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe
SSHAddress
:
driver
.
SSHAddress
,
SSHAddress
:
driver
.
SSHAddress
,
SSHConfig
:
vmwcommon
.
SSHConfigFunc
(
&
b
.
config
.
SSHConfig
),
SSHConfig
:
vmwcommon
.
SSHConfigFunc
(
&
b
.
config
.
SSHConfig
),
SSHWaitTimeout
:
b
.
config
.
SSHWaitTimeout
,
SSHWaitTimeout
:
b
.
config
.
SSHWaitTimeout
,
NoPty
:
b
.
config
.
SSHSkipRequestPty
,
Pty
:
!
b
.
config
.
SSHSkipRequestPty
,
},
},
&
vmwcommon
.
StepUploadTools
{
&
vmwcommon
.
StepUploadTools
{
RemoteType
:
b
.
config
.
RemoteType
,
RemoteType
:
b
.
config
.
RemoteType
,
...
...
common/step_connect_ssh.go
View file @
71d8c661
...
@@ -35,8 +35,8 @@ type StepConnectSSH struct {
...
@@ -35,8 +35,8 @@ type StepConnectSSH struct {
// SSHWaitTimeout is the total timeout to wait for SSH to become available.
// SSHWaitTimeout is the total timeout to wait for SSH to become available.
SSHWaitTimeout
time
.
Duration
SSHWaitTimeout
time
.
Duration
//
NoPty, if true, will not
request a Pty from the remote end.
//
Pty, if true, will
request a Pty from the remote end.
No
Pty
bool
Pty
bool
comm
packer
.
Communicator
comm
packer
.
Communicator
}
}
...
@@ -140,7 +140,7 @@ func (s *StepConnectSSH) waitForSSH(state multistep.StateBag, cancel <-chan stru
...
@@ -140,7 +140,7 @@ func (s *StepConnectSSH) waitForSSH(state multistep.StateBag, cancel <-chan stru
config
:=
&
ssh
.
Config
{
config
:=
&
ssh
.
Config
{
Connection
:
connFunc
,
Connection
:
connFunc
,
SSHConfig
:
sshConfig
,
SSHConfig
:
sshConfig
,
NoPty
:
s
.
No
Pty
,
Pty
:
s
.
Pty
,
}
}
log
.
Println
(
"Attempting SSH connection..."
)
log
.
Println
(
"Attempting SSH connection..."
)
...
...
communicator/ssh/communicator.go
View file @
71d8c661
...
@@ -33,8 +33,8 @@ type Config struct {
...
@@ -33,8 +33,8 @@ type Config struct {
// case an error occurs.
// case an error occurs.
Connection
func
()
(
net
.
Conn
,
error
)
Connection
func
()
(
net
.
Conn
,
error
)
//
NoPty, if true, will not
request a pty from the remote end.
//
Pty, if true, will
request a pty from the remote end.
No
Pty
bool
Pty
bool
}
}
// Creates a new packer.Communicator implementation over SSH. This takes
// Creates a new packer.Communicator implementation over SSH. This takes
...
@@ -65,7 +65,7 @@ func (c *comm) Start(cmd *packer.RemoteCmd) (err error) {
...
@@ -65,7 +65,7 @@ func (c *comm) Start(cmd *packer.RemoteCmd) (err error) {
session
.
Stdout
=
cmd
.
Stdout
session
.
Stdout
=
cmd
.
Stdout
session
.
Stderr
=
cmd
.
Stderr
session
.
Stderr
=
cmd
.
Stderr
if
!
c
.
config
.
No
Pty
{
if
c
.
config
.
Pty
{
// Request a PTY
// Request a PTY
termModes
:=
ssh
.
TerminalModes
{
termModes
:=
ssh
.
TerminalModes
{
ssh
.
ECHO
:
0
,
// do not echo
ssh
.
ECHO
:
0
,
// do not echo
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment