Wilken Rivera
7b705545d9
docs: Various doc clean-ups to fix code block formatting and syntax highlighting ( #8868 )
2020-03-12 15:05:08 +01:00
Sylvia Moss
76f13deaf4
Make template variables SSHPublicKey and SSHPrivateKey as strings ( #8829 )
2020-03-09 17:25:05 +01:00
Wilken Rivera
e1a46ec293
Fix gosimple S1025 linting errors ( #8838 )
...
Remove unneeded use of fmt.Sprintf for variables that are already strings.
2020-03-04 15:31:30 -05:00
Lars Lehtonen
f808d1d968
common/powershell: fix dropped error
2020-03-02 14:45:22 -08:00
Megan Marsh
9c9826ee4b
Merge pull request #8714 from williamb1024/hyperv-gen1-boot-order
...
WIP: Add Hyper-V builder `first_boot_device` setting to allow the selection of the initial device or device class used for booting the VM.
2020-03-02 12:27:25 -08:00
Ben Brown
0936f8bc03
Fix Hyper-V compacted disk size comparison
...
Prior to this the code compares the length of the path, which of course
doesn't change.
2020-03-02 09:55:13 +00:00
Megan Marsh
66a1cdb8d2
regenerate boot command code
2020-02-28 09:50:50 -08:00
William Brooks
7f38ce0686
test and correct gen2 SetFirstBootDeviceGen2 scripts
2020-02-21 11:09:49 -06:00
William Brooks
dd8f4370c6
initial support for gen2 and fix driver_mock
2020-02-21 01:30:59 -06:00
William Brooks
5e1e4ec701
fmt && generate
2020-02-21 01:07:58 -06:00
William Brooks
d7300f4635
Remove legacy_boot and replace with first_boot_device (initial)
2020-02-21 01:01:09 -06:00
Megan Marsh
dde74232f2
Clearly document all template-engine-enabled options ( #8770 )
2020-02-20 11:05:27 +01:00
William
807f39284d
Merge pull request #2 from hashicorp/master
...
merge from hashicorp/packer
2020-02-15 23:13:38 -06:00
Wilken Rivera
9ec8b67392
Add golangci-lint to project ( #8686 )
...
* Add golangci-lint as linting tool
* Disable failing staticchecks to start; GitHub issue to handle coming soon
* Run `goimports -w` to repair all source files that have improperly
formatted imports
* makefile: Add ci-lint target to run on travis
This change adds a new make target for running golangci-lint on newly
added Go files only. This target is expected to run during Packer ci builds.
* .github/contributing: Add code linting instructions
* travis: Update job configuration to run parallel builds
2020-02-14 11:42:29 -05:00
Megan Marsh
00dfb79c88
Merge pull request #7627 from hashicorp/inplace_isos
...
Inplace isos
2020-02-11 11:19:10 -08:00
Adrien Delorme
08f394604c
Update iso_config.go
...
use defaultGetterClient instead of getter.DefaultClient
2020-02-11 12:07:06 +01:00
Adrien Delorme
cc3d941853
iso checksumming: use checksum or checksum url if set to handle all cases
...
fix #8322
2020-02-10 17:54:11 +01:00
William Brooks
31622b50ac
applied fmt
2020-02-09 15:22:36 -06:00
William Brooks
55ae803852
Add Hyper-V support for Gen-1 boot order with ISO
2020-02-09 13:08:22 -06:00
Adrien Delorme
72c2731f7b
Update step_download_test.go
2020-02-06 18:24:13 +01:00
Adrien Delorme
973a1ea103
remove comented code
2020-02-06 18:23:08 +01:00
Adrien Delorme
f91429f256
fix goimports
2020-02-06 18:18:03 +01:00
Adrien Delorme
d45eca5cdc
update tests
2020-02-06 18:17:57 +01:00
Adrien Delorme
a8e717ae09
ISOConfig.Prepare: fix ChecksumFromFile usage
2020-02-06 17:51:15 +01:00
Adrien Delorme
8e6bad209b
try to use isos inplace whatever the os
2020-02-06 17:50:29 +01:00
Chris Cunningham
e94ed9a683
update the note about Windows symlinks
...
GH-7534 and GH-7545 disabled the use of symlinks for copying local ISOs,
per:
https://github.com/hashicorp/packer/blob/master/common/step_download.go#L106
Update the documentation to match, as without reading the source it is
implied that this should work.
2020-02-06 17:38:57 +01:00
Adrien Delorme
a19214afeb
Allow to use isos in place
2020-02-06 17:07:58 +01:00
Megan Marsh
dde7302265
Merge pull request #8689 from hashicorp/fix_8530
...
Add iso file name when targetPath is a directory
2020-02-04 13:43:09 -08:00
Moss
f2c8e8491c
Fix format
2020-02-04 18:22:43 +01:00
Moss
e020da49f3
Add iso file name when targetPath is absolute
2020-02-04 18:06:47 +01:00