Christopher Boumenot
1874514e4f
azure: go vet ./...
2017-06-26 11:13:40 -07:00
Christopher Boumenot
027db82862
azure: go fmt ./...
2017-06-26 11:13:40 -07:00
Christopher Boumenot
9425ece680
azure: Handle SDK changes
...
There are two types for storage profile, but they use the same
serialization name (storageProfile). This creates problems, so I worked
around it by taking the union of this type as well as OS Disk.
2017-06-26 11:13:40 -07:00
Christopher Boumenot
841f54fc1e
azure: unit test fixes
2017-06-26 11:13:39 -07:00
Christopher Boumenot
b7e32cb10a
azure: best error message possible
2017-06-26 11:13:39 -07:00
Christopher Boumenot
c09f8b84b9
azure: fit and finish
...
* More unit testing to assert customer's configuration.
* Further reduce the options that are needed to power an Azure build.
This seems like a much more manageable level.
* Update all of the examples to use a more current VM sku.
* Add an example for RHEL.
* Move from OpenSuSE to SuSE.
* Update the docs.
2017-06-26 11:13:39 -07:00
Christopher Boumenot
d782ad99f8
azure: pick better names
...
Use custom_managed_image_name to represent managed images use to build Packer VMs.
Use managed_image_name to represent the image produced by Packer.
2017-06-26 11:13:38 -07:00
Christopher Boumenot
9f4fb56041
Support managed disk for platform images
2017-06-26 11:13:38 -07:00
Christopher Boumenot
c6ff4aae59
Support for building from custom managed images
2017-06-26 11:13:38 -07:00
Christopher Boumenot
8cea6f5be5
azure: Update to SDK 10.0.3
...
The OAuth code was moved to the adal package.
Authorizers now ues an interface instead of a simple token.
Long running operations return a channel for the operation, and the
error.
2017-06-26 11:13:37 -07:00
Andy Goldstein
c6dba6c051
Parallels: skip missing paths when looking for unnecessary files
2017-06-23 14:29:07 -04:00
Matthew Hooker
d35eeecf46
vnc port discovery timeout is 15 seconds
2017-06-22 17:58:18 -07:00
Megan Marsh
a281e60e15
de-mangle windows filepath to something docker can handle
2017-06-22 10:21:30 -07:00
Matthew Hooker
6581e0b7d6
add hostkeycallback everywhere else
2017-06-21 12:00:34 -07:00
Megan Marsh
2a6f5f1b13
specify HostKeyCallback for vmware esx5 driver
2017-06-21 10:09:11 -07:00
Megan Marsh
ac15b33d2b
Merge pull request #5029 from hashicorp/5007_instance_stop
...
add exponential backoff retry for stopping instance in amazon
2017-06-20 12:08:52 -07:00
Megan Marsh
f7a703dfb2
add pending to allowable states while waiting for ebs instance to stop
2017-06-20 10:55:23 -07:00
Megan Marsh
d706147423
add exponential backoff retry for stopping instance in amazon
...
retry only if the error is instancenotfound
2017-06-20 10:50:57 -07:00
Lee Spottiswood
4d394033d2
add tests
2017-06-20 12:21:07 +01:00
Lee Spottiswood
f95093ef63
Add support for floppy_dirs with hyperv-iso builder
2017-06-15 13:12:39 +01:00
Matthew Hooker
febc65aa7c
try again to get region from metadata
2017-06-14 16:30:18 -07:00
Matthew Hooker
8dae6b60c1
Merge pull request #4996 from hashicorp/mwhooker/4613
...
builder/amazon: Support Assume Role with MFA and ECS Task Roles
2017-06-13 17:40:09 -07:00
Matthew Hooker
350e8bfe0d
we don't need to look for region in metadata.
...
Closes #4615'
2017-06-13 17:35:48 -07:00
Matthew Hooker
94d7a4ce8d
post-processor/vagrant-cloud: try upload once
...
* fixes multiple uploads mentioned in #4973
* removed unused token code
2017-06-12 17:34:32 -07:00
Kent Wang
e59678a033
Fix alicloud-ecs typo
...
* Fix typo: internet_max_bandwith_out -> internet_max_bandwidth_out
2017-06-11 16:03:28 +08:00
Kent Wang
6da9802a33
builder/alicloud-ecs: Fix chooseNetworkType
...
* Choose VpcNet when KeyPairName is set
* Code cleanup
2017-06-11 16:01:09 +08:00
Kent Wang
a40bb9af99
Fix ssh config must specify HostKeyCallback
...
Fixes : #5001
2017-06-11 15:58:45 +08:00
Matthew Hooker
4860d7179d
remove redundant log line
2017-06-09 13:00:08 -07:00
Matthew Hooker
6231ec3569
Merge pull request #4997 from Constantin07/add-sg-name-to-output
...
Print in the output the temporary security group name too.
2017-06-09 12:59:03 -07:00
Yamashita, Yuu
ab4636ae0f
Explicitly specify `zoneid` in CloudStack's `associateIpAddress` call ( #4995 )
...
Generally speaking, this must be harmless since the IP address
and the virtual machine need to be deployed to the same zone.
2017-06-09 21:11:52 +02:00
Constantin Bugneac
ae03dab920
Print in the output the security group name too.
2017-06-09 20:05:59 +01:00
Matthew Hooker
a619759bf7
add support for profile
2017-06-09 11:24:30 -07:00
Matthew Hooker
3fb4162660
remove code from bad merge
2017-06-09 11:07:29 -07:00
Matthew Hooker
624aaa2067
bugfix
2017-06-09 11:01:27 -07:00
Matthew Hooker
3ed7572525
remove cli_config
2017-06-09 10:59:50 -07:00
Matthew Hooker
f637878822
with wrapping
2017-06-09 10:46:01 -07:00
Matthew Hooker
23084fe171
dedupe
2017-06-09 10:41:58 -07:00
Matthew Hooker
58e386827a
fix typo
2017-06-09 10:40:50 -07:00
Rickard von Essen
15f80dc5ab
aws: Drop undocumented option `profile`
...
This was added in 883acb18fa
to support
assume role and shared configuration file. This was never completed.
2017-06-09 10:37:54 -07:00
Matthew Hooker
56c513088b
I think this was the intention
2017-06-09 10:34:49 -07:00
Matthew Hooker
94854a26d9
fix go vet issue
2017-06-09 10:30:07 -07:00
Matthew Hooker
d7e39b72b2
remove dead code
2017-06-09 10:30:07 -07:00
Rickard von Essen
f106e60a7e
builder/amazon: Added MFA support
2017-06-09 10:28:31 -07:00
Rickard von Essen
f55c3b9d34
builder/amazon: Support assume role with assume_role_arn
...
This supports assuming a role when using profile or static credentials.
2017-06-09 10:27:56 -07:00
Rickard von Essen
3833d34829
builder/amazon: Cleaned up credential handeling
...
This properly handles:
- Preference between types of credential
- Assume role via ECS Task Role
2017-06-09 10:26:22 -07:00
Anish Bhatt
ff39827733
Make null builder actually have the ability to do nothing
2017-06-07 17:11:42 -07:00
Pavel Vasilevich
547cfa3602
Add information about artifact in manifest post-processor in azure-arm builder
2017-06-07 14:12:03 +07:00
Matthew Hooker
769ff28e03
builder/ebssurrogate: Use correct devices for AMI.
2017-06-06 12:33:08 -07:00
Matthew Hooker
ab81b3ef7d
Merge pull request #4699 from BenPhegan/virtualbox_sata_port_count
...
Add configuration to virtualbox-iso to allow sata port count configuration
2017-06-05 15:21:12 -07:00
Matthew Hooker
bf830e393d
Merge pull request #4810 from bryonr/fix_vmware_shutdown_cleanup_osx
...
Help ensure VMX builder properly removes mounted CDs on OS X
2017-06-05 15:17:08 -07:00
Matthew Hooker
39a2b9c50e
Merge pull request #4953 from hashicorp/azure-artifact
...
builder/azure: set artifact metadata
2017-06-05 11:44:36 -07:00
Matthew Hooker
11ba986abc
Merge pull request #4930 from hashicorp/fix4925
...
builder/amazon: don't try to delete extra volumes during clean up
2017-06-02 14:08:49 -07:00
Matthew Hooker
b1bcf62ae1
Merge pull request #4619 from zhuzhih2017/master
...
Add packer plugin which support to create alicloud ecs image
2017-06-02 13:33:10 -07:00
Matthew Hooker
0c116981ab
Merge pull request #4960 from rickard-von-essen/issue-4959
...
virtualbox: Don't add portforwarding if comm = none
2017-06-02 13:15:43 -07:00
Rickard von Essen
31b93a3026
virtualbox: Don't add portforwarding if comm = none
...
Closes : #4959
2017-06-02 21:58:34 +02:00
Rickard von Essen
2f8b02a6e1
builder/null: Support SSH Agent Auth
2017-06-02 12:55:31 +02:00
zhuzhih2017
2de00f2ff8
add check rule for image_name
2017-06-02 16:47:50 +08:00
zhuzhih2017
7bc0f17ce5
fix the wrong number args in step_create_instance
2017-06-02 11:37:16 +08:00
zhuzhih2017
b9eee0805e
Merge branch 'master' of https://github.com/zhuzhih2017/packer
2017-06-02 11:28:53 +08:00
zhuzhih2017
7f91069c2c
add rule to prevent the source_image name include spaces and fix the step_run_instance report wrong message problem
2017-06-02 11:28:41 +08:00
Matthew Hooker
2fd41f4707
grammar fixes.
2017-06-01 19:33:12 -07:00
Matthew Hooker
fdfd01eaea
formatting
2017-06-01 17:14:51 -07:00
Matthew Hooker
0348b2d3da
don't need alicloud in file name
2017-06-01 15:52:57 -07:00
Matthew Hooker
e72163264b
spelling and grammar fixes
2017-06-01 15:49:45 -07:00
Matthew Hooker
66bd707f7c
spell fix
2017-06-01 15:47:47 -07:00
Matthew Hooker
8bc038d8b8
remove alicloud_ prefix
2017-06-01 15:47:47 -07:00
Matthew Hooker
8db397765c
spelling and formatting
2017-06-01 15:47:46 -07:00
Matthew Hooker
5ed3be9a8c
set azure metadata
2017-06-01 14:11:40 -07:00
Matthew Hooker
1f4b532ed5
Merge pull request #4948 from hashicorp/kms_key_regions
...
Kms key regions
2017-06-01 13:30:31 -07:00
Megan Marsh
b8c2a5fd43
fix step initializer everywhere StepAMIRegionCopy is called
2017-06-01 09:28:17 -07:00
Megan Marsh
875745ab9b
one more test
2017-05-31 14:16:02 -07:00
Megan Marsh
1944f38985
update docs and clean up
2017-05-31 13:41:32 -07:00
Megan Marsh
5b35d199da
golang has different style than python
2017-05-31 12:27:45 -07:00
Megan Marsh
f9d7292566
builder/amazon regional KMS keys
2017-05-31 11:23:18 -07:00
Matthew Hooker
730cc0889e
Merge pull request #4919 from hashicorp/fix4798
...
builder/vmware: make vnc probe timeout configurable
2017-05-30 12:59:22 -07:00
Matthew Hooker
f801c507fc
builder/vmware: make vnc probe timeout configurable
2017-05-30 12:51:45 -07:00
Jason Ramey
cc309c0e5f
spelling fix
2017-05-26 01:03:11 -04:00
zhuzhih2017
b2aa40655b
fix long line format
2017-05-26 10:59:53 +08:00
zhuzhih2017
5e7e5a419d
format the code as CI required
2017-05-26 10:23:36 +08:00
zhuzhih2017
7b9f93c75f
add retry logic when attach keypair failed
2017-05-26 09:57:00 +08:00
Matthew Hooker
0e3469e913
spell fix
2017-05-25 18:49:45 -07:00
Megan Marsh
7174a7a3d5
New map: region_kms_key_ids, allowing custom encryption keys on a per-region basis. Also new tests.
2017-05-25 14:42:03 -07:00
Matthew Hooker
77b4d47409
only delete snapshots which exist
2017-05-25 14:16:20 -07:00
Matthew Hooker
c0b27dfa6f
don't try to delete extra volumes during clean up
2017-05-25 13:48:32 -07:00
Matthew Hooker
1cf4754d80
correct ami_name error reporting
2017-05-25 13:02:36 -07:00
zhuzhih2017
a26c72f38e
fix the comments about root and apply the keypair with latest dependence
2017-05-25 18:27:54 +08:00
James Nugent
c4439aba82
builder/vmware: Add vmx_remove_ethernet_interfaces
...
This commit adds a new option, `vmx_remove_ethernet_interfaces`, to both
of the VMWare builders. This is useful when building Vagrant boxes,
since Vagrant now produces output such as:
```
WARNING: The VMX file for this box contains a setting that is
automatically overwritten by Vagrant when started. Vagrant will stop
overwriting this setting in an upcoming release which may pre vent
proper networking setup. Below is the detected VMX setting:
ethernet0.pcislotnumber = "33"
If networking fails to properly configure, it may require this VMX
setting. It can be manually applied via the Vagrantfile:
Vagrant.configure(2) do |config|
config.vm.provider :vmware_fusion do |vmware|
vmware.vmx["ethernet0.pcislotnumber"] = "33"
end
end
```
This can be avoided entirely by removing the ethernet adapters from the
VMX file prior to packaging as a Vagrant box, in which case adapters are
created as expected according to the Vagrantfile specification.
2017-05-24 18:53:25 -05:00
Megan Marsh
4abb541468
fix logging to clarify that encrypt_boot needs to be set, not encrypt, and fix typo
2017-05-24 16:39:36 -07:00
Matthew Hooker
f6eb4e1b40
use cleanhttp to get a default transport.
2017-05-24 11:05:59 -07:00
r_takaishi
4fc0616bc9
fix go vet fail
2017-05-24 17:57:21 +09:00
r_takaishi
db58854b0b
make fmt
2017-05-24 16:28:13 +09:00
r_takaishi
37e6539bff
use DefaultTransport
2017-05-24 16:19:30 +09:00
r_takaishi
67ce2da59e
add cacert config to specify custom CA certificate file
2017-05-24 14:21:16 +09:00
r_takaishi
1de9eb2cfd
support client certificate file
...
When AUTH_URL and each endpoints need SSL client authentication, we
have to specify cert file and private key file.
So, add optional config, cert and key.
2017-05-24 10:23:12 +09:00
JD Friedrikson
a0052fdb68
Specify InsecureIgnoreHostKey for HostKeyCallback
...
[A recent breaking change upstream in Golang's crypto
library](e4e2799dd7
)
has broken SSH connectivity for a few builders:
```
==> qemu: Waiting for SSH to become available...
2017/05/20 16:23:58 ui: ==> qemu: Waiting for SSH to become available...
2017/05/20 16:23:58 packer: 2017/05/20 16:23:58 [INFO] Attempting SSH connection...
2017/05/20 16:23:58 packer: 2017/05/20 16:23:58 reconnecting to TCP connection for SSH
2017/05/20 16:23:58 packer: 2017/05/20 16:23:58 handshaking with SSH
2017/05/20 16:23:58 packer: 2017/05/20 16:23:58 handshake error: ssh: must specify HostKeyCallback
2017/05/20 16:23:58 packer: 2017/05/20 16:23:58 [DEBUG] SSH handshake err: ssh: must specify HostKeyCallback
2017/05/20 16:24:05 packer: 2017/05/20 16:24:05 [INFO] Attempting SSH connection...
2017/05/20 16:24:05 packer: 2017/05/20 16:24:05 reconnecting to TCP connection for SSH
2017/05/20 16:24:05 packer: 2017/05/20 16:24:05 handshaking with SSH
2017/05/20 16:24:05 packer: 2017/05/20 16:24:05 handshake error: ssh: must specify HostKeyCallback
2017/05/20 16:24:05 packer: 2017/05/20 16:24:05 [DEBUG] SSH handshake err: ssh: must specify HostKeyCallback
```
Specifying HostKeyCallback as insecure should make things work again
and would make sense for packer's use case.
2017-05-20 16:17:04 -04:00
Matthew Hooker
4137660b7a
fix ami name validation
2017-05-19 02:11:43 -07:00
Matthew Hooker
e67d1fd676
Merge pull request #4900 from rogers0/PR/crypto-CVE-ABI-change
...
handle ABI change of golang-golang-x-crypto-dev
2017-05-18 12:06:08 -07:00
Matthew Hooker
ee5d13611f
update ssh client usage for new crypto/ssh version
2017-05-18 12:01:44 -07:00
numa
b15c3a5c92
Fix error message
...
I've matched the error message to the document
2017-05-18 18:40:16 +09:00
Rémi Jouannet
45143bb6f4
add an option custom_endpoint_ec2 for amazon builder, add a condition if vpc_id is empty don't add the parameter to the aws call
2017-05-17 18:45:20 +02:00