Chris Bednarski
1764238c0b
Added [DEBUG] prefix to log messages
2015-08-19 13:15:23 -07:00
Chris Bednarski
6e8c6a15ad
Implement fix, add comments so it's more apparent why we're doing special logic
2015-08-14 17:49:08 -07:00
Chris Bednarski
7ecfb057ff
Added test case to catch deleting local source file when checksum doesn't match
2015-08-14 17:37:57 -07:00
Chris Bednarski
424ee65866
Added a log message when we use a local file instead of downloading one
2015-08-14 17:34:39 -07:00
Chris Bednarski
70af28be47
Added cake fixture for testing file:/// downloads
2015-08-14 17:34:04 -07:00
Mitchell Hashimoto
0416939c08
common: always reset progress to 0 for downloads
2015-06-22 14:59:38 -07:00
Mitchell Hashimoto
117579808f
common: add the current progress to the total size
2015-06-22 14:58:27 -07:00
Mitchell Hashimoto
944b4bf46c
common: delete file if checksum fails
2015-06-22 12:17:29 -07:00
Mitchell Hashimoto
2f530534d2
common/download: resume test
2015-06-22 12:14:35 -07:00
Mitchell Hashimoto
aa7d3b7841
Merge pull request #2245 from vtolstov/iso
...
resume download after fail
2015-06-22 12:03:47 -07:00
Mitchell Hashimoto
bf456f35f9
common: download client tests
...
/cc @cbednarski
2015-06-22 12:02:38 -07:00
Mitchell Hashimoto
897888fde3
common: fix potential panic case
2015-06-21 19:58:18 -07:00
Vasiliy Tolstov
d98de209cb
fallback to not ranged request if server lacks HEAD
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2015-06-16 01:04:48 +03:00
Mitchell Hashimoto
2d13db300c
packer: HookProvision errors if no communicator
2015-06-15 10:26:46 -07:00
Vasiliy Tolstov
382fa01e6f
resume download after fail
...
close #2106
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2015-06-15 09:53:16 +03:00
Mitchell Hashimoto
a1ceb5a7ef
common: remove StepConnectSSH
2015-06-13 18:10:37 -04:00
Mitchell Hashimoto
71d8c6610a
Merge pull request #1968 from bhcleek/master
...
do not request a pty
2015-06-13 16:23:31 -04:00
Mitchell Hashimoto
1e853f9f1f
common: revert some changes from #2121 for Windows
2015-06-13 10:21:09 -04:00
Clint Shryock
04e174fae8
builder/amazon: Properly return error code on ssh errors
2015-06-11 16:21:29 -05:00
Mitchell Hashimoto
f6f9cca7ce
Merge pull request #2189 from mitchellh/b-download-extension
...
common: StepDownload can force an extension
2015-06-09 20:56:43 -07:00
Mitchell Hashimoto
23a48d6619
go fmt
2015-06-08 21:34:20 -07:00
Mitchell Hashimoto
e65e2d104a
common: StepDownload can force an extension
2015-06-08 20:41:39 -07:00
jszwedko
b1497b951c
code.google.com/p/go.crypto/ssh -> golang.org/x/crypto/ssh
...
code.google.com/p/go.crypto/ssh is now at golang.org/x/crypto/ssh as of
https://code.google.com/p/go/source/detail?spec=svn.crypto.69e2a90ed92d03812364aeb947b7068dc42e561e&repo=crypto&r=8fec09c61d5d66f460d227fd1df3473d7e015bc6
Using the code.google.com import redirects properly, but runs into
issues if you try to use a subpackage of `ssh`, e.g. `agent` which
refers to golang.org/x/crypto/ssh causing conflicts if your types expect
code.google.com/p/go.crypto/ssh.
This is a precursor to a PR for #1066 .
2015-05-28 08:17:49 -07:00
Mitchell Hashimoto
44008c321b
Merge pull request #2121 from josharian/no-scrub-empty
...
common: two minor fixes
2015-05-27 20:17:51 -07:00
Mitchell Hashimoto
adb6b43dd8
common: remove unused config methods
2015-05-27 14:58:09 -07:00
Mitchell Hashimoto
dd0a775500
common/command: delete
2015-05-26 09:51:47 -07:00
Josh Bleecher Snyder
2fe785ed35
common: remove dead code
...
The referenced bug was fixed in Go 1.2,
and Packer requires Go 1.2+.
2015-05-18 15:13:36 -07:00
Josh Bleecher Snyder
76c8cfd498
common: don't scrub ""
...
If the access_key or secret_key were loaded from
somewhere other than the packer file then
ScrubConfig can get called to scrub "" and "".
This results in very long output:
<Filtered><<Filtered>F<Filtered>i...
Don't do that.
2015-05-18 15:13:01 -07:00
Grégoire Pineau
97c56347a1
Better error reporting when a config key in template is Unknown
...
This patch will allow to fix the following bug much faster:
```
1 error(s) occurred:
* Unknown configuration key: output_directory
```
Related configuration:
```
"output_directory ": "build/sl_base/",
```
After the patch, the error reporting will be:
```
1 error(s) occurred:
* Unknown configuration key: "output_directory¤"
```
2015-03-05 10:23:21 +01:00
Emil Hessman
952ae5161b
common: fix formatting directives in tests
...
Fixes the following vet reports:
common/step_create_floppy_test.go:79: possible formatting directive in Fatal call
common/step_create_floppy_test.go:89: possible formatting directive in Fatal call
common/step_create_floppy_test.go:180: possible formatting directive in Fatal call
common/step_create_floppy_test.go:190: possible formatting directive in Fatal call
2015-02-25 05:43:18 +01:00
Billie H. Cleek
2184892f8a
do not request a pty
...
Change the default behavior from requesting a PTY when executing a
command with the ssh communicator to requesting a PTY only when
configured to do so.
Update the vmware builders to be fully backward compatible with the new
behavior.
2015-02-12 20:18:54 -08:00
Seth Vargo
347f02a7f2
Merge pull request #1402 from jasonberanek/858-issue
...
fix build name ConfigTemplate processing [GH-858]
2014-11-26 16:30:36 -05:00
Mitchell Hashimoto
8dbe0f065c
Remove version from "packer" package
2014-10-27 20:51:34 -07:00
Mitchell Hashimoto
42e9e734b9
common: don't wait SSH on first try
2014-09-10 14:04:56 -07:00
Mitchell Hashimoto
01abbc4460
common/ssh: error if encrypted key is used
2014-09-03 20:25:31 -07:00
Mitchell Hashimoto
76a8221636
builder/*: extract key path to ssh.Signer
2014-09-03 20:23:39 -07:00
Jason A. Beranek
56ec6bf7af
common/command/template,packer/template: fix build name ConfigTemplate processing [GH-858]
2014-08-09 21:52:33 -05:00
Mitchell Hashimoto
34834057c3
common: add test for empty val
2014-05-06 18:52:02 -07:00
Mitchell Hashimoto
5c5d62733f
fmt
2014-05-01 14:24:19 -07:00
Ross Smith II
3d960ccc69
go fmt
2014-04-29 12:29:15 -07:00
Ross Smith II
e422d45f92
Allow wildcards and directories for floppy_files parameter
2014-04-29 12:27:34 -07:00
Mitchell Hashimoto
5cd2cfa563
comment so future-mitchell knows what I've done
2014-04-28 16:19:35 -07:00
Mitchell Hashimoto
ba05119a75
common: user variable conversion to non-string types works [GH-1079]
2014-04-28 16:18:45 -07:00
Mitchell Hashimoto
d5981c69f2
common: config strings to slices [GH-950]
2014-04-27 14:47:16 -07:00
Mitchell Hashimoto
5dec2ddb9c
common: weakly decode the PackerConfig
2014-04-26 14:23:22 -07:00
Mitchell Hashimoto
fa339fc275
get more proper SSH package usage in
2014-04-26 11:23:26 -07:00
Mitchell Hashimoto
5fac6c79c4
fmt
2014-04-26 11:12:43 -07:00
Mitchell Hashimoto
e84e5e4f2c
Merge branch 'update-ssh-package' of github.com:higebu/packer into higebu-update-ssh-package
...
Conflicts:
builder/amazon/common/ssh.go
builder/digitalocean/ssh.go
builder/googlecompute/ssh.go
builder/openstack/ssh.go
communicator/ssh/communicator_test.go
communicator/ssh/keychain.go
communicator/ssh/keychain_test.go
2014-04-26 11:12:06 -07:00
Mitchell Hashimoto
8395d0e97a
common: tests for ChooseSTring
2014-04-21 21:30:49 -07:00
Mitchell Hashimoto
7191c1f250
common: Fix URL parsing issues on Windows
2014-04-21 21:28:47 -07:00