Brad Ackerman
13a4e47efe
Increase wait time for device to be created.
2020-08-01 21:22:50 -07:00
Brad Ackerman
364c415294
Add FreeBSD support.
2020-08-01 21:22:50 -07:00
Etan Reisner
a28edbaa0b
Fix skip_save_build_region in the ebssurrogate builder. ( #9666 )
2020-07-31 16:01:46 -04:00
Megan Marsh
ea45efc9b8
Merge pull request #9677 from hashicorp/b-scaleway-user-agent-config
...
builder/scaleway: Remove mapstructure configuration for the UserAgent runtime-only field
2020-07-31 10:26:36 -07:00
sylviamoss
fc2e94554a
add qemu hcl examples
2020-07-31 17:32:08 +02:00
Wilken Rivera
a76c6c55a9
Remove HCL config for runtime field `UserAgent`
...
Results before change
```
⇶ packer build /tmp/minimal.pkr.hcl
Error: 1 error occurred:
* unknown configuration key: '"user_agent"'
on /tmp/minimal.pkr.hcl line 1:
(source code not available)
==> Builds finished but no artifacts were created.
```
Results after change
```
⇶ packer build /tmp/minimal.pkr.hcl
scaleway.required: output will be in this color.
==> scaleway.required: Creating temporary ssh key for server...
==> scaleway.required: Creating server...
```
2020-07-31 11:22:55 -04:00
Wilken Rivera
980f02ce5d
Add mapstructure tag for UserAgent field
...
Closes : #9676
2020-07-30 16:08:24 -04:00
Li Kexian
94a32dc282
tencentcloud cvm use CLOUD_PREMIUM disk by default ( #9663 )
2020-07-29 15:10:00 +02:00
sylviamoss
c6e9bde97b
add step customize and docs
2020-07-29 15:07:44 +02:00
jhawk28
3370c91cf2
add some additional messaging when a boot command fails to type ( #9661 )
2020-07-29 15:06:45 +02:00
Megan Marsh
883339be25
Set project via project flag, not setting in the config ( #9662 )
...
* set project via project flag, not setting in the config + tests
2020-07-29 10:50:11 +02:00
Megan Marsh
b695615d7d
fix local file stating ( #9660 )
2020-07-29 10:26:09 +02:00
Megan Marsh
b40490c3c1
Merge pull request #9610 from chilversc/winrm-via-iap-tunnel
...
Support using WinRM over an IAP tunnel
2020-07-28 14:27:43 -07:00
Megan Marsh
395a0c472e
improve postprocessor stdout
2020-07-25 08:24:21 -07:00
Megan Marsh
b3c3e3ed63
Merge pull request #9589 from hashicorp/fix_9184
...
post-processor/vsphere: Fix password encoding in vsphere post-processor ovftool call
2020-07-25 08:23:54 -07:00
Adrien Delorme
44616d3bff
refactor initialization out from packer configs + tests ( #9627 )
...
The initialization of packer core in JSON also validates that `null` variables were set, except in the case of `packer validate --syntax-only` , but after the refactor to allow to have all commands work with HCL2 and JSON this subtlety was lost.
This refactors the initialisation of the core in order to allow to have `packer validate --syntax-only` not error in case a variable is not set. Since these calls are refactored this works for HCL2 too.
fix #9478
2020-07-24 10:58:03 +02:00
Megan Marsh
74aef3c819
apply same url encoding to other places we call ovftool
2020-07-23 17:03:42 -07:00
Megan Marsh
a687d6fe12
ci/tech-debt: Fix vmware acceptance tests ( #9636 )
...
* add kex algorithm option to ssh config
* regenerate code
* This commit fixes old vmware acceptance tests that have not been run in some time. It does this in two parts:
1) It modifies the minimal vmware build configuration to use a custom kex algorithm, which enables the ssh connection to succeed.
2) It modifies logic in reading and defaulting hardware config values, which was crashing.
3) It adds a new acceptance test with a preseed file to test loading from an http directory.
2020-07-23 09:40:57 +02:00
Megan Marsh
0a66f19dbe
fix minimal json example to use new checksumming ( #9633 )
2020-07-23 09:39:57 +02:00
Megan Marsh
ec5a2b87af
Merge pull request #9619 from piggona/master
...
builder/tencent: add key source_image_name to get source image by name when creating image.#9548
2020-07-22 10:29:30 -07:00
Megan Marsh
f9df185ef1
Merge pull request #9579 from hashicorp/fix_9562
...
wrap CreateImage call in a retry to account for eventual consistencey…
2020-07-22 08:43:10 -07:00
Chris Chilvers
63eedf841e
Fix failing tests due to IAP communicator host name
...
Moved setting the host from ApplyIAPTunnel to Config.Prepare but forgot to
update the related tests.
2020-07-22 12:58:05 +01:00
Megan Marsh
1f3b3f8fd9
change retry func to a 15 min timeout
2020-07-21 15:55:39 -07:00
Megan Marsh
a56942d3c7
change isAwsErr to an exported func so I can use it in other aws modules.
2020-07-21 15:30:45 -07:00
Megan Marsh
036ea238bf
wrap CreateImage call in a retry to account for eventual consistencey issues with image state
2020-07-21 15:30:45 -07:00
piggona
22b49c1a92
delete cvm-filter configuration
2020-07-21 11:04:41 +08:00
piggona
ecfce6ef4c
delete cvm-filter configuration
2020-07-21 11:04:32 +08:00
piggona
38563df35c
builder/tencent: add key source_image_name to get source image by name when creating image.#9548
2020-07-21 11:04:11 +08:00
piggona
a1b6f809c7
add:argument key SourceImageName to get source image by name.
2020-07-21 11:02:30 +08:00
Adrien Delorme
810f161d22
builder/amazon/common/block_device.go: replace tabs with words
2020-07-20 16:34:13 +02:00
Adrien Delorme
966b17d2b5
builder/amazon/common/access_config.go: replace tabs with words
2020-07-20 16:31:23 +02:00
Adrien Delorme
5c4901c2c2
builder/amazon/common/run_config.go: replace tabs with words
2020-07-20 16:28:14 +02:00
Adrien Delorme
1455a29f2b
remove tabs for security_group_filter too
2020-07-20 16:24:47 +02:00
Adrien Delorme
191094edcc
better `disable_stop_instance` docs
2020-07-20 16:21:43 +02:00
Chris Chilvers
37544f4d5f
Support using WinRM over an IAP tunnel
...
This avoids the need to expose WinRM ports on the internet and allows
using instances with only an internal private IP address.
When using a WinRM tunnel there is a race condition between the tunnel
connection attempt timing out and packer assuming the connection was
successful. To allow for this, when using WinRM the default success
timeout is increased to 40 seconds.
2020-07-19 01:28:31 +01:00
Megan Marsh
530f5e3f63
more additions to partials
2020-07-17 15:52:11 -07:00
Megan Marsh
a1651977b3
add tabs to generated docs from access_config and run_config structs
2020-07-17 15:10:55 -07:00
Megan Marsh
8964367eb5
Merge pull request #9603 from paulmey/disable-password
...
[azure-arm] Disable ssh password authentication unless password is explicitly specified
2020-07-17 09:32:38 -07:00
Megan Marsh
0883e185a2
Merge pull request #9594 from GennadySpb/yndx-image-min-disk-size
...
yandex: Add new property 'min_disk_size' of built image
2020-07-17 09:31:48 -07:00
Megan Marsh
9f34241b5c
Merge pull request #9597 from romantomjak/multiqueue-net-option
...
builder/proxmox: add support for multiple NIC packet queues
2020-07-17 09:07:04 -07:00
Paul Meyer
708ca1c126
Add some error checking
2020-07-16 23:22:24 +00:00
Paul Meyer
deca28c158
Disable password auth on ssh key Linux builds
2020-07-16 22:26:06 +00:00
Paul Meyer
5fd68374fe
Optionally disable password authentication for Linux builds
2020-07-16 19:44:01 +00:00
Roman Tomjak
a2220e5f08
make linter happy
2020-07-16 18:19:22 +01:00
Roman Tomjak
d3d7cc3e59
configure packet queues on nics
2020-07-16 17:56:58 +01:00
Roman Tomjak
a65157a91b
use helper method for mandatory config
2020-07-16 17:41:56 +01:00
Gennady Lipenkov
03a0bf26f2
Rename config key name
2020-07-16 17:29:45 +03:00
Gennady Lipenkov
9c565a97c0
Add new property 'min_disk_size' of built image
2020-07-16 17:10:22 +03:00
Megan Marsh
c0270c9f19
Merge pull request #9587 from romantomjak/disable-kvm-flag
...
Add option to disable KVM hardware virtualization in proxmox builder
2020-07-15 15:23:09 -07:00
Roman Tomjak
7ed8709483
add option to configure network adapter multiqueue support
2020-07-15 23:07:02 +01:00
Roman Tomjak
376b8c045e
use the value of disable kvm flag when creating the VM
2020-07-15 19:12:01 +01:00
Roman Tomjak
be7251f185
add option to disable kvm hardware virtualization
2020-07-15 18:47:24 +01:00
Megan Marsh
8bb2cb44c0
rename launch timeout to launch wait
2020-07-15 10:24:55 -07:00
Megan Marsh
6e9eaa1edd
generate code
2020-07-15 10:20:50 -07:00
Megan Marsh
af009c2aa0
make tunnel timeout configurable
2020-07-15 10:17:13 -07:00
Megan Marsh
cf5537d5d2
Merge pull request #9565 from mk0x9/docker/builder-add-runner-params
...
builder/docker: runner support for --cap-add, --cap-drop, --tmpfs, --device
2020-07-15 10:16:13 -07:00
Megan Marsh
c59d0b0283
Merge pull request #9584 from hashicorp/azr-fix-esxi-checksum
...
esx5driver.VerifyChecksum: try checksum remote file instead of local file
2020-07-15 10:07:17 -07:00
Adrien Delorme
1edd848877
esx5driver.VerifyChecksum: try checksum remote file instead of local file
...
fix #9456
2020-07-15 18:21:08 +02:00
Michael Kuryshev
37d0f48599
builder/docker: reference to docker docs regarding capabilities
2020-07-15 03:04:13 +02:00
Megan Marsh
a414e7cdb9
convert relative to absolute path in prepare
2020-07-14 15:59:53 -07:00
Megan Marsh
bb43b5cac4
improve validation and error handling around synced_folder
2020-07-14 11:34:40 -07:00
Michael Kuryshev
6e77d9d3a9
builder/docker: runner support for --device
2020-07-14 10:37:44 -07:00
Michael Kuryshev
791a86c45e
builder/docker: runner support for --cap-add, --cap-drop, --tmpfs
2020-07-14 10:34:10 -07:00
Megan Marsh
f5031a1eb5
Merge pull request #9573 from zhsj/bump-gophercloud
...
Bump gophercloud to latest version
2020-07-14 10:11:06 -07:00
Megan Marsh
aa4933c28a
Merge pull request #9574 from jhawk28/vsphere_usb_controllers
...
(vsphere) add ability to add a xhci/usb3 controller
2020-07-14 10:09:33 -07:00
Joshua Foster
b49c844637
ignore false and 0 in case someone defined the field as "false" or false
2020-07-14 12:11:24 -04:00
Sylvia Moss
5a006f226a
Don't use Packer context as vSphere driver context ( #9576 )
2020-07-14 11:45:19 +02:00
Sylvia Moss
eb5c3c3efb
fix file size descriptor ( #9568 )
2020-07-14 11:36:49 +02:00
Sylvia Moss
3a0dfa1259
add option to destroy vm after deploy to content library ( #9569 )
2020-07-14 10:07:20 +02:00
Joshua Foster
b0fa05704a
change usb controllers to a list. add ability to set as a usb3
...
Closes #8874
2020-07-13 20:54:46 -04:00
Shengjing Zhu
4fe9a92058
Bump gophercloud to latest version
2020-07-14 00:01:37 +08:00
Roger Hu
28f8241a05
update generated files
2020-07-10 16:58:06 -07:00
Moss
921078ccc0
add force_bios_setup configuration option
2020-07-10 12:30:22 +02:00
jhawk28
ae5156a70d
add ability to define multiple disk controllers ( #9519 )
2020-07-10 12:25:46 +02:00
Sylvia Moss
9c1409dbba
Add content_library_destination to import VM template to a Content Library ( #9551 )
2020-07-10 11:01:10 +02:00
Megan Marsh
61b79b6e53
Merge pull request #9542 from jhawk28/bug_9511
...
clean up folder path so that it is what vsphere expects
2020-07-09 16:08:18 -07:00
Megan Marsh
e1e37ad025
Merge pull request #9555 from yandex-cloud/yandex-export-templating
...
yandex-export: templating
2020-07-09 15:50:04 -07:00
Megan Marsh
b7f1aedf96
Merge pull request #9556 from hashicorp/fix_9107
...
Match network to host when multiple networks are found
2020-07-09 14:52:32 -07:00
Joshua Foster
765d96e8eb
unset HardwareConfig.Firmware since CreateConfig.Firmware configures the firmware in StepCreateVM
2020-07-09 10:34:48 -04:00
Moss
b74e28a479
match network to host when multiple networks are found
2020-07-09 15:59:15 +02:00
Gennady Lipenkov
378c9746fa
Fill up build variables (aka `generated_data`)
...
See description at https://packer.io/docs/extending/custom-builders#build-variables
2020-07-09 16:21:21 +03:00
Megan Marsh
e08c1a461a
Merge pull request #9553 from GennadySpb/yandex-import-post-processor
...
[WIP] Yandex Import post-processor
2020-07-08 16:25:08 -07:00
Megan Marsh
4d3b2cea96
Merge pull request #9480 from adongy/master
...
aws: retry fetching blockdevicemapping if empty
2020-07-08 12:32:12 -07:00
Gennady Lipenkov
420beb333b
make inner image accessible from other packages
2020-07-08 22:01:52 +03:00
Megan Marsh
a885e620ee
don't error for no mappings if no mappings were set.
2020-07-08 11:55:56 -07:00
Wei Cheng
e5606d483d
builder/googlecompute: add support for oslogin ( #9339 )
...
* feat: add support for oslogin
Signed-off-by: Wei Cheng <calvinpohwc@gmail.com>
Co-authored-by: Wilken Rivera <dev@wilkenrivera.com>
2020-07-08 06:30:25 -04:00
Megan Marsh
d4a7dd24d9
fix link in deprecation warning ( #9544 )
2020-07-08 11:59:39 +02:00
Sylvia Moss
268e95364f
Adds vApp properties config and save public ssh key to a vApp property ( #9507 )
2020-07-08 10:33:45 +02:00
Megan Marsh
673858a63c
Merge pull request #9513 from hashicorp/undocument_ssh_temp_key
...
Undocument ssh options not used by all builders
2020-07-07 14:26:21 -07:00
Wilken Rivera
892413b7ea
docs/builder/vsphere-iso: Add documentation for BootConfig ( #9538 )
...
* docs/builder/vsphere-iso: Add documentation for BootConfig
* Add documenation for http_ip
* Remove duplicate build configuration section
2020-07-07 13:57:51 -04:00
Wilken Rivera
eeb6f017bd
Merge pull request #9505 from hashicorp/f-googlecompute-wrap_startup_script-option
...
builder/googlecompute: Add WrapStartupScriptFile configuration option
2020-07-07 13:17:02 -04:00
Joshua Foster
a6170b0c35
clean up folder path so that it is what vsphere expects
2020-07-07 12:25:14 -04:00
Lyle Franklin
a4d1afb83a
Add 'cdrom_interface' option to QEMU builder ( #9483 )
...
- This option allows the user to select the interface type for the CDROM
drive, e.g. `virtio-scsi`, rather than the default `virtio`
- Background: Installation of Ubuntu 20.04 on ARM64 fails as it can't mount the
installation CDROM. While the default `virtio` CDROM fails, setting
`cdrom_interface: virtio-scsi` with this PR succeeds. Some links:
- ISO link: http://cdimage.ubuntu.com/ubuntu-legacy-server/releases/20.04/release/ubuntu-20.04-legacy-server-arm64.iso
- https://bugs.launchpad.net/ubuntu/+source/debian-installer/+bug/1605407
- https://superuser.com/a/1376628/230508
2020-07-07 16:22:30 +02:00
Wilken Rivera
4462c0b5ab
builder/googlecompute: Add WrapStartupScriptFile configuration option
...
By default the Google builder will wrap any provided startup script file
in order to track its execution via custom metadata. The wrapper script
can add a bit of complexity to the start script file so a new option is
being added `wrap_startup_script`. This option allows a user to disable
the script wrapping and just let GCE do its own thing when executing a
startup script.
2020-07-07 07:08:09 -04:00
Megan Marsh
6095fb2a62
Merge pull request #9515 from jhawk28/vsphere_tools_fix
...
fix vsphere ToolsSyncTime and ToolsUpgradePolicy
2020-07-02 14:19:41 -07:00
Joshua Foster
500ec5ccc7
fix return
2020-07-02 12:55:10 -04:00
Joshua Foster
e4dffeed35
clean up if logic
2020-07-02 12:33:28 -04:00
Moss
8ea64c5b35
undocument ssh_keypair_name and ssh_agent_auth
2020-07-02 14:55:58 +02:00
Megan Marsh
445cf12b65
Merge pull request #9489 from ad-m/hyperone-freebsd
...
builder/hyperone: Allow skip chroot device discovery
2020-07-01 15:48:03 -07:00
Joshua Foster
63f9282f5c
fix vshere ToolsSyncTime and ToolsUpgradePolicy
2020-07-01 13:58:50 -04:00