Evan Powell
21373a0568
Test that null communicator conforms to interface
2016-06-30 16:17:22 -05:00
Evan Powell
542fbf3947
Add new interface method to the 'none' communicator
2016-06-30 14:58:07 -05:00
Alex Brown
0cea0e5c24
Swap width and height when allocating a pty
...
RequestPty from crypto/ssh looks like this:
func (s *Session) RequestPty(term string, h, w int, termmodes TerminalModes) error
So arguments 2 and 3 are height and width, respectively. I'm not sure if
the original was just a typo, or if there's an actual reason we want a
40 column terminal. Either way, having a terminal this narrow led me to
a really "fun" bug[0], where `wget` in my shell provisioner scripts
would segfault when trying to display the progress bar.
[0] http://lists.gnu.org/archive/html/bug-wget/2016-02/msg00041.html
2016-04-06 15:40:19 -04:00
Christopher Boumenot
b57ed27352
Add support for NTLM the WinRM communicator.
...
WinRM exposes an HTTP transport decorator that can be used for different
authentication schemes. Windows on Azures requires this if one is to use
the out of the box configuration.
2016-03-10 10:53:38 -08:00
Vasiliy Tolstov
feee19e4ed
file provisioner improvements
...
* allow specify source/destination as dir
* allow specify many files as source
Signed-off-by: Vasiliy Tolstov <[email protected] >
2016-02-12 11:48:28 -08:00
Chris Bednarski
569e6cc464
go fmt
2016-02-08 17:34:06 -08:00
Chris Bednarski
3d9410f176
Merge branch 'sftp' of https://github.com/2opremio/packer into f-sftp
2016-02-02 14:16:19 -08:00
Chris Bednarski
6587926a2b
Merge pull request #2848 from epowell/master
...
Implement a null-object communicator for 'none'
2016-01-21 12:44:36 -08:00
Ben Goodwin
64152e4a64
Implement WinRM-over-HTTPS
2016-01-12 21:28:20 -05:00
Evan Powell
bb8ced8cc9
Implement a null-object communicator for 'none'
...
Fixes #2736
2015-10-20 17:00:48 -05:00
Mark Peek
cad9899cfb
communicator/winrm: call wg.Add() before running goroutine
2015-10-14 09:08:39 -07:00
Mark Peek
e27b2bcf23
communicator/winrm: fix race in runCommand
2015-10-14 08:25:39 -07:00
Alfonso Acosta
a59c82d7a6
Add sftp file transfer support
...
Adds a new config option: "ssh_file_transfer_method", which can be set to "scp"
or "sftp" (defaults to "scp")
2015-07-26 23:49:18 +00:00
Chris Bednarski
29e6194e49
Added a warning log so we can diagnose failure cases
2015-07-15 12:29:42 -07:00
Chris Bednarski
8e3559c3b1
Guard against uninitialized pointers in io.Copy to fix #2416
2015-07-15 12:26:19 -07:00
Chris Bednarski
0ca03f09c1
Fix some style issues and add a doc to ErrHandshakeTimeout
2015-07-02 11:58:51 -07:00
Chris Bednarski
5dd8ae45c7
Cleanup some resources we may have created
2015-07-02 03:55:18 -07:00
Chris Bednarski
03850cafc6
Implemented timeout around the SSH handshake, including a unit test
2015-07-02 03:40:47 -07:00
Mitchell Hashimoto
8657b1e9d8
communicator/ssh: more logging
2015-06-29 11:40:08 -07:00
Mark Peek
d8b6c94012
Fix typo: diabled -> disabled
2015-06-26 10:52:21 -07:00
Mitchell Hashimoto
a019575026
helper/communicator: support disabling SSH agent
2015-06-23 14:52:37 -07:00
Mitchell Hashimoto
cbaaf0da52
communicator/ssh: support for bastion SSH
2015-06-17 22:10:42 +02:00
Mitchell Hashimoto
49769a17c2
Merge pull request #2243 from mitchellh/f-powershell
...
Windows provisioners: powershell, windows-shell, windows-restart
2015-06-17 17:51:42 +02:00
Mitchell Hashimoto
686d4413ec
communicator/winrm: error if download
2015-06-15 15:08:56 -07:00
Alexander Golovko
8ecca2aa54
implement ssh.Download()
2015-06-15 15:08:18 -07:00
Mitchell Hashimoto
b25b7d1fb2
communicator/winrm: log exit code of processes
2015-06-14 11:19:26 -07:00
Mitchell Hashimoto
6077c796f5
communicator/winrm: fix failing test
2015-06-13 22:10:50 -07:00
Mitchell Hashimoto
7a39758054
helper/communicator: WinRM stuff
2015-06-13 22:05:48 -07:00
Mitchell Hashimoto
0c0f876654
communicator/winrm
2015-06-13 22:00:40 -07:00
Mitchell Hashimoto
acf31c31a1
communicator/ssh: update logging
2015-06-13 19:00:28 -07:00