Commit Graph

14 Commits

Author SHA1 Message Date
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
Matthew Aynalem b404cfc365 add builder/tencentcloud-cvm to sidebar
post-processors/docker-import - move tags under optional
add missing data types to various attributes
2019-02-03 16:24:38 -08:00
Megan Marsh 4ea4db9ef5 add docs for recently-merged -version option for hyperv 2019-01-22 12:49:59 -08:00
Ladar Levison 348c267054 Updated support for legacy network adapters on Hyper-V. 2018-12-18 04:59:00 -06:00
DanHam e42e03ef2e
Update VMCX doc: Include `temp_path`; ISO & VMCX docs: Better explain opts 2018-07-20 02:12:46 +01:00
DanHam bd5692451b
Remove deprecated `vhd_temp_path` option from documentation 2018-07-20 02:12:44 +01:00
DanHam 647aef9855
Hyper-V ISO: Sort options alphabetically. Minor word changes and fixes 2018-06-14 18:34:38 +01:00
DanHam 83a8537db5
Hyper-V ISO: Fix long lines 2018-06-14 16:52:08 +01:00
Unknown fc734b6bd9 Using vmconnect to display gui for hyper-v
vmconnect.exe comes as part of Hyper-V and is the tool used by Hyper-V Manager to connect with a virtual machine. This commits sets behaviour the same as virtualbox and vmware to display the virtual machine connection unless headless is set in the template.
2018-05-14 20:52:10 +10:00
M. Marsh 5871b8242b
Merge pull request #6101 from adarobin/azurecompatible
Add use_fixed_vhd_format Hyper-V ISO option
2018-05-10 17:02:44 -07:00
Stefan Henseler 6f00596053 Adds config option to specify hyper-v secure boot template 2018-05-10 19:00:35 +02:00
Adam Robinson 3aebd5f462 Add use_fixed_vhd_format Hyper-V ISO option 2018-04-26 13:35:19 -04:00
Matthew Hooker f5b09c8c38
set vim pandoc modeline 2018-04-19 14:26:30 -07:00
Matthew Hooker 4454e4fb4f
Use erb to add support for partials. 2018-04-19 14:26:30 -07:00