Christopher Gerber
7975c5e336
Move CLIConfig instantiation inside of ProfileName check.
2016-02-02 08:36:36 -06:00
Vasiliy Tolstov
2104fcec69
builder/qemu: allow to specify time.Duration in special <wait> command
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2016-02-02 09:13:37 +00:00
Christopher Gerber
883acb18fa
IAM Role Switching
...
Adds initial IAM Role Switching support and support for AWS CLI Credential and Config files.
See: https://github.com/mitchellh/packer/issues/3109
2016-02-01 18:55:59 -06:00
Rickard von Essen
fd6282529c
Remove deprecated parallels_tools_host_path and guest_os_distribution
2016-02-01 12:25:01 +01:00
Chris Bednarski
2dd8ad9449
Merge pull request #2577 from cybercom-finland/os_source_image_name
...
Support source_image_name in OpenStack builder
2016-01-28 15:40:13 -08:00
Chris Bednarski
4490826a17
Merge pull request #3040 from kimor79/3011
...
Add mount_partition option to amazon-chroot builder
2016-01-25 22:08:07 -08:00
Chris Bednarski
ffb85f6ea5
Merge pull request #3096 from grubernaut/f-resource-limits
...
Prevalidate Hardware Specs on Linux
2016-01-25 21:06:14 -08:00
Jake Champlin
6e8bfd3ce9
Correctly call prepare function in test
2016-01-25 12:54:15 -05:00
Jake Champlin
f01578c91e
Only validate vmware resources on local hosts
...
Disable resource validation when `remote_type` is specified
2016-01-25 12:01:56 -05:00
Vasiliy Tolstov
d96283e475
qemu: allow to use live iso without cache
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2016-01-25 10:44:42 +00:00
Chris Bednarski
b7ba9a507d
Merge pull request #3041 from msabramo/GH-3038_openstack_builder_auto_set_image_type_to_image
...
openstack builder: Set image_type to "image"
2016-01-21 18:39:08 -08:00
Jake Champlin
eda84cb2d3
Prevalidate Hardware Specs on Linux
...
Prevalidates hardware resources on Linux platforms for Virtualbox and
VMware builders. This is currently only available on Linux, as enabling
for both Darwin and Windows platforms, relies on cgo bindings that would
prevent effective cross-compilation.
Packer will now fail to build and validate templates if the template is
requesting that the VM to be created would allocate more system
resources than the host system has available.
This _however_ doesn't catch parallel builds that overflow the hosts
resources, will probably still need a better error message for VM's
failing to boot in that case.
Example Outputs:
```
$ $GOPATH/bin/packer build -debug ./vmware-iso.json
Debug mode enabled. Builds will not be parallelized.
vmware-iso output will be in this color.
2 error(s) occurred:
* Unavailable Resources: RAM - Requested - 204800000MB - Available 21721MB
* Unavailable Resources: Disk - Requested - 4000000000MB - Available 76701MB
```
```
$ $GOPATH/bin/packer build -debug ./vbox-iso.json
Debug mode enabled. Builds will not be parallelized.
virtualbox-iso output will be in this color.
2 error(s) occurred:
* Unavailable Resources: RAM - Requested - 10240000MB - Available 21721MB
* Unavailable Resources: Disk - Requested - 1000000000MB - Available 76701MB
```
2016-01-21 18:19:11 -05:00
Chris Bednarski
9358e8c355
Merge branch 'hotfix/rearrange_vmx_cleanup' of https://github.com/israelshirk/packer into b-2709
2016-01-21 13:36:02 -08:00
Chris Bednarski
1a5d5acea4
Merge pull request #2737 from jen20/ebs-volume-tags
...
Tag EBS volumes with volume_tags in EBS builder
2016-01-21 13:29:49 -08:00
Chris Bednarski
db0e098800
Merge pull request #2750 from rickard-von-essen/issue-2743
...
Fixes #2743 : Change log messages for step_forward_ssh
2016-01-21 13:28:44 -08:00
Chris Bednarski
d6c02f5aeb
Change test to use something that looks like a real region code
2016-01-21 11:29:39 -08:00
Chris Bednarski
d6fad30162
Merge pull request #2955 from yayugu/feature/ami_product_codes
...
Add AMI Product Codes modification for amazon-ebs & amazon-chroot
2016-01-20 09:13:09 -08:00
Ryan Uber
7732cf45a0
builder/googlecompute: fix image name defaults
2016-01-19 11:12:19 -08:00
Chris Bednarski
ab721b7cb1
Merge pull request #2898 from markpeek/http-refactor
...
Refactor http server config into common
2016-01-14 17:10:17 -08:00
Chris Bednarski
e6f1ea9ab2
Merge pull request #2911 from jtslear/endless-loop
...
vmware-iso-builder: Corrects logic checking destroy
2016-01-14 15:00:34 -08:00
Chris Bednarski
61aea5f123
Merge pull request #2912 from esemplare/esxi_ssh_key_support
...
Add support for SSH Key Authentication with ESX builder
2016-01-13 14:33:10 -08:00
Chris Bednarski
7b468af6b8
Merge pull request #2939 from bitrise-io/digitalocean_timeout_increase
...
increased DigitalOcean unlock wait timeouts
2016-01-13 14:11:09 -08:00
Chris Bednarski
b3c1fbc092
Merge pull request #3009 from msabramo/openstack_WaitForImage_retry_on_404
...
openstack: WaitForImage: treat 404 as retryable
2016-01-13 14:03:00 -08:00
Chris Bednarski
f1d6fbb8c4
Merge pull request #3030 from caiush/gce-external-static-ip
...
Added support for GCE external static IPs
2016-01-12 19:36:32 -08:00
Chris Bednarski
1ab5fc8ca5
Merge pull request #3037 from ColinHebert/subnet_az_discovery
...
Add auto discovery of AZ based on the subnet
2016-01-12 19:35:54 -08:00
Chris Bednarski
0cad32c696
Move region list into a function so we can re-use it in tests
2016-01-12 19:03:21 -08:00
Chulki Lee
20c0f6b02b
fix doc: wrong function name
2016-01-11 13:06:34 -08:00
Chulki Lee
1aa24035fc
add ap-northeast-2: Asia Pacific (Seoul)
2016-01-11 13:05:18 -08:00
Chulki Lee
7018517374
one region per line, sorted
2016-01-11 13:04:35 -08:00
Chulki Lee
3f0795b23c
sort regions by name
2016-01-11 13:04:00 -08:00
Chulki Lee
7f3f5f4bfa
add tests for all ami regions
2016-01-11 13:02:38 -08:00
Marc Abramowitz
3e0914b6a2
openstack builder: Set image_type to "image"
...
so that built images are treated as images and not as snapshots.
Fixes: GH-3038
2016-01-06 15:00:31 -08:00
Kimo Rosenbaum
09543fc4e7
Add mount_partition to amazon-chroot builder to specify a partition other than 1
2016-01-06 11:35:01 -08:00
Colin Hebert
48d242a8f8
Use pointers in the AWS API
2016-01-06 08:12:20 +01:00
Colin Hebert
9385a277c6
Fix API calls and remove az detection in chroot
2016-01-06 08:02:29 +01:00
Colin Hebert
e4930e7b57
Merge branch 'master' into subnet_az_discovery
2016-01-06 07:43:03 +01:00
Caius Howcroft
069c3c21b1
Added support for GCE external static IPs
2015-12-24 19:15:41 -06:00
Marc Abramowitz
4b9c4cc3e6
openstack: WaitForImage: treat 404 as retryable
...
Addresses comment at
https://github.com/mitchellh/packer/issues/1415#issuecomment-165739549
2015-12-18 10:37:31 -08:00
Marc Abramowitz
b08b88b019
openstack: Add maxNumErrors for WaitForImage
...
This partly addresses comment at
https://github.com/mitchellh/packer/issues/1415#issuecomment-165739549
2015-12-18 10:27:18 -08:00
Chris Bednarski
e009d3fb18
Merge pull request #3005 from msabramo/more_informative
...
Make the OpenStack builder more informative
2015-12-17 23:52:06 -05:00
Marc Abramowitz
39d6eda370
Make the OpenStack builder more informative
...
about the servers, images, and keypairs that it's dealing with.
2015-12-17 11:12:52 -08:00
Andrew Starr-Bochicchio
2212125f46
Return DigitalOcean image ID in output.
2015-12-15 12:00:04 -05:00
Chris Bednarski
00ea5ff7de
Merge pull request #2982 from minimum2scp/features/support-googlecompute-preemptible
...
Added support of preemptible instance in googlecompute builder
2015-12-14 14:34:09 -08:00
Dan Buch
81fed4556f
Merge remote-tracking branch 'upstream/master' into googlecompute-disk-type
2015-12-08 19:19:13 -05:00
Ian Duffy
b57140da47
Add support for using cloud-init via a ConfigDrive
...
Signed-off-by: Ian Duffy <ian@ianduffy.ie>
2015-12-08 12:45:26 +00:00
YAMADA Tsuyoshi
18d79cfb3d
added test
2015-12-05 15:48:07 +09:00
YAMADA Tsuyoshi
afd314959b
supported `preemptible` in googlecompute builder
2015-12-05 05:13:35 +09:00
David Zanetti
418da16991
Track the import task and report AMIs created from it
2015-11-23 15:55:09 +13:00
Yuya YAGUCHI
9c8405b2c6
Add AMI Product Codes modification for amazon-ebs & amazon-chroot
2015-11-19 18:28:04 +09:00
Viktor Benei
eda2c9c605
actually make it 20 mins
2015-11-14 14:14:33 +01:00
Viktor Benei
7e568644a5
increased DigitalOcean unlock wait timeouts
2015-11-14 12:11:44 +01:00
Andy Williams
d36b653d3f
Make DigitalOcean artifact ID match AWS format
...
The Vagrant post processor expects the DO artifact ID to look like an
AWS artifact ID (region_id:snapshot_id). This commit makes the DO
artifact Id() function output this format.
2015-11-08 14:38:56 -05:00
michael
499bd5a362
Add support for SSH Key Authentication with ESX builder
2015-11-03 19:08:35 -08:00
John T Skarbek
cf4a19a304
vmware-iso-builder: Corrects logic checking destroy
...
* I suspect the logic written for checking if the vm has been destroyed is incorrect. The test will come back from the esx server indicating that the vm is gone as it should, but the logic I believe is reversed so we never hit the break in the if statement
* Feedback is MORE than welcome
2015-11-03 14:49:53 -05:00
Mark Peek
7f149e595d
Refactor http server config into common
2015-11-01 14:45:47 -08:00
Mark Peek
31dd989e2e
Add qcow2 shrink/compress tests for #2748
2015-10-31 18:15:19 -07:00
Mark Peek
c2fd83e04c
Merge pull request #2748 from vtolstov/qcow2
...
add shrink step for qcow2 image format
2015-10-31 18:13:04 -07:00
Mark Peek
0c8a83e9e7
Merge pull request #2895 from higebu/fix-typo
...
Fix #2892 : vmware-iso builder fix mapstructure typo
2015-10-31 11:11:13 -07:00
Mark Peek
ca19688316
aws: fix test breakage due to upstream breaking change #2891
2015-10-31 11:04:50 -07:00
Yuya Kusakabe
07079a5905
Fix #2892
2015-10-31 19:32:40 +09:00
Luke Amdor
8682dec178
aws: build after upstream breaking change
...
see 1a69d06935
2015-10-30 13:58:56 -05:00
Vasiliy Tolstov
8e1cc16ab5
add convert step for qcow2 image format
...
https://ext4.wiki.kernel.org/index.php/Ext4_VM_Images does not
recommends to dd zero file and deletes it, but in case of enabling
discards and qcow2 image we can recreate qcow2 file with less used
space.
Also qemu-img able to enable compression for qcow2 files, that
sometimes may be useful because it natively supported by qemu.
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2015-10-29 12:27:46 +00:00
Mark Peek
eb15536041
Merge pull request #2774 from btd/btd-patch-1
...
Fix AMI creation - replace not allowed character , and add allowed .
2015-10-26 22:00:16 -07:00
Mark Peek
4e1e9b788a
Merge pull request #2845 from abridgett/feature/spot_price_zero
...
spot_price of "0" to mean on demand
2015-10-26 21:51:44 -07:00
Mark Peek
581ab9f4f5
Merge pull request #2849 from markpeek/iso-cleanup
...
Refactor builder ISO options
2015-10-26 21:43:59 -07:00
Mark Peek
c3d77dc5a1
Fix unintended BC issues in ISO option refactoring
2015-10-26 17:39:48 -07:00
Mark Peek
ba7814b0ed
Merge pull request #2846 from markpeek/packer-tmp
...
Create docker temp files under packer.d when TMPDIR is not set
2015-10-26 17:09:22 -07:00
Adrian Bridgett
3257b26fa7
one more place to check SpotPrice
2015-10-26 10:20:49 +00:00
Mark Peek
0d2fa223f2
builder/vmware-esxi: hide password in ovftool command
2015-10-23 16:51:03 -07:00
Mark Peek
9d0c443ca2
builder/vmware-esxi: Add format validation and step_export tests
2015-10-23 16:50:14 -07:00
Yuya Kusakabe
699c673536
builder/vmware-esxi: Add step_export
...
If `format` option is configured, packer exports the VM with ovftool.
website: Document about OVF Tool and `format` option.
post-processor/vsphere: Enable to use `mitchellh.vmware-esx` artifact type and OVF and OVA formats, fixes #1457 .
2015-10-23 09:00:53 +09:00
Mark Peek
cdcffecc2d
Refactor builder ISO options
...
The ISO builders (parallels, qemu, virtualbox, and vmware) had too
much common code which needed to be maintained separately. This change
moves that code to a common ISO configuration.
2015-10-20 16:27:47 -07:00
Brian Dwyer
a563944b58
Fix #2695 : Prevent duplicate ISO download for multi-builder builds
...
Add extension to VMware ISO builder to bring in sync with
Virtualbox ISO builder
2015-10-20 12:54:04 -07:00
Mark Peek
e9657e6a9f
Merge pull request #2642 from oliviertremblay/master
...
Make TargetPath customizable
2015-10-20 12:11:13 -07:00
Mark Peek
bc0f438db0
Use alternate temp directories for docker
...
The temporary directories will be created under the packer config
directory. Setting PACKER_TMP_DIR will override this path.
2015-10-20 11:34:14 -07:00
Denis Bardadym
25e2ff7b85
Fix not allowed comma, add all allowed special characters
2015-10-19 13:41:30 +03:00
Mark Peek
6f5c64db41
Merge branch 'use-default-volumesize'
2015-10-18 13:04:41 -07:00
Mark Peek
a9716a4dc7
Merge pull request #2797 from jen20/improve-aws-instance-builder-error
...
Add suggestion to AWS Instance builder error message
2015-10-18 12:14:03 -07:00
Rickard von Essen
40355c1d40
Merge pull request #2839 from rickard-von-essen/issue-2836
...
Fixes #2836 - Use "/Applications/Parallels Desktop.app" as fallback…
2015-10-18 20:48:18 +02:00
Mark Peek
fc39f07ecc
Add EbsOptimized to RequestSpotInstances ( #2806 )
2015-10-18 11:39:36 -07:00
Mark Peek
edda3de677
Merge pull request #2806 from abridgett/feature/add_ebs_optimized_support
...
Add ebs_optimized support
2015-10-18 11:31:50 -07:00
Mark Peek
c48548b3bb
go fmt
2015-10-18 11:13:09 -07:00
Mark Peek
f6c7e3740f
Don't create EBS block device if VirtualName is specified
2015-10-18 11:05:21 -07:00
Mark Peek
914e78f602
builder/amazon/common: go fmt
2015-10-18 11:00:05 -07:00
Mark Peek
581c3574f6
Merge pull request #2672 from lightpriest/b-aws-ebs-block-device
...
Fix and refactor block device mapping builder
2015-10-18 10:56:53 -07:00
Rickard von Essen
4015c1789b
Fixes #2836 - Use "/Applications/Parallels Desktop.app" as fallback app path.
2015-10-16 19:57:39 +02:00
Seth Vargo
e863dbe100
Revert "Merge pull request #2807 from markpeek/markpeek-docker-tmpdir"
...
This reverts commit 31d3678814
, reversing
changes made to a3a7c974d0
.
2015-10-15 14:31:13 -04:00
Rickard von Essen
141dcd5c03
Fixes #2828 : parallels prlctl_post don't interpolate values.
2015-10-15 09:28:29 +02:00
Dan Buch
cac93d311c
builder/googlecompute: accept disk type, default pd-standard
2015-10-13 20:18:26 -04:00
Chris Bednarski
f01956405b
Merge pull request #2654 from mitchellh/b-xmlpath
...
Update dependency to an SSL-enabled path; this was migrated from launchpad to github
2015-10-12 16:39:35 -07:00
Eric Johnson
96d522fb64
Merge pull request #2811 from sparkprime/verbatim_account
...
account_file can be verbatim JSON string
2015-10-12 15:57:52 -07:00
Chris Bednarski
ff6d448886
Merge pull request #2814 from mitchellh/b-2793-repro
...
Add a test case to validate download file size when downloading from docker
2015-10-12 13:38:52 -07:00
Mark Peek
e5a713ff01
Alternative fix for #2641 : make random script name actually random
2015-10-11 13:31:09 -07:00
Mark Peek
45829c30e5
builder/amazon/*: fix go vet
2015-10-11 12:18:23 -07:00
Chris Bednarski
5eddaa77bf
Corrected sprintf formatting in error messages
2015-10-08 17:43:54 -07:00
Chris Bednarski
cc153aa71f
Added a test to verify byte size for larger files downloaded from docker
2015-10-08 17:15:27 -07:00
Chris Bednarski
8ff5c07d0c
Add a new packer template for testing large file downloads
2015-10-08 16:37:14 -07:00
Dave Cunningham
1fea962a3a
account_file can be verbatim JSON string
2015-10-08 02:40:18 -04:00
Mark Peek
31d3678814
Merge pull request #2807 from markpeek/markpeek-docker-tmpdir
...
Workaround docker-machine shared folder mapping issue
2015-10-07 14:14:02 -07:00
Mark Peek
77bfd1de2e
Workaround docker-machine shared folder mapping issue
...
When using docker-machine on a Mac only the /Users folder is shared with
the VM. Uploads fail since the normal tmpdir is not shared. This change
uses the local packer directory (usually when run in the users home
folders) allowing it to work without setting TMPDIR explicitly. A better
fix would be to use the docker API directly but that would force users
to use docker API version 20+.
- fixes #901 , fixes #1752 , fixes #2436 , fixes #2675 , fixes #2697 .
2015-10-07 13:29:53 -07:00