Megan Marsh
32975c3862
remove unused SkipValidation field which was a duplicate of the SkipRegionValidation field.
...
remove duplicate temporary key pair name
change communicator code
2020-11-18 14:21:40 -08:00
Megan Marsh
bcb626f7b5
Merge pull request #10282 from hashicorp/version_and_useragent_to_sdk
...
Version and useragent to sdk
2020-11-18 14:11:25 -08:00
Megan Marsh
dc54714842
Merge pull request #10281 from hashicorp/communicator_helper_move
...
move communicator helpers into communicator dir
2020-11-18 14:10:53 -08:00
Megan Marsh
afa44f0742
move version and useragent definitions into sdk
2020-11-18 11:42:02 -08:00
Megan Marsh
8ce3d52259
move helper/config to bundle with the other template definitions
2020-11-18 10:34:59 -08:00
Megan Marsh
ebd9c7fe29
move communicator helpers into communicator dir
2020-11-18 10:24:25 -08:00
Megan Marsh
991002b7b5
Merge pull request #10275 from hashicorp/multistep
...
move multistep into the plugin sdk
2020-11-18 09:56:33 -08:00
Megan Marsh
9e1e5942b3
fix imports
2020-11-17 17:18:45 -08:00
Megan Marsh
e67da31f45
fix generated files and website
2020-11-17 17:07:02 -08:00
Megan Marsh
fc9a1cacc2
move multistep into the plugin sdk
2020-11-17 16:31:03 -08:00
Megan Marsh
f4f19c7327
Merge pull request #10257 from hashicorp/plugin-sdk-5
...
Plugin sdk 5
2020-11-17 10:54:53 -08:00
Megan Marsh
e1e1ad2742
update tests and website and generated partials to reflect new package format
2020-11-17 10:36:01 -08:00
Megan Marsh
4855ffeaea
move tmp helper func into packer-plugin-sdk
2020-11-16 15:13:08 -08:00
Megan Marsh
05a91666a4
fix tests
...
regenerate code
regenerate code, revendor
fix website
2020-11-13 15:00:12 -08:00
Megan Marsh
857aa59fd5
move steps and step configs from packer/common to packer/common/commonsteps
2020-11-13 11:15:04 -08:00
Megan Marsh
9dd4b9d41d
create packer-plugin-sdk directory and begin moving the relevant folders into it.
2020-11-13 10:47:36 -08:00
Megan Marsh
db6d24353c
move communicators into sdk-internals directory
2020-11-13 10:44:07 -08:00
Megan Marsh
c02f4617df
version files
2020-11-10 14:48:06 -08:00
Megan Marsh
a93dd5dc86
regenerate code
2020-11-10 08:16:59 -08:00
Megan Marsh
7842951a7e
move GeneratedData struct and PlaceholderMsg to same package under common
2020-11-06 10:45:38 -08:00
Adrien Delorme
880a1dde6b
Merge remote-tracking branch 'origin/master' into azr_selectable_temp_keygen_type_gcp
2020-10-26 15:47:29 +01:00
Megan Marsh
c0531d639b
review comments, add plugin type for a few missing builders
2020-10-21 16:17:32 -07:00
Adrien Delorme
b118a264ee
regen all code
2020-10-21 12:04:10 +02:00
Adrien Delorme
2b92cca71f
gen code and docs
2020-10-15 16:51:23 +02:00
Megan Marsh
60d4f73ac2
allow user to set tools source path
2020-09-24 09:51:01 -07:00
Sylvia Moss
9a59745c70
Remove usb_keyboard option ( #9945 )
2020-09-17 10:38:33 +02:00
Sylvia Moss
b631c8c2f3
Add VMware vnc_over_websocket option ( #9938 )
2020-09-16 11:02:46 +02:00
Sylvia Moss
f338161414
Interpolate vagrantfile_template on Vagrant post-processor ( #9923 )
2020-09-16 10:08:44 +02:00
Megan Marsh
cb99275146
Merge pull request #9940 from hashicorp/fix_9936
...
skip slot 7 in disk creation so we don't use reserved slot
2020-09-14 13:36:16 -07:00
Megan Marsh
7565f8300e
skip slot 7 in disk creation so we don't use reserved slot
2020-09-14 13:13:59 -07:00
Megan Marsh
e3a69f5163
Merge pull request #9928 from hashicorp/cd_files_impl_remaining_builders
...
implement cd_files option for qemu, hyperv-vmcx, and vmware-vmx builders
2020-09-14 13:07:53 -07:00
Megan Marsh
6724639cd1
vmw docs
2020-09-14 12:43:57 -07:00
Megan Marsh
fc8d5bd78d
regenerate code
2020-09-14 12:16:56 -07:00
Megan Marsh
5bfb362bd6
regenerate hcl config
2020-09-14 12:16:56 -07:00
Megan Marsh
b06b0e3553
add tests for disk defaulting
2020-09-14 12:16:56 -07:00
Megan Marsh
8a6a2c4321
refactor out disk defaulting so it can be used to default the vmx cdrom too
2020-09-14 12:16:56 -07:00
Andreas Botzner
69a3532f05
Adds ability to specify interfaces for http_directroy and VM for the Proxmox builder ( #9874 )
...
Adds two config options to the Proxmox builder:
```
http_interface
vm_interface
```
Both give the user the ability to specify an interface whos IP will be set as the `.HTTPIP` and VMIP respectively.
This is useful when the VM and or the machine executing Packer has multiple interfaces.
Until now Packer would accept the first non-loopback IP as the `.HTTPIP` and VMIP.
I'm open to suggestions and any kind of feedback.
* Added ability to define the NIC where the HTTPIP is taken from.
* Added VM interface config option
* fmt and documentation
* Moved HTTPInterface into HTTPCommon
* Build Fix
* Documentation Fix
2020-09-14 12:24:01 +02:00
Sylvia Moss
1e7f7954a7
Add usb_scan_codes option to use USB scancodes instead of VNC for remote builds ( #9895 )
2020-09-11 16:46:33 +02:00
Megan Marsh
9dc8812602
Implement cd_files option. The Addfile code is modified from the floppy_files
...
tooling. Tested on OSX, `Windows, and Linux. Documented command line dependencies.
Added acceptance tests (behind testacc flag, since there are dependencies).
This option is only implemented for the vmware and hyperv iso builders. It will be
implemented for others in later PRs in order to make review easier.
2020-09-04 12:20:19 -07:00
Lars Lehtonen
6d53851ce2
builder/vmware/common: simplify type assertion switch ( #9893 )
2020-09-04 16:25:19 +02:00
Wilken Rivera
62b0cb38de
Merge pull request #9831 from hashicorp/remedial_remote_export_config_tests
...
add tests to make sure prepare for export defaults properly
2020-08-31 15:47:05 -04:00
Wilken Rivera
d4074ecbf5
Fix linting issues for SA6005 check ( #9854 )
...
Before change
```
⇶ golangci-lint run --disable-all --no-config --enable=staticcheck | ack SA6005
builder/profitbricks/step_create_server.go:254:22: SA6005: should use strings.EqualFold(a, b) instead of strings.ToLower(a) == strings.ToLower(b) (staticcheck)
builder/oneandone/config.go:97:7: SA6005: should use strings.EqualFold(a, b) instead of strings.ToLower(a) == strings.ToLower(b) (staticcheck)
builder/vmware/common/driver_parser.go:1199:7: SA6005: should use strings.EqualFold(a, b) instead of strings.ToLower(a) == strings.ToLower(b) (staticcheck)
```
After change
```
⇶ golangci-lint run --disable-all --no-config --enable=staticcheck | ack SA6005
```
2020-08-31 15:44:42 +02:00
Megan Marsh
c0460cf46f
refactor ovftool validation into vmware driver
2020-08-27 10:55:57 -07:00
Megan Marsh
c0ebf1b8a5
add tests to make sure prepare for export defaults properly
2020-08-27 10:55:57 -07:00
Megan Marsh
fff29da984
Allow "export" to ovf/ova for local vmware builds in addition to esx ones.
...
Refactor step_export and the driver interface to move the ovftool call
into the vmware driver. This refactor allows us to add meaningful tests
to step_export, which I have also added here.
2020-08-26 09:45:12 -07:00
Megan Marsh
1ea4c9be52
Move step_create_disk into common folder, and add to vmx builder ( #9815 )
...
Pull additional disk related config options into their own file.
2020-08-26 10:13:11 +02:00
Megan Marsh
f22849b67a
extract output dir configuration and defaulting into the step_output_dir, using pointers to make sure they get set properly back on the main config
2020-08-18 12:50:06 -07:00
Megan Marsh
3c9ab9f406
implement a remote_output_directory option, and heavily comment output code
2020-08-18 12:50:00 -07:00
Megan Marsh
6e43d1490b
Merge pull request #9782 from hashicorp/fix_9151
...
fully destroy vm if it was cancelled or errored
2020-08-18 07:22:18 -07:00
Megan Marsh
3c94bc6562
fully destroy vm if it was cancelled or errored
2020-08-17 14:07:58 -07:00