10222 Commits

Author SHA1 Message Date
DanHam
a39c5887fb
Test we halt if a bad path is set in vmx_path 2018-07-06 10:58:25 +01:00
DanHam
21117e5d38
Test we fail if displayName is not stored in the statebag as 'display_name' 2018-07-06 10:58:25 +01:00
DanHam
88c43ec98d
Test we fail if the displayName key is not found in the VMX 2018-07-06 10:58:24 +01:00
DanHam
d68d26a6e5
Fix tests: We now need to set displayName key/val pair in the test VMX 2018-07-06 10:58:24 +01:00
DanHam
902cea0f30
ESXi: Fix failure to export VM when displayName differs from vm_name
ovftool requires we pass in `displayName` as part of the source locator
string so that it can successfully determine the VM intended for export.
2018-07-06 10:58:17 +01:00
DanHam
cd7d3812ea
ESXi: Fix failure to get VM IP when displayName differs from vm_name
The value in the Name field returned by 'esxcli network vm list'
actually returns the VMs `displayName`. As such, we need to match
against `displayName` to discover the VMs 'WorldID'.
'WorldId' is ultimately used/needed as an argument in the command that
returns the VMs IP.
2018-07-06 10:58:09 +01:00
DanHam
3eab3cc99b
ESXi builds require we store the value of displayName in the statebag
The value of displayName is needed by later steps:
* When determining the IP address of the build VM
* When exporting the VM using ovftool

By default Packer will configure the VMX so `displayName` is equal to
the value defined for `vm_name` in the build template. However, it is
possible (and sometimes desirable) to set a custom value for
`displayName`.
Users can set a custom `displayName` through use of the `vmx_data`
option in their template.
2018-07-06 01:58:09 +01:00
Jason Moody
5f750bfc34
Update build-image.html.md
Small grammar update in "A Windows Example" section of build-image.html.md.
2018-07-05 17:46:06 -05:00
Brendan Devenney
73c532e772 Ensure amazon-private-ip fixes string values
The "ssh_private_ip" key works with either boolean values or string
representations of booleans. The fixer errors when the value is defined
as, for example, "true" (with quotation marks). This commit will attempt
to convert the string into a bool when necessary to ensure this case is
handled.

Signed-off-by: Brendan Devenney <brendan.devenney@cloudreach.com>
2018-07-05 16:57:54 +01:00
Edouard Bonlieu
4b1f96b527
Merge pull request #6439 from jbonachera/scaleway-config-bootscript
scaleway: add 'bootscript' configuration parameter
2018-07-04 10:10:19 +02:00
Adam Robinson
0c6e6ba637 Update Ansible provisioner docs for WinRM 2018-07-03 11:12:12 -04:00
Sean Malloy
d8b229b59a Add feature to googlecompute-import post-processor to delete GCS files
New skip_clean config option added to control deleting import tar
files from GCS bucket. Defaults to false meaning by default delete
import tar files from the GCS bucket.
2018-07-02 21:44:30 -05:00
M. Marsh
8658eaf1ac
Merge pull request #6424 from DanHam/fix-esxi-export-hang
Prevent hang on export when using VMware ISO builder on remote ESXi host
2018-07-02 16:42:08 -07:00
Christopher Boumenot
bf1b4b21a3
Merge pull request #6277 from dtzar/patch-1
Only show Windows Sysprep code with validation
2018-07-02 16:15:21 -07:00
DanHam
71f6494569
Docs: Try and clarify export and export related opts only work with ESXi 2018-07-02 18:13:19 +01:00
DanHam
66f9b64ff1
Docs: Users must set remote_password when exporting the VM with ovftool 2018-07-02 18:13:19 +01:00
DanHam
939aa7e289
Add test: We shouldn't error when main remote options are unset 2018-07-02 18:13:19 +01:00
DanHam
efcdf60d96
Add tests to ensure remote_password is set when exporting with ovftool 2018-07-02 18:13:19 +01:00
DanHam
0d9134bdbc
Fix existing tests as they were not doing what they should have been
* Fix test to check for remote_host when remote_type is set
* Fix tests by including remote_password where required
2018-07-02 18:12:41 +01:00
DanHam
eee16262b6
Remove duplicate/redundant test 2018-07-02 18:10:50 +01:00
DanHam
c8199458a7
Prevent hang on export for remote ESXi build due to empty remote_password 2018-07-02 18:10:50 +01:00
M. Marsh
406f4eeb93
Merge pull request #6394 from conradjones/master
Add support to vmware-vmx for linked clones
2018-07-02 09:50:24 -07:00
M. Marsh
1cf68c1d2a
Merge pull request #6442 from thor/patch-1
Highlight which user Ansible provisioner uses in docs
2018-07-02 09:29:37 -07:00
Robert Neumayer
22e5523faa Allow instance metadata to be specified in config 2018-07-02 10:48:08 +02:00
Thor K. Høgås
b1639a782b
Highlight which user Ansible provisioner uses
SSIA.
2018-07-02 10:17:24 +02:00
DanHam
fff72780e1
Further simplify enumeration of attached disks for VMware VMX builder
* Collate separate regexp's into one for greater efficiency
* Inline function and remove unnecessary struct and variables
2018-07-01 16:18:33 +01:00
Conrad Jones
d9b6924986 Add cloneType to fusion driver 2018-06-30 16:31:42 +01:00
Julien BONACHERA
3ea887a9a7
scaleway: mention new 'bootscript' parameter in documentation 2018-06-29 22:02:00 +02:00
Julien BONACHERA
eda85a4daf
scaleway: add 'bootscript' configuration parameter 2018-06-29 19:44:56 +02:00
Matthew Hooker
5952892e10
add back in tests on latest go, but allow it to fail.
this is an important early warning sign, and I think it's good to add it back in
in a way that doesn't cause the build to fail.
2018-06-28 14:49:09 -07:00
Megan Marsh
2b2c860df8 make the convert retryable in case it takes a bit to release a lock 2018-06-28 14:21:28 -07:00
M. Marsh
7915f2db25
Merge pull request #6292 from hashicorp/go-versions
build: Remove old versions of Go on Travis CI
2018-06-27 16:11:19 -07:00
M. Marsh
67aa8f3a74
Merge branch 'master' into go-versions 2018-06-27 14:07:26 -07:00
M. Marsh
dbbeb36d45
Merge pull request #6340 from KohlsTechnology/gcp-import
Add new post processor googlecompute-import
2018-06-27 13:36:03 -07:00
M. Marsh
c67d59515c
Merge pull request #6370 from arizvisa/patch-1
Allow StepAttachIso in the VirtualBox builder to resolve symbolic links when processing the IsoPath.
2018-06-27 10:30:30 -07:00
Adam Robinson
8715bfbf70 set all tar timestamp fields to the zero date 2018-06-26 21:39:54 -05:00
Sean Malloy
3622a669dc Add new post processor googlecompute-import 2018-06-26 21:39:55 -05:00
M. Marsh
2ef4210a98
Merge pull request #6430 from hashicorp/update_go_oracle_terraform_library
fix vendor commit for go-oracle-terraform
2018-06-26 16:27:44 -07:00
Megan Marsh
e21981e581 fix vendor commit for go-oracle-terraform 2018-06-26 16:21:19 -07:00
Matthew Hooker
ce40e9cc86
only test on .10.x 2018-06-26 16:18:20 -07:00
M. Marsh
d9d5c57482
Merge pull request #6407 from harveylowndes/pass-context-to-client
Pass context into OCI client
2018-06-26 15:55:29 -07:00
M. Marsh
a030b88be9
Merge pull request #6428 from hashicorp/fix_docs_for_disable_stop_instance
docs needed clarifying on what Packer would do.
2018-06-26 13:40:04 -07:00
Megan Marsh
b2e456c340 docs needed clarifying on what Packer would do.
Document this feature in ebs-volume.
2018-06-26 13:39:07 -07:00
Owain Lewis
b600be009d Pass context into OCI client 2018-06-26 10:17:02 +01:00
M. Marsh
e5a63a674e
Merge pull request #6422 from DanHam/fix-gh-vmsecureboot
Hyper-V: Use Get-Command over Get-Help to check for SecureBootTemplate parameter
2018-06-25 16:48:16 -07:00
M. Marsh
baaca808e8
Merge pull request #6412 from hashicorp/fix_config_validation_bug_windows_shell_local
found a config validation bug where packer crashes instead of throwin…
2018-06-25 16:47:23 -07:00
M. Marsh
5a6a389e66
Merge pull request #6415 from brumfb/skip_invalid_lease_files
Fixes VMWare Builder issue regarding DHCP-less NAT networks.
2018-06-25 16:47:04 -07:00
DanHam
297f6b85ec
Use Get-Command over Get-Help to check for SecureBootTemplate parameter 2018-06-25 23:52:01 +01:00
M. Marsh
1be2a6f86a
Merge pull request #6419 from uberjew666/master
Fixes SetVirtualMachineSecureBoot function
2018-06-25 14:25:42 -07:00
M. Marsh
0cb998682b
Merge pull request #6413 from thefotios-enigma/patch-2
Update list of required IAM permissions
2018-06-25 13:27:44 -07:00