Commit Graph

9 Commits

Author SHA1 Message Date
Adrien Delorme a9e9fff3ad docs: refactor comon shell configurations into a partial 2019-03-14 13:12:03 +01:00
Adrien Delorme 9f82b75e57 Use the hashicorp/go-getter to download files
* removed packer.Cache and references since packer.Cache is never used except in the download step. The download step now uses the new func packer.CachePath(targetPath) for this, the behavior is the same.
* removed download code from packer that was reimplemented into the go-getter library: progress bar, http download restart, checksuming from file, skip already downloaded files, symlinking, make a download cancellable by context.
* on windows if packer is running without symlinking rights and we are getting a local file, the file will be copied instead to avoid errors.
* added unit tests for step_download that are now CI tested on windows, mac & linux.
* files are now downloaded under cache dir `sha1(filename + "?checksum=" + checksum) + file_extension`
* since the output dir is based on the source url and the checksum, when the checksum fails, the file is auto deleted.
* a download file is protected and locked by a file lock,
* updated docs
* updated go modules and vendors
2019-03-13 12:11:58 +01:00
Stephen Fox 094c87e395 Remove 'SSHPublicKeyUrlEncoded', use 'urlquery' instead.
Per code review feedback, the Go template library supports
encoding variables in URL query format. Instead of exposing
two different public key formats (unmodified string and a
URL encoded string), just have the user apply the 'urlquery'
modifier to their template.
2019-02-28 17:06:51 -05:00
Stephen Fox 0378f3ad35 Initial documentation for VirtualBox SSH key pair vars. 2019-02-06 16:03:40 -05:00
Matthew Hooker 7d43324359
add menu key.
Replaces #5989
2018-04-19 14:26:31 -07:00
Matthew Hooker 84894ca459
remove nonsensical negative waits. 2018-04-19 14:26:30 -07:00
Matthew Hooker 9a839c401b
fix formatting 2018-04-19 14:26:30 -07:00
Matthew Hooker c753391f43
fill out and reformat the boot command docs 2018-04-19 14:26:30 -07:00
Matthew Hooker 36aeaf27b3
Use a partial for the boot command docs.
I know we rejected this idea back in #4061, but we are closer to being at a point
where we can host a version of the website on master, and this will help push that through.
2018-04-19 14:26:30 -07:00