Jason A. Beranek
2c41d59e21
vmware-iso: Update VNCAddressFinder interface to return errors from VNCAddress()
2014-08-18 20:34:37 -05:00
Jason A. Beranek
6acbc91ff7
vmware-iso: Fix error vnc min/max ports [GH-1288]
2014-08-18 20:15:15 -05:00
Tim Dysinger
c79121617c
Use Region not S3Endpoint
2014-08-18 08:52:31 -10:00
Marc Abramowitz
9bd33d1e0b
Make region required for rackspace but not other providers
...
Update test to make it pass.
2014-08-15 11:19:04 -07:00
Marc Abramowitz
69500b6943
OpenStack builder: Make region not required
...
Perhaps "region" is required when using a public provider like
Rackspace? It's not required for my private cloud from Metacloud. I
suspect a lot of private clouds have only a single region and thus don't
need "region" to be specified.
2014-08-15 00:32:53 -07:00
Marc Abramowitz
031c25154f
openstack builder error out when gets blank keypair
2014-08-12 08:29:00 -07:00
Hiroyuki Sato
965d273907
Add machine_type option for qemu builder.
...
On CentOS7, ``pc-1.0'' qemu-kvm machine type are not supported.
Supported machines are:
none empty machine
pc RHEL 7.0.0 PC (i440FX + PIIX, 1996) (alias of pc-i440fx-rhel7.0.0)
pc-i440fx-rhel7.0.0 RHEL 7.0.0 PC (i440FX + PIIX, 1996) (default)
rhel6.5.0 RHEL 6.5.0 PC
rhel6.4.0 RHEL 6.4.0 PC
rhel6.3.0 RHEL 6.3.0 PC
rhel6.2.0 RHEL 6.2.0 PC
rhel6.1.0 RHEL 6.1.0 PC
rhel6.0.0 RHEL 6.0.0 PC
q35 RHEL-7.0.0 PC (Q35 + ICH9, 2009) (alias of pc-q35-rhel7.0.0)
pc-q35-rhel7.0.0 RHEL-7.0.0 PC (Q35 + ICH9, 2009)
2014-08-12 16:02:03 +09:00
notogawa
eacae832ad
Fixes #1334 , Add power on retry to ESXi Driver.
2014-08-11 16:43:34 +09:00
Eric Johnson
a5bc5beccb
Merge pull request #1397 from jfrazelle/disk_size
...
add disk size to google compute
2014-08-08 11:54:58 -07:00
Jessica Frazelle
8bc696ce9e
add disk size to google compute, so as to avoid disk size errors on exporting the image
2014-08-08 14:39:03 -04:00
Rickard von Essen
fe37d9b6e1
parallels-iso: ISO not removed from VM after install [GH-1338]
...
Also remove floppy and prl-tools ISO if applicable.
2014-08-08 10:07:32 +02:00
Ian Unruh
100200e1ae
Add templating to VMware SSH host option
2014-08-07 11:11:08 -04:00
Matthew Baker
b8c13d3e4d
Keeping the -machine type=pc if accelerator method set to "none"
2014-08-07 04:08:50 -07:00
Matthew Baker
99d15abfd2
adding allowed values for accelerator
2014-08-07 02:51:24 -07:00
Matthew Baker
5814b9d3c7
Merge branch 'oracle'
2014-08-06 02:44:39 -07:00
Matthew Baker
9220d644d1
Making graphics and hardware virtualisation optional and configurable
2014-08-06 02:43:38 -07:00
Matthias Schmitz
65f71daf73
Allow 'tcg' as accelerator in builder-qemu
...
* Using 'tcg' as accelerator for qemu-system allows packer to run in a
virtual machine as no kvm or xen support is needed.
* Also document the default behavior if no accelerator is given in the
documentation.
2014-08-05 22:46:47 +02:00
Peter Sankauskas
ab9f0bc3c8
Removing my debugging output
2014-07-29 22:18:43 -07:00
Peter Sankauskas
a2c0b104f0
Adding the conditional necessary to construct the right options for both PV and HVM images. Also adding a test to make sure it is doing the right thing
2014-07-29 21:56:37 -07:00
Peter Sankauskas
460e2da248
The mount command for a PV image that is attached to /dev/sdf is:
...
mount /dev/xvdf /mnt/point
while for an HVM image that is attached to /dev/sdf, its mount command is
mount /dev/xvdf1 /mnt/point
so this code enabled that
2014-07-29 21:55:20 -07:00
Peter Sankauskas
6b751cac39
Formatting
2014-07-29 16:15:53 -07:00
Peter Sankauskas
a59ee93bca
To be able to build both PV and HVM images, it is not possible to use both /dev/sd[f-p] and [1-16] as the HVM images get attached at /dev/sdf but must be mounted a /dev/sdf1.
...
This reduces the number of simultaneous packer runs possible significantly, but unless you are Netflix, who have Aminator anyway, this is probably never going to be an issue
2014-07-29 16:07:49 -07:00
Matthew Baker
c87c88fce2
OEL available net device
2014-07-29 07:41:07 -07:00
Matthew Baker
0d07960f3e
Disabling SDL gui mode
2014-07-29 07:40:29 -07:00
Misha Brukman
4a85aefe0f
Rename "Gsutil" to "Gcloud" now that we're updating "gcloud" and not "gsutil".
...
Also renamed files accordingly.
2014-07-25 17:23:15 -04:00
Eric Johnson
7f38936596
Merge pull request #1350 from mbrukman/googlecompute-driver-vm-images
...
builder/googlecompute: added support for all standard VM images
2014-07-25 06:08:06 -07:00
Eric Johnson
ca53d7e4c0
Merge pull request #1292 from maestrodev/gcloud
...
[GCE] google compute builder is broken, gsutil update fails in newer images
2014-07-24 19:40:17 -07:00
Misha Brukman
5b56970b09
Added CoreOS, OpenSUSE, and Windows projects for searching images.
2014-07-24 20:39:04 -04:00
abishopric
d62edd6c05
Print the evaluated bundle commands
2014-07-24 16:30:30 -07:00
Henry Huang
97eb744c87
De-register the unavailable image in the cleanup
2014-07-22 23:40:38 +08:00
Ross Smith II
2c8ea2b6d2
Merge pull request #1361 from sneal/do-not-add-floppy-files-to-vmx
...
Do not re-add floppy disk files to VMX
2014-07-21 18:09:19 -07:00
Shawn Neal
05ebc8f316
Do not re-add floppy disk files to VMX
...
This commit fixes errors like this in the vsphere post-processor when using floppy files in the builder step:
Error: File (/var/folders/zl/57c1vmr532z_ryf1scw53_b9ycmxh7/T/packer964492999) could not be found
The configure VMX step re-adds the floppy files, so we need to configure the VMX and _then_ clean the VMX in that order.
2014-07-21 17:06:43 -07:00
James Massara
ca84e2ac55
Fix bug with getting ec2 connection instead of source image
2014-07-21 15:28:47 -07:00
Andy Thompson
4a98ab377a
Add Stderr capture to Commit and TagImage calls.
2014-07-21 20:42:24 +01:00
Andy Thompson
ed446782f9
Add a docker save post processor
2014-07-21 20:42:24 +01:00
Andy Thompson
bf16683140
Add a docker tag post processor
2014-07-21 20:42:23 +01:00
Andy Thompson
1baa63f060
Add a docker commit step to the docker builder that runs instead of export if export_path not present
2014-07-21 20:42:23 +01:00
Mitchell Hashimoto
7439baf75e
Merge pull request #1343 from fnoeding/templating
...
Added support to use templates for more fields in null-builder and amazon-builder
2014-07-19 09:49:49 -07:00
Mitchell Hashimoto
8250755a23
Merge pull request #1228 from jmassara/enhanced_networking
...
builder/amazon: support for enhanced networking
2014-07-19 09:48:24 -07:00
Mitchell Hashimoto
67bad68c9f
Merge pull request #1250 from higebu/check-upload-iso-hash
...
builder/vmware/esxi: checksum iso upload to not always upload
2014-07-19 09:42:26 -07:00
Misha Brukman
01130da729
builder/googlecompute: added support for all standard VM images
...
Also fixed the error message to be clear that the image was not found in any of
the projects that we attempted to search, rather than keep the error message
from the last project, which may be confusing to users.
2014-07-18 15:08:08 -04:00
Florian Noeding
de29431a43
null-builder: added support for templating
2014-07-17 17:46:22 +02:00
Florian Noeding
e932ec6978
amazon builders now handle templating of user_data and user_data_file
2014-07-17 17:45:25 +02:00
iweb
d7268a11f7
Add support for building QEMU images from pre-existing image files
...
If the `disk_image` parameter is set to true treat the ISO location
as the source of the disk image, copy it to the destination,
resize and boot it.
2014-07-17 15:05:46 +01:00
Hiroaki Nakamura
7549735bd3
Accept VirtualBox release candidate version (ex. 4.3.14_RC1 from 4.3.14_RC1r94870)
2014-07-12 19:08:10 +09:00
Nina Berg
bd1a0d07fb
Added some variables to amazon-ebs builder and chef-client provisioner
2014-07-08 13:15:17 -04:00
Ross Smith II
418ed0cb3f
Merge pull request #1316 from yuuzi41/fix-esx5-path-separator
...
fix invalid esx5 path separator in windows
2014-07-05 07:00:29 -07:00
yuuzi41
982e523ba2
fix invalid esx5 path separator in windows
...
before, this code had joining path elements by filepath module. filepath module generate path string with backslash-joined in Windows. but ESX require path string with slash-joined. it means that this code generate illegal path string in windows. illegal path string raised "Error creating disk".
this patch fixes path separator from backslash to slash in windows. from this, creating disk would succeed without error.
2014-07-02 21:55:47 +09:00
Ian Delahorne
0da4aa6f24
Replace ListServers hack with update ServerById
...
[gophercloud#168](https://github.com/rackspace/gophercloud/issues/168 ) has been
patched to not panic on non-existing server id's. If an error is returned,
check if the error is a 404 first before bailing.
2014-06-30 19:51:48 -05:00
Ross Smith II
be606418e6
Merge pull request #1304 from lflux/fix-openstack-serverid-crash
...
Fix openstack ServerById crash
2014-06-30 10:56:53 -07:00
Ian Delahorne
2d1e1cc83e
Sort AMI names in Artifact.String - fixes random test failures
...
With go tip, the output from Artifact.String will sometimes be output in a
different order than the tests. Sort the AMI strings before outputting.
See https://travis-ci.org/mitchellh/packer/jobs/28748467 for an example of this
failure.
2014-06-30 09:07:36 -05:00
Ian Delahorne
3af14d3dc7
Fix typo
2014-06-29 23:50:01 -05:00
Ian Delahorne
946843982f
Workaround for gophercloud.ServerById crashing, fixes #1257
...
gophercloud.ServerById is broken in v0.1.0 - it will crash if you feed it a
non-existing server ID (see [rackspace/gophercloud #168 ](https://github.com/rackspace/gophercloud/issues/168 ))
Instead, list all servers and iterate over them. If the server id isn't found,
return "DELETED" as a state. Not perfect but it works until next version of
gophercloud is released.
2014-06-29 23:45:50 -05:00
Carlos Sanchez
80fa018a36
[GCE] gsutil update fails in newer images, use gcloud
...
googlecompute: It looks like you are trying to run "/usr/local/bin/../share/google/google-cloud-sdk/bin/bootstrapping/gsutil.py update".
googlecompute: The "update" command is no longer needed with the Cloud SDK.
googlecompute: To update, run: gcloud components update
2014-06-26 13:50:06 +02:00
Yuya Kusakabe
2b8ebe65e4
Resolves #1256 , add warning mesasge to VMware ESXi driver
2014-06-25 11:20:24 +09:00
Rickard von Essen
25d2a74f49
Merge pull request #1187 from rickard-von-essen/fix_typing
...
builder/parallels: Fixed problems with character when typing boot command
2014-06-22 21:05:40 +02:00
Rickard von Essen
a5d39cebc7
Merge pull request #1173 from rickard-von-essen/pvm_bootcommand
...
[feature] Support boot command for pvm builder
2014-06-22 21:05:04 +02:00
Rickard von Essen
3f3deab162
Merge pull request #1279 from rickard-von-essen/issue_1226
...
Parallels-iso errors while removing floppy drive GH-1226
2014-06-22 21:04:02 +02:00
Rickard von Essen
d6ddb5f6ff
Merge pull request #1278 from rickard-von-essen/issue_1225
...
Parallels errors while creating floppy disk GH-1225
2014-06-22 21:03:27 +02:00
StefanScherer
9dc06b608e
increase VMware cleanup timeout to 120 seconds
2014-06-20 01:07:40 +02:00
Ross Smith II
a0caa635fa
Merge pull request #1261 from lflux/openstack-networks-support
...
Add ability to configure networks for openstack
2014-06-16 17:53:44 -07:00
Ian Delahorne
c00696992a
Add ability to configure networks for openstack
...
Add configuration option `networks`, a list of network UUIDs, to attach to the
source instance.
In some openstack installs, no default network will be attached or the network
with the ability to attach a public floating IP will need to be specified.
2014-06-15 13:56:19 -05:00
Ian Delahorne
8bf935beb8
Force IPv4 addresses from address pools in Openstack. Fixes #1258
...
Rackspace defaults to a public IPv4 and IPv6 address. These are returned in
random order, with the sprintf further on generating an incorrect connection
string if on IPv6. Force IPv4 until support for correct connection strings and
a configuration flag for logging in over IPv6 is added.
2014-06-15 02:12:52 -05:00
Yuya Kusakabe
6ff38c86ea
Fixes #1244 , Add a check for upload iso hash to ESXi Driver
2014-06-12 14:33:34 +09:00
StefanScherer
de5c38e6c5
skip adding floppy again in vmx_data_post step
2014-06-09 01:02:21 +02:00
Mohammed Naser
110c168a68
Update run_config.go
2014-06-07 16:04:29 -04:00
Rickard von Essen
905f242582
Parallels-iso errors while removing floppy drive GH-1226
...
Status "stopping" should be handled in IsRunning
2014-06-06 15:59:27 +02:00
Paul Palmer
5a8f56b6ad
Parallels errors while creating floppy disk GH-1225
...
Patch applied with modifications - tests updated to pass.
2014-06-06 15:54:19 +02:00
James Massara
be27ecc64b
Add option to enable enhanced networking (SriovNetSupport) for images.
2014-06-04 14:58:11 -07:00
Brandon Turner
b2258dc4e9
Fix chroot builder to work with chef-solo
...
According to be5adb92b5
, the UploadDir
method supports two ways of copying depending on whether a trailing
slash is used:
src = "dir" -> dest/dir
src = "dir/" -> dest
On BSD-based systems (such as OSX, FreeBSD, etc.) the `cp -R` command
handles these two cases automatically. However, Linux treats "src/" and
"src" the same.
To support the trailing slash syntax portably, we can use:
src = "dir" -> dest/dir
src = "dir/." -> dest
This works on BSD and Linux. It is better than using wildcards as it
grabs hidden files as well.
This fixes #1196 that prevents the chef-solo provisioner from working
with the chroot builder.
2014-05-27 19:02:29 -05:00
Henry Huang
da29d684a8
Enable the spot_price in "amazon-instance-store" AMI
2014-05-26 23:01:49 +08:00
Henry Huang
3980c7dcfd
Save the spot request before waiting for its active state
2014-05-26 23:01:49 +08:00
Henry Huang
1e1fa3de26
Add the cleanup for existing spot request
2014-05-26 23:01:49 +08:00
Henry Huang
5d410bddc9
When unexpected state found in waiting, notify the caller func with a correct error message
2014-05-26 23:01:49 +08:00
Henry Huang
3a74c469e5
Add "spot_price" param into template processing
2014-05-26 23:01:49 +08:00
Henry Huang
a411405628
Clean up code via "go fmt"
2014-05-26 23:01:49 +08:00
Henry Huang
c33e7cc867
Add the support of launching spot instances in "amazon-ebs" AMI
2014-05-26 23:01:49 +08:00
Matt Behrens
9eb32e5dcd
implement `iso_interface` setting
...
Adds a new configuration option, `iso_interface`, that can be set to
`sata` to mount the ISO on the SATA controller. Required for OS X.
2014-05-23 21:14:24 -04:00
Greg Burek
3a45712780
Adds support for encrypted EBS volumes
2014-05-22 11:36:22 -07:00
Henry Huang
43385a58bc
Refine the comments
2014-05-20 11:16:50 +08:00
Rickard von Essen
29344a5631
Parallels builder mistypes boot command on OmniOS
...
Fixes [GH-1185] and adds tests for the boot command.
Also requires the latest prl-utils (e592a15) to fix the stuck on enter
while typing.
2014-05-19 20:14:50 +02:00
Rickard von Essen
4d994deb3a
[feature] Support boot command for pvm builder
...
Similar to [GH-1082] but for parallels-pvm builder.
2014-05-19 20:04:13 +02:00
Henry Huang
e8c09ae223
Add the cleanup when the process of EBS AMI interrupted
2014-05-20 00:40:39 +08:00
Pierre Riteau
5294e0ed61
Remove unused file
2014-05-15 17:22:40 +01:00
Ross Smith II
e93697ab4e
builder/virtualbox-ovf,vmware-vmx: add `boot_command` support
...
Fixes #1082
2014-05-12 21:19:24 -07:00
Ross Smith II
750ffc8a54
builder/vmware: add VMWare Player 6 support
...
Also added VMWare Player support in Windows
Fixes #972
2014-05-12 18:35:37 -07:00
Ross Smith II
8313856949
builder/vmware-vmx: add floppy_files support
2014-05-12 18:24:03 -07:00
Ross Smith II
38d1d7fd3c
Update vmx_config.go
...
Tiny typo.
I really should add a unit test here.
2014-05-12 14:43:12 -07:00
Ross Smith II
b397d75a52
Update driver_workstation9.go
...
1 line typo
2014-05-11 08:46:19 -07:00
Rickard von Essen
4cdce51df5
builder/parallels: Don't delete sound, since it doesn't allways exist.
2014-05-11 11:20:56 +02:00
Rickard von Essen
bd25866e90
builder/parallels: Select which interface to connect to.
...
The IP address that the guest OS connect to download files from the
http_dir is determined by searching for a host interface with an IP
assigned. Now it is possible to use host_interfaces to select which
interfaces are searched.
2014-05-11 11:12:50 +02:00
Rickard von Essen
bd5d5e049d
builder/parallels: Added pppX interface to be able to run packer when using mobile wlan
2014-05-11 00:14:35 +02:00
Mitchell Hashimoto
6a930d819c
builder/vmware/common: remove unnecessary tags
2014-05-10 10:21:44 -07:00
Mitchell Hashimoto
d925331902
fmt
2014-05-10 10:19:35 -07:00
Mitchell Hashimoto
ad72c5a4bb
builder/vmware/common: more tests
2014-05-10 10:19:14 -07:00
Mitchell Hashimoto
7e991af48e
builder/vmware/common: tests for StepPrepareTools
...
/cc @rasa - an example
2014-05-10 10:16:53 -07:00
Mitchell Hashimoto
1b1d87128c
Merge pull request #1154 from rasa/765-add-tools-upload-flavor-support-in-vmware-vmx
...
builder/vmware-vmx: Added tools_upload_flavor support
2014-05-10 10:07:34 -07:00
Ross Smith II
779c7184a2
go fmt
2014-05-09 21:12:14 -07:00
Ross Smith II
d92179847d
provisioner/file: set file/directory permissions
...
fixes #1064
2014-05-09 21:03:35 -07:00
Mitchell Hashimoto
e9727df15e
Merge pull request #1146 from higebu/fix-esxi-driver-iso-upload-path
...
Fixes #1062 , ESXi Driver supports PACKER_CACHE_DIR
2014-05-09 19:56:28 -07:00
Ross Smith II
ba13239672
builder/vmware-vmx: Added tools_upload_flavor support
2014-05-09 17:24:19 -07:00
Ross Smith II
bdfac49410
builder/vmware: added vmx_data_post option
2014-05-09 09:25:15 -07:00
Yuya Kusakabe
6dc858e6cf
Fixes #1062 , ESXi Driver supports PACKER_CACHE_DIR
2014-05-09 13:16:18 +09:00
Jaime Soriano Pastor
32bb745734
Force LANG=C before appending rest of environment, as only first occurence is used
2014-05-08 17:11:19 +02:00
Mitchell Hashimoto
0b63f4f9dc
Merge pull request #1132 from rasa/1123-use-local-vboxguestadditions-iso
...
virtualbox: use local VBoxGuestAdditions.iso by default
2014-05-06 18:54:13 -07:00
Ross Smith II
bea167a48e
builder/vmware-vmx: add floppy_files support
...
fixes #1057
2014-05-06 17:20:26 -07:00
Ross Smith II
58fd5aec61
virtualbox: use local VBoxGuestAdditions.iso by default
...
fixes #1123
2014-05-06 16:15:55 -07:00
Mitchell Hashimoto
d8d22299ce
Merge pull request #1127 from jakobadam/master
...
builder/parallels: Fix http_files typo in comments
2014-05-06 08:31:22 -07:00
Jakob A. Dam
40150c376d
Fix http_files typo in comments
2014-05-06 17:13:15 +02:00
Pierre Riteau
2ee90b29c3
Allow OpenStack builder to skip certificate verification
2014-05-06 12:26:05 +01:00
Rickard von Essen
83cf8b23a1
Merge pull request #1120 from rickard-von-essen/vbox-ovf_guest_add
...
virtualbox-ovf support for guest_additions_mode
2014-05-04 22:58:04 +02:00
Ross Smith II
a8a583a80c
Merge pull request #1116 from higebu/fix-remote-esxi-builder-doesnt-upload-floppy
...
Fixes #1106 , Remote ESXi builder doesn't upload floppy
2014-05-04 10:57:22 -07:00
Rickard von Essen
c2013bf680
virtualbox-ovf support for guest_additions_mode
...
Fixes #1035 "virtualbox-ovf" builder doesn't support "guest_additions_mode" option
2014-05-04 18:48:41 +02:00
Mikhail Zholobov
57e8f8e15b
builder/parallels: Fixed unit test [GH-1115]
2014-05-03 14:50:30 +04:00
Yuya Kusakabe
5cac40b47c
Fixes #1106 , Remote ESXi builder doesn't upload floppy
2014-05-03 18:41:00 +09:00
Mikhail Zholobov
dbe40b9f55
builder/parallels: Do not delete the first cdrom device
...
Just detach the iso from 'cdrom0', but do not delete this device from VM confguration.
2014-05-03 11:11:10 +04:00
Mitchell Hashimoto
97115821ac
Merge pull request #1111 from njhartwell/master
...
builder/amazon/chroot: Appending wildcard to src causes problems
2014-05-02 09:47:46 -07:00
Nathan Hartwell
be5adb92b5
Appending wildcard to src causes problems
...
It appears that the desired effect was to support
src = "dir" -> dest/dir
src = "dir/" -> dest
but cp -R already handles this, provided the trailing slash does not
get consumed by the shell.
The wildcard causes problems when multiple files match the
shell glob, e.g.
UploadDir("/tmp", "./salt*", [])
where my working dir contains
- salt
- salt-foo
will error.
2014-05-02 11:18:56 -05:00
Yuya Kusakabe
7ff781b258
Revert the way to retrieve vm ip in VMware ESXi Driver
2014-05-03 00:25:58 +09:00
Mitchell Hashimoto
b4729ca7aa
Merge pull request #848 from nebula/securityGroups
...
Support for Security Groups in Openstack
2014-05-01 20:24:42 -07:00
Mitchell Hashimoto
5c5d62733f
fmt
2014-05-01 14:24:19 -07:00
Mikhail Zholobov
c1510d2b50
Parallels provider: fix typos
2014-05-02 01:07:00 +04:00
Mitchell Hashimoto
3a68c8aaef
builder/parallels: update builder ID
...
We're using packer namespace now
2014-05-01 13:59:52 -07:00
Rickard von Essen
cdaa9d5a8e
Added support for Parallels Desktop for Mac [GH-223]
...
Added builder plugins: builder-parallels-iso and builder-parallels-pvm.
2014-05-01 20:29:22 +02:00
Pierre Riteau
04d1bc67ff
Support more user variables in the OpenStack builder
2014-05-01 10:23:43 +01:00
Kgespada
f48fc1e2cd
Adds security group support
...
Allows security groups to be specified in the template.
2014-05-01 00:32:55 -07:00
Mitchell Hashimoto
660be5b783
builder/openstack: support a tenant ID
2014-04-30 17:21:32 -07:00
Mitchell Hashimoto
4a725409af
Merge pull request #919 from nebula/manage_floating_ips
...
[OpenStack] Add flexible IP pool/address handling.
2014-04-30 16:54:13 -07:00
Mitchell Hashimoto
6f6d656267
Merge pull request #1089 from rasa/use-slugs-for-digitalocean
...
builder/digitalocean: use names/slugs as well as IDs for image/region/si...
2014-04-30 15:55:09 -07:00
Mitchell Hashimoto
0417ae3059
builder/amazon: alphabetize some things
2014-04-30 15:43:11 -07:00
Ross Smith II
2bcd9a304e
builder/digitalOcean: use names/slugs as well as IDs for image/region/size
2014-04-29 20:33:31 -07:00
Jacob Helwig
38e880a187
Add ability to run vboxmanage commands just before exporting [GH-664]
2014-04-29 11:58:11 -07:00
Peter Leschev
eef3223f6c
Adding the ability to skip nat port forwarding for ssh connectivity
2014-04-29 08:27:23 +10:00
Ben Broderick Phillips
fc4b2e1569
Add flexible IP pool/address handling.
2014-04-28 15:20:44 -07:00
Ross Smith II
f2186fa6ff
Merge pull request #995 from asatara/add-ssh-host-vmware
...
Added ssh_host variable to vmware iso builder
2014-04-28 11:33:40 -07:00
Mitchell Hashimoto
0558d56bcf
builder/amazon/chroot: get tests psasing on Windows
2014-04-26 12:31:55 -07:00
Mitchell Hashimoto
83add3969f
builder/virtualbox: fix deps
2014-04-26 12:27:30 -07:00
Mitchell Hashimoto
91574c3a60
builder/vmware: fix builds
2014-04-26 12:25:18 -07:00
Mitchell Hashimoto
65804c07c5
builder/null: pass SSH tests
2014-04-26 11:28:02 -07:00
Mitchell Hashimoto
fa339fc275
get more proper SSH package usage in
2014-04-26 11:23:26 -07:00
Mitchell Hashimoto
5fac6c79c4
fmt
2014-04-26 11:12:43 -07:00
Mitchell Hashimoto
e84e5e4f2c
Merge branch 'update-ssh-package' of github.com:higebu/packer into higebu-update-ssh-package
...
Conflicts:
builder/amazon/common/ssh.go
builder/digitalocean/ssh.go
builder/googlecompute/ssh.go
builder/openstack/ssh.go
communicator/ssh/communicator_test.go
communicator/ssh/keychain.go
communicator/ssh/keychain_test.go
2014-04-26 11:12:06 -07:00
Mitchell Hashimoto
b024f8b628
Merge pull request #1046 from higebu/fix-esx5-driver
...
Fix unknown command and syntax error of the ESX5Driver, see #1012 , #1015
2014-04-26 11:07:42 -07:00
Mitchell Hashimoto
0da1f2d8c6
builder/googlecompute: template process instance name
2014-04-26 11:02:25 -07:00
Mitchell Hashimoto
15c2ca955e
Merge pull request #1065 from brettporter/gce_instance_name
...
builder/googlecompute: configure instance name
2014-04-26 10:58:27 -07:00
Brett Porter
e169013527
builder/googlecompute: configure instance name
...
Retain the current default of an instance name generated by UUID, but allow
users to choose a specific one. Useful for provisioning with Puppet when a
node name is used to select the right manifest.
2014-04-26 12:17:02 +10:00
Mitchell Hashimoto
23446d56fd
builder/openstack: use proper function call for config
2014-04-21 21:34:03 -07:00
Mitchell Hashimoto
159587daf4
Merge pull request #768 from devcamcar/openstack-env-support
...
builder/openstack: Add support for standard OpenStack environment variables
2014-04-21 21:11:37 -07:00
Mitchell Hashimoto
a9f07bc3ff
Merge pull request #912 from nebula/populate_api
...
builder/openstack: added support for gophercloud's PopulateApi
2014-04-21 21:02:06 -07:00
Ross Smith II
e38ff2f84e
Merge pull request #1021 from laggyluke/master
...
builder/amazon: configurable virtualization type
2014-04-21 18:08:32 -07:00
Ross Smith II
850b066408
Merge pull request #945 from benlangfeld:feature/vb_output_opts (manually)
2014-04-21 08:38:48 -07:00
higebu
37b92dff3a
Fix unknown command and syntax error of the ESX5Driver
2014-04-22 00:27:33 +09:00
Ross Smith II
db96a79bf4
use code.google.com/p/gosshold/ssh
2014-04-21 08:18:19 -07:00
Ross Smith II
a33aee13d5
Merge pull request #970 from fnoeding/nullbuilder
...
implemented null buider
2014-04-21 08:12:33 -07:00
Ross Smith II
ef1898083a
Merge pull request #971 from fnoeding/amazon-sshkey
...
optionally use existing ssh key for amazon builders
2014-04-21 08:10:05 -07:00
Ross Smith II
e9c84ef449
Merge pull request #1001 from zshenker/update-gce-builder-to-v1-api
...
Updates googlecompute build to v1 API & uses boot persistent disk
2014-04-21 08:04:35 -07:00
Ross Smith II
3f4baf4aec
Merge pull request #1011 from rasa/add-cloning-in-windows
...
builder/vmware-vmx: add cloning support on Windows [GH-824]
2014-04-21 07:38:05 -07:00
Pierre Riteau
77dedd9eab
Properly return error when invalid instance state is found
2014-04-17 12:56:25 -05:00
Ross Smith II
203f85bfb0
Merge pull request #1034 from rasa/patch-1
...
builder/digitalocean: updated default image_id, per #1032
2014-04-16 22:36:31 -07:00
higebu
f087ce16dc
Fix the build problem by updating ssh package
2014-04-15 10:17:26 +09:00
Ross Smith II
9cf76ff338
builder/digitalocean: updated default image_id, per #1032
2014-04-13 16:43:43 -07:00
Ross Smith II
27491f93f8
use old ssh code until higebu's branch is ready, see #1019
2014-04-11 08:23:12 -07:00
George Miroshnykov
fc6e8c0830
builder/amazon: configurable virtualization type
2014-04-10 15:16:31 +03:00
Ross Smith II
d420947db6
added %s for productVersion param
2014-04-06 15:50:19 -07:00
Ross Smith II
72924f0d56
builder/vmware-vmx: add cloning support on Windows [GH-824]
2014-04-06 15:31:49 -07:00
Zac Shenker
139e498962
Changing to the v1 google-api-go-client. Now creates a persistent disk as the boot disk, and sets it to auto delete
2014-04-03 15:18:58 -07:00
asatara
ecbb0e8498
Added ssh_address variable to vmware builders
2014-03-31 11:54:14 -07:00
Florian Noeding
6371b70609
optionally use existing ssh key for amazon builders
2014-03-24 12:47:00 +01:00
Florian Noeding
b879ec85cc
implemented null buider
...
The null builder is not really a bulider, it just setups a SSH
connection and runs the provisioners. It can be used to debug
provisioners without incurring high wait times. It does not create any
kind of image or artifact.
2014-03-24 11:26:10 +01:00
Ben Langfeld
128f555a2c
Formatting
2014-03-14 13:22:49 -03:00
Ben Langfeld
5b07e2604c
Fix export opts tests
2014-03-14 13:22:44 -03:00
Ben Langfeld
8cf0e53b19
Properly apply templates to export opts
2014-03-14 13:22:32 -03:00
Ben Langfeld
2cee7a5c10
Log export command being executed
2014-03-14 00:26:26 -03:00
Ben Langfeld
bfd6755859
Move to an array of strings for a deterministic option separation
2014-03-14 00:12:50 -03:00
Ben Langfeld
d1b41f2f14
Pass export_options individually to VBoxManage export
2014-03-13 23:33:35 -03:00
Mitchell Hashimoto
9ce3365382
Merge pull request #918 from stefanozanella/qemu_ssh_key_var
...
builder/qemu: support user templates in SSH key path
2014-03-12 21:39:07 -07:00
Mitchell Hashimoto
dccb2471a9
Merge pull request #926 from CpuID/master
...
builders/amazon: increase SSH timeouts for Amazon builders
2014-03-12 21:11:29 -07:00
Ben Langfeld
0332901f63
builder/virtualbox: Add an `export_opts` option
...
Allows arbitrary arguments to VBoxManage export, such as product info (--product, --vendor, etc).
2014-03-12 10:12:20 -03:00
Mitchell Hashimoto
3c59d0ef96
builder/vmware/common: fix failing tests on Windows
2014-03-07 10:29:04 -08:00
Mitchell Hashimoto
68524a3840
builder/vmware/common: fix build tag for Windows
2014-03-07 10:22:33 -08:00
Nathan Sullivan
e44fb1bd2a
increase SSH timeouts for Amazon builders, they can take a while to spin up at times
2014-03-04 11:31:14 +10:00
Mitchell Hashimoto
239aabb554
builder/virtualbox: retry unregister a few times [GH-915]
2014-03-01 16:20:02 +01:00
Stefano Zanella
85dcdcfead
builder/qemu: support user templates in SSH key path
2014-02-27 18:37:44 +01:00
Torrent Glenn
ee95fbbd99
added support for gophercloud's PopulateApi
2014-02-25 13:15:56 -08:00
Mitchell Hashimoto
4576093c17
fmt
2014-02-24 08:26:51 -08:00
Mitchell Hashimoto
9a62269116
Merge pull request #900 from pmyjavec/ws10-linux-driver
...
VMWare Workstation 10 driver for Linux
2014-02-24 08:25:03 -08:00
Alan Grosskurth
af89b31a40
builder/amazon: Fix S3 endpoint URL for instance-store builds
...
The S3 endpoint URLs don't always include the region name. See:
http://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region
This mapping is already provided by `goamz` via `region.S3Endpoint`,
so let's use it.
2014-02-23 22:49:10 -08:00
Mitchell Hashimoto
868a64ebbc
fmt
2014-02-21 16:48:30 -08:00
Mitchell Hashimoto
0fd7bdd3f5
builder/qemu: style
2014-02-21 15:22:58 -08:00
Mitchell Hashimoto
1b23af2667
Merge pull request #854 from qur/qemu-config-binary
...
builder/qemu: binary name to be configured
2014-02-21 15:22:27 -08:00
Mitchell Hashimoto
d2fe49d6a2
builder/qemu: document run_once is gone (but keep it around for compat)
2014-02-21 15:18:03 -08:00
Mitchell Hashimoto
8fdd60d924
Merge pull request #864 from CoreMedia/master
...
builder/qemu: handle reboots in the shell provisioner
2014-02-21 15:15:47 -08:00
Mitchell Hashimoto
e3c0715eab
fmt
2014-02-21 15:11:56 -08:00
Mitchell Hashimoto
d44a42b04f
Merge pull request #884 from pmyjavec/vmware-iso-driver-fix
...
builder/vmware: get host IP by creating & inspecting connection, allows hypervisor...
2014-02-21 15:11:35 -08:00
Mitchell Hashimoto
5f01415fb7
builder/googlecompute: tests for #867
2014-02-21 15:10:09 -08:00
Mitchell Hashimoto
05ecbd546b
Merge pull request #870 from vogxn/master
...
builder/googlecompute: save private key when debugging gce builder
2014-02-21 15:01:00 -08:00
Mitchell Hashimoto
1843ebf396
Merge pull request #883 from b2jrock/bjj-add-importopts
...
builder/virtualbox/ovf: Add import_opts to the virtualbox-ovf builder.
2014-02-21 14:58:36 -08:00
Mitchell Hashimoto
039def70f8
Merge pull request #885 from rosstimson/ec2-upload-bundle
...
builder/amazon/instance: use --url flag rather than --location for ec2-upload-bundle
2014-02-21 14:57:12 -08:00
Mitchell Hashimoto
9f7670a50f
builder/vmware-iso: output upload error [GH-899]
2014-02-21 14:07:25 -08:00
Paul Myjavec
3ea4aa1a5a
added workstation 10 driver for linux
2014-02-21 15:20:54 +11:00
Paul Myjavec
6e7a69372a
these functions can be shared by 9 and 10 vmware workstation drivers
2014-02-20 20:08:57 +11:00
Paul Myjavec
aedef06016
esx5, Get host IP by creating & inspecting connection, allows hypervisor to reside in other networks
2014-02-20 19:37:12 +11:00
Brian Johnson
ac2c4203a2
Add import_opts to the virtualbox-ovf builder. My use case is that I
...
have existing virtualbox virtual machines where I need to keep the mac
addresses so that the network interfaces come up when packer boots them.
Otherwise I just get SSH timeout and I'm unable to configure the machines.
2014-02-18 16:44:27 -08:00
Devin Carlen
e7d7f9bbfd
Add OpenStack API key support
2014-02-17 15:56:31 -08:00
Devin Carlen
828d7ebdca
Append /tokens suffix if not present for specific OpenStack authentication URLs
2014-02-17 15:51:56 -08:00
Devin Carlen
bef63846af
Add support for standard OpenStack environment variables
2014-02-17 15:30:01 -08:00
Ross Timson
58444627c1
Use --url flag rather than --location for ec2-upload-bundle
...
AWS docs (http://goo.gl/rNZiCs ) show that --location is deprecated and
to use the --url flag and reference the region endpoint instead.
2014-02-13 09:36:45 +00:00
Prasanna Santhanam
d4c9ed43c9
Formatted googlecompute builder as per `make format`
2014-01-31 22:26:09 +05:30
Prasanna Santhanam
0e98b2a269
Fixes #867 : save private key when debugging gce builder
...
Signed-off-by: Prasanna Santhanam <tsp@qubole.com>
2014-01-31 19:13:31 +05:30
mheidenr
cfb9b4d65d
enable qemu builder to handle reboots in the shell provisioner
2014-01-30 08:46:54 +01:00
Julian Phillips
a8993662b5
Allow Qemu binary name to be configured
...
On some systems the default Qemu binary name of qemu-system-x86_64
isn't appropriate. So expose the binary name as a configurable item,
allowing the user to set it to something more appropriate if they need
to.
2014-01-24 18:01:42 +00:00
Mitchell Hashimoto
e8768785a0
website: add docs for docker-import and docker-push
2014-01-19 20:42:42 -08:00
Mitchell Hashimoto
8635085665
builder/docker: make Import part of this Driver for reuse
2014-01-19 19:55:01 -08:00
Mitchell Hashimoto
34dbf72142
post-processor/docker-import: have an Artifact
...
/cc @mmckeen
2014-01-19 19:48:06 -08:00
Mitchell Hashimoto
430963f400
fmt
2014-01-19 19:30:11 -08:00
Myles Steinhauser
28286d2821
Fix tabs vs spaces
2014-01-13 00:03:10 -05:00
Myles Steinhauser
e4cfcb2a8a
Add more special scancodes
2014-01-10 12:40:43 -05:00
Mitchell Hashimoto
12938fe36b
builder/virtualbox,vmware: checksum not required if checksum type is
...
none
2014-01-04 11:10:13 -08:00
Jack Pearkes
0788d96841
builder/docker: include user vars for docker configuration
2014-01-02 14:49:30 -08:00
Mitchell Hashimoto
c74b3758d3
builder/vmware-iso: ESX5Driver impl OutputDir [GH-773]
2014-01-01 20:55:08 -08:00
Greg Lu
6d2e50e598
builder/virtualbox/ovf: fix shutdown_timeout handling
...
The shutdown_timeout config parameter was being ignored
(for both the user setting and the "5m" default) on the
virtualbox-ovf builder. As a result, packer complained
of timeouts on graceful shutdowns, and the build process
would error out. This fixes that along with some newly
created tests.
2013-12-31 18:28:33 -05:00
Mitchell Hashimoto
5c7e7daac9
comments
2013-12-28 10:04:15 -07:00
Mitchell Hashimoto
8204944c0e
builder/amazon: handle cases when amazon SG isn't available [GH-494]
2013-12-28 10:03:22 -07:00
Mitchell Hashimoto
2b801a7b12
builder/vmware,virtualbox: checksum_type can be "none" [GH-471]
2013-12-28 09:59:47 -07:00
Mitchell Hashimoto
8aabe01bad
builder/amazon/common: run_tags to apply to launch [GH-722]
2013-12-27 20:54:35 -07:00
Jack Pearkes
7a956e1a11
builder/digitalocean: add private_networking option for droplets
2013-12-27 10:26:27 -08:00
Mitchell Hashimoto
037a744be5
builder/docker: customize run command [GH-648]
2013-12-27 10:17:45 -07:00
Mitchell Hashimoto
eeadafc452
builder/vmware/*: can specify path to fusion [GH-677]
2013-12-27 08:37:39 -07:00
Mitchell Hashimoto
437dc12de3
builder/virtualbox/iso: load shutdown config [GH-754]
2013-12-26 23:28:15 -07:00
Mitchell Hashimoto
366d169388
fmt
2013-12-26 17:20:13 -07:00
Mitchell Hashimoto
f81e2ef88a
Merge pull request #746 from devcamcar/openstack-key-logging
...
builder/openstack: added keypair logging for debugging to OpenStack builder
2013-12-26 16:19:25 -08:00
Mitchell Hashimoto
8be172d19a
Merge pull request #758 from mitchellh/f-vmware-vmx
...
Build VMware machine from VMX (source VM)
2013-12-26 16:16:00 -08:00
Chris Lundquist
5564fb0028
Rename drover_docker_test.go to driver_docker_test.go
2013-12-26 16:09:24 -08:00
Mitchell Hashimoto
9362cb5364
builder/vmware/vmx: set the full_disk_path so compacting works
2013-12-26 15:44:39 -07:00
Mitchell Hashimoto
8e75075ec9
builder/vmware/vmx: compact disk
2013-12-26 15:35:37 -07:00
Mitchell Hashimoto
f134bcc3f4
builder/vmware/common: better UI when forcibly shutting down
2013-12-26 15:34:53 -07:00
Mitchell Hashimoto
2b3d98d48d
builder/vmware/vmx: create artifact
2013-12-26 15:32:38 -07:00
Mitchell Hashimoto
7f38cea9f3
builder/vmware/vmx: shutdown
2013-12-26 15:31:23 -07:00
Mitchell Hashimoto
ac8354ad9c
builder/vmware/vmx: step connect SSH
2013-12-26 15:28:15 -07:00
Mitchell Hashimoto
e11f655d22
builder/vmware/vmx: run the VMs
2013-12-26 15:26:09 -07:00
Mitchell Hashimoto
286edcb2b4
builder/vmware/vmx: configure VMX
2013-12-26 15:14:19 -07:00
Mitchell Hashimoto
03fb5fb0f1
builder/vmware/common: Fusion6 driver can clone
2013-12-26 15:03:12 -07:00
Mitchell Hashimoto
8fecdf179d
builder/vmware/common: Fusion6Driver
2013-12-26 14:54:26 -07:00
Mitchell Hashimoto
f23d66a1b9
builder/vmware/vmx: clone vmx
2013-12-26 14:39:41 -07:00
Mitchell Hashimoto
82fad98b07
builder/vmware/vmx: set the settings for cloning vmx
2013-12-26 08:36:00 -07:00
Mitchell Hashimoto
eeeaec3562
builder/vmware/vmx: StepCloneVMX
2013-12-26 08:34:27 -07:00
Mitchell Hashimoto
141cfeb4bb
builder/vmware/vmx: outputdir
2013-12-25 16:01:57 -07:00
Mitchell Hashimoto
6fdcb0f832
builder/vmware/vmx: initial stuff
2013-12-25 15:52:40 -07:00
Mitchell Hashimoto
16911d75e9
builder/vmware: move drivers out to common
2013-12-25 15:50:12 -07:00
Mitchell Hashimoto
bee879409a
builder/vmware: new artifact type that is common
2013-12-25 11:27:53 -07:00
Mitchell Hashimoto
8d963501d7
builder/vmware/iso: set SSHConfig
2013-12-25 10:44:10 -07:00
Mitchell Hashimoto
4f32692fd5
builder/vmware: StepShutdown
2013-12-24 23:33:49 -07:00
Mitchell Hashimoto
6c4af2d75f
builder/vmware/iso: convert stepShutdown to use OutputDir for cleanup
2013-12-24 23:16:13 -07:00
Mitchell Hashimoto
87ab914a3c
builder/vmware: StepCompactDisk
2013-12-24 23:09:22 -07:00
Mitchell Hashimoto
f01b21c610
builder/vmware: StepCleanVMX
2013-12-24 18:40:52 -07:00
Mitchell Hashimoto
8f8ea60b4f
builder/vmware/common: StepCleanFiles
2013-12-24 18:17:58 -07:00
Mitchell Hashimoto
95e0e465cf
builder/vmware: move StepRun to common
2013-12-24 18:12:43 -07:00
Mitchell Hashimoto
7f86fa5fef
builder/vmware/iso: Move remote registration out to separate step
2013-12-24 14:39:52 -07:00
Mitchell Hashimoto
6cf8d9b319
builder/vmware/common: StepSuppressMessages
2013-12-24 14:26:44 -07:00
Mitchell Hashimoto
e5f674a8c2
builder/vmware/common: Mock driver and test for DHCP Lease IP lookup
2013-12-24 11:55:44 -07:00
Mitchell Hashimoto
458bfd186f
builder/vmware: move driver out of ISO
2013-12-24 11:31:57 -07:00
Mitchell Hashimoto
d73cbd3744
builder/vmware/common: make the dir private for LocalOutputDir
2013-12-24 11:22:22 -07:00
Mitchell Hashimoto
50f8b2c1a3
builder/vmware: move outputdir stuff to common
2013-12-24 11:21:02 -07:00
Mitchell Hashimoto
8bd3ca4470
builder/vmware/common: shuffling stuff around
2013-12-24 11:00:51 -07:00
Mitchell Hashimoto
29931cd0c0
builder/vmware/common: SSHConfig
2013-12-23 23:27:01 -07:00
Mitchell Hashimoto
6d83ef5499
builder/vmware/iso: move VMX methods out to the common
2013-12-23 23:09:47 -07:00
Mitchell Hashimoto
33452c2dfd
builder/vmware: add more stuff to common
2013-12-23 23:07:43 -07:00
Mitchell Hashimoto
91392feb58
builder/vmware/iso: fix package name
2013-12-23 22:58:41 -07:00
Mitchell Hashimoto
d1e68875a7
builder/vmware: move to iso package
2013-12-23 22:58:13 -07:00
Mitchell Hashimoto
5ab83238bf
builder/vmware: separate step to configure vmx
2013-12-23 14:38:54 -08:00
Mitchell Hashimoto
39d0600085
builder/virtualbox: fmt
2013-12-23 14:21:28 -08:00
Devin Carlen
4e594ec22f
Added keypair logging for debugging to OpenStack builder
2013-12-22 20:30:13 -08:00
Mitchell Hashimoto
c7bf38b63b
builder/virtualbox/common: only remove ISO if it was attached
2013-12-22 17:08:07 -08:00
Mitchell Hashimoto
473fe8a950
builder/virtualbox/ovf: instantiate the driver
2013-12-22 17:04:26 -08:00
Mitchell Hashimoto
c2b3fa732a
builder/virtualbox/ovf: validate source_path
2013-12-22 17:02:22 -08:00
Mitchell Hashimoto
e69bb1858c
builder/virtualbox/ovf: specify name for import
2013-12-22 15:24:24 -08:00
Mitchell Hashimoto
5b223f0798
builder/virtualbox/ovf: re-order some steps
2013-12-22 15:20:49 -08:00
Mitchell Hashimoto
dd767c9d54
builder/virtualbox/ovf: StepImport to import an OVF
2013-12-22 15:19:19 -08:00
Mitchell Hashimoto
0de7bb33cd
builder/virtualbox: set Tpl on VBoxManage
2013-12-22 11:57:05 -08:00
Mitchell Hashimoto
e51dde13ce
builder/virtualbox: tests for StepUploadVerison
2013-12-22 11:55:01 -08:00
Mitchell Hashimoto
5f1c597269
builder/virtualbox: StepUploadVersion
2013-12-22 11:50:29 -08:00
Mitchell Hashimoto
5feb7bce18
builder/virtualbox/common: Export
2013-12-22 10:40:39 -08:00
Mitchell Hashimoto
026bcd33fe
builder/virtualbox: StepRun common
2013-12-22 10:30:12 -08:00
Mitchell Hashimoto
fbd20dffcb
builder/virtualbox/common: StepRemoveDevices
2013-12-22 09:54:00 -08:00
Mitchell Hashimoto
b65559d888
builder/virtualbox: StepShutdown tests
2013-12-22 09:47:44 -08:00
Mitchell Hashimoto
67a87ce3e4
builder/virtualbox: StepShutdown
2013-12-22 09:37:27 -08:00
Mitchell Hashimoto
4bd2aa6106
builder/virtualbox: StepVBoxmanage
2013-12-22 09:24:29 -08:00
Mitchell Hashimoto
7a4ff3f2b1
builder/virtualbox: generic SSHConfig
2013-12-22 09:08:09 -08:00
Mitchell Hashimoto
79c0c6b545
builder/virtualbox: step attach floppy
2013-12-22 08:10:11 -08:00
Mitchell Hashimoto
d731dcd8f7
builder/virtualbox: floppy files config
2013-12-22 07:58:07 -08:00
Mitchell Hashimoto
598822d46b
builder/virtualbox/common: move outputdir config to common
2013-12-21 17:38:06 -08:00
Mitchell Hashimoto
886c0d3ad5
builder/virtualbox/common: StepSuppressMessages
2013-12-21 16:05:34 -08:00
Mitchell Hashimoto
db167c5a3d
builder/virtualbox/common: StepOutputDir
2013-12-21 15:20:15 -08:00
Mitchell Hashimoto
cdc02db96d
builder/virtualbox/common: Move Driver here
2013-12-21 15:00:48 -08:00
Mitchell Hashimoto
14eede264f
builder/virtualbox: add common package, common Artifact
2013-12-21 14:51:38 -08:00
Mitchell Hashimoto
afd67ea104
builder/virtualbox/iso: rename package
2013-12-21 14:27:00 -08:00
Mitchell Hashimoto
01c7bbf8c4
builder/virtualbox: move to iso/ folder
2013-12-21 14:25:22 -08:00
Mitchell Hashimoto
8e4ce2c591
builder/amazon: alphabetize
2013-12-21 14:22:05 -08:00
Mitchell Hashimoto
4a2793445f
builder/amazon/chroot: mount in device-specific places
2013-12-21 09:16:09 -08:00
Mitchell Hashimoto
ac36b33f98
builder/virtualbox: fix compilation
2013-12-19 08:49:50 -08:00
Mitchell Hashimoto
3c5c9a6ea3
builder/virtualbox: sleep when stopping forcefully to allow session
...
unlock
2013-12-19 08:49:23 -08:00
Mitchell Hashimoto
dcae79e67f
builder/virtualbox: remove devices in separate step
2013-12-19 08:47:37 -08:00
Mitchell Hashimoto
c264ef0a29
builer/virtualbox: avoid crash since guest additions path not set
2013-12-18 11:27:25 -08:00
Mitchell Hashimoto
675f7a43ba
builder/virtualbox: don't download guest additions if disable [GH-731]
2013-12-18 11:22:02 -08:00
Mitchell Hashimoto
da16887010
Merge pull request #724 from ChrisKozak/master
...
builder/digitalocean: Updated DigitalOcean default image id
2013-12-18 09:01:06 -08:00
Mitchell Hashimoto
ae7459718d
builder/amazon/instance: use US if region us-east-1 for upload [GH-729]
2013-12-18 09:00:20 -08:00
Mitchell Hashimoto
69f971094c
builder/vmware: style
2013-12-18 08:40:35 -08:00
Mitchell Hashimoto
2920239e6e
builder/virtualbox: verify output dir is writable
2013-12-18 08:40:35 -08:00
Chris Kozak
f5d6df6416
Updated DigitalOcean default image id
...
It looks like DigitalOcean replaced the "Ubuntu 12.04" image with "Ubuntu 12.04.3". We've updated the ImageID to point to the new image.
2013-12-17 17:41:47 +00:00
Mitchell Hashimoto
b95ad0c232
builder/amazon/all: launched instances have a name [GH-642]
2013-12-16 18:11:23 -08:00
Mitchell Hashimoto
a91b8f6853
builder/googlecompute: only load secrets/private key if given
2013-12-13 19:32:01 -08:00
Mitchell Hashimoto
bde4b02d2b
builder/googlecompute: artifact tests
2013-12-13 19:08:27 -08:00
Mitchell Hashimoto
637968f2dd
builder/googlecompute: artifact uses Driver, no more api
2013-12-13 19:07:10 -08:00
Mitchell Hashimoto
33a84c0938
builder/googlecompute: StepRegisterImage
2013-12-13 19:03:10 -08:00
Mitchell Hashimoto
587f057bf6
builder/googlecompute: StepUploadImage
2013-12-13 18:30:57 -08:00
Mitchell Hashimoto
20a074b4ee
builder/googlecompute: StepCreateImage
2013-12-13 18:26:00 -08:00
Mitchell Hashimoto
37903337ea
builder/googlecompute: update gsutil
2013-12-13 18:21:02 -08:00
Mitchell Hashimoto
a2cf4cae25
builder/googlecompute: enable provisioning
2013-12-13 18:08:43 -08:00
Mitchell Hashimoto
1055f470e6
builder/googlecompute: enable SSH
2013-12-13 18:07:16 -08:00
Mitchell Hashimoto
a72d31fb5b
builder/googlecompute: get instance info
2013-12-13 13:01:28 -08:00
Mitchell Hashimoto
57f707dfcc
builder/googlecompute: delete instance
2013-12-12 22:34:47 -08:00
Mitchell Hashimoto
f72f7a37d1
builder/googlecompute: fix all sorts of zone issues
2013-12-12 22:23:19 -08:00
Mitchell Hashimoto
b676058144
builder/googlecompute: better logging
2013-12-12 21:53:05 -08:00
Mitchell Hashimoto
54d59fc79f
builder/googlecompute: get rid of all client stuff for now
2013-12-12 21:53:05 -08:00
Mitchell Hashimoto
52f51a1dcd
builder/googlecompute: disable other steps for now
2013-12-12 21:53:05 -08:00
Mitchell Hashimoto
2bd6f1e2d7
builder/googlecompute: driver and create instance tests
2013-12-12 21:53:05 -08:00
Mitchell Hashimoto
3657f33a4d
builder/googlecompute: StepCreateSSHKey tests
2013-12-12 21:53:05 -08:00
Mitchell Hashimoto
2091dffe40
builder/googlecompute: cancel works
2013-12-12 21:53:04 -08:00
Mitchell Hashimoto
fbc07942f0
builder/googlecompute: test config basics
2013-12-12 21:53:04 -08:00
Mitchell Hashimoto
46d297c7bd
builder/googlecompute: client secrets tests
2013-12-12 21:53:04 -08:00
Mitchell Hashimoto
6507afd3ad
builder/googlecompute: private key tests
2013-12-12 21:53:04 -08:00
Mitchell Hashimoto
ee9ea170af
builder/googlecompute: move config out to seperate file
2013-12-12 21:53:04 -08:00
Mitchell Hashimoto
a78b10c06d
builder/googlecompute: set ID to packer namespace now thats in core
2013-12-12 21:53:04 -08:00
Kelsey Hightower
cc1130962b
Use the same license as Packer core
2013-12-12 21:53:04 -08:00
Kelsey Hightower
58c73727e5
builder/googlecompute: Add new googlecompute builder
2013-12-12 21:53:03 -08:00
Mitchell Hashimoto
1234e61cda
builder/amazon/all: get rid of unnecessary field
2013-12-12 21:38:48 -08:00
Mitchell Hashimoto
80c2f0fcd0
Merge pull request #690 from TranscendComputing/master
...
builder/qemu: added template processing for QemuArgs, floppy_files for auto-building f...
2013-12-12 14:46:08 -08:00
Mitchell Hashimoto
5e0da21173
builder/amazon/ebs: nicer output
2013-12-12 12:24:51 -08:00
Mitchell Hashimoto
4677f38882
builder/amazon: parallelize AMI region copies [GH-495]
2013-12-12 12:24:32 -08:00
Mitchell Hashimoto
6aef114372
go fmt
2013-12-11 11:19:36 -08:00
Mitchell Hashimoto
2789281285
builder/vmware: clarify guestiphack error message [GH-639]
2013-12-07 10:31:57 -08:00
Mitchell Hashimoto
8766a93245
builder/vmware: correct logic in cehcking if file is still there
2013-12-06 19:12:49 -08:00
Mitchell Hashimoto
6211cd2028
builder/vmware: more resilient to racing deletes [GH-675]
2013-12-06 19:11:40 -08:00
Mitchell Hashimoto
f7b1c2dbc6
builder/amazon/instance: add location to upload command [GH-679]
2013-12-06 19:04:40 -08:00
Mitchell Hashimoto
2110edb690
builder/amazon/chroot: remove unused import
2013-12-06 18:32:21 -08:00
Mitchell Hashimoto
2dad0cdca7
builder/amazon/chroot: block when obtaining lock [GH-689]
2013-12-06 18:28:48 -08:00
Mitchell Hashimoto
a770a5b2f2
Merge pull request #660 from CpuID/master
...
builder/amazon/ebs: AssociatePublicIpAddress for launching
2013-12-06 18:15:19 -08:00
Mitchell Hashimoto
5d420ce1c1
Revert "Merge pull request #663 from ktruong7/public-AMI"
...
This reverts commit b2fc77870b
, reversing
changes made to 4789d3acc8
.
This is already possible by setting groups.
2013-12-06 18:09:05 -08:00
Mitchell Hashimoto
09b53212bb
Merge pull request #663 from ktruong7/public-AMI
...
builder/amazon/all: added option to make AMI public
2013-12-06 18:05:45 -08:00
Mitchell Hashimoto
60c797b256
Merge pull request #637 from johnbellone/master
...
builder/openstack: add ProxyUrl parameter for OpenStack builder
2013-12-06 17:58:15 -08:00
Mitchell Hashimoto
e1042cbc2c
Merge pull request #681 from pcfens/qemu-img-formats
...
builder/qemu: qemu format img is invalid
2013-12-06 17:55:32 -08:00
Thomas D. Hite
08f5131746
Added template processing for QemuArgs, floppy_files for auto-building floppies which attach to the VM at startup, and run_once flag to trigger just one powerup/powerdown.
2013-12-06 18:20:25 -06:00
adrian kalaveshi
d0387d1d3a
Trivial bug fix in mechanism to clean installation ISOs for VMware builder
...
The resolution of Bug #608 still had issues. This change removes a
superfluous period.
Testing Done:
- built packer with my change
- built VMware VMs and saw that the vmx file had the expected
changes.
2013-12-05 21:36:34 +00:00
Phil Fenstermacher
c4ae11589d
Changed error message and docs to match code - qemu-img options are qcow2 and raw
2013-12-04 14:05:07 -05:00
ktruong7
2994129486
fixed format issue
2013-11-27 10:48:32 -05:00
ktruong7
961e58dfd0
fixed format issues
2013-11-27 10:47:06 -05:00
ktruong7
3589b0ba27
Added option to make ami public automatically
2013-11-26 09:59:16 -05:00
Nathan Sullivan
e711255d95
fix some debugging for PublicIpAddress
2013-11-26 15:03:45 +10:00
Nathan Sullivan
4809186c12
remove excess debugging
2013-11-26 15:02:43 +10:00
Nathan Sullivan
6270d759cd
revert whitespace changes - not necessary anymore
2013-11-26 15:01:57 +10:00
Nathan Sullivan
13f55bdec6
working AssociatePublicIpAddress support
2013-11-26 14:45:06 +10:00
Nathan Sullivan
5cbff00afa
goamz aspects of AssociatePublicIpAddress working now
2013-11-26 14:14:43 +10:00
Nathan Sullivan
49a131951a
reverting testing stuff
2013-11-26 13:46:32 +10:00
Nathan Sullivan
0cfb7564d5
lets try a string instead of a bool for AssociatePublicIpAddress
2013-11-26 13:44:39 +10:00
Nathan Sullivan
5df7bc0acf
oops bugfix for work on https://github.com/mitchellh/packer/issues/578
2013-11-26 12:05:37 +10:00
Nathan Sullivan
31bf1f342c
https://github.com/mitchellh/packer/issues/578
2013-11-26 11:32:08 +10:00
Mitchell Hashimoto
cc13e6690c
builder/amazon/chroot: don't choose partition mount point if taken
...
[GH-635]
2013-11-19 12:50:33 -08:00
Mitchell Hashimoto
d9c3aed479
builder/virtualbox: use VBOX_INSTALL_PATH to find VBoxManage
2013-11-19 12:32:10 -08:00
John Bellone
817b1bdb32
Add ProxyUrl parameter for OpenStack builder.
...
In my particular case I need to use a separate HTTP proxy to access my
OpenStack API than what is set in the environment. This commit adds an
optional parameter to the builder configuration and overrides the
net/http client that is used by the gophercloud library.
2013-11-19 13:55:55 -05:00
Mitchell Hashimoto
b787d6fb1d
builder/vmware: ESX artifacts have a different builder ID
...
This is so that things like vagrant post-processors and vsphere
post processors don't work.
2013-11-18 16:10:55 -08:00
Doug MacEachern
4af1c7f1b2
builder/vmware: Double check that OutputDirectory does not already exist
...
The initial check in Builder.Prepare does not use the OutputDir interface.
stepPrepareOutputDir also checks if OutputDir exists, error out there unless
using -force so we get the same behavior when RemoteType is esx5.
2013-11-12 13:11:02 -08:00
Doug MacEachern
3f5a02cf2a
builder/vmware: Add ListFiles and Remove methods to OutputDir interface
...
- Fixes builder/vmware when using RemoteType esx5,
as there is no longer a local OutputDir
2013-11-12 12:49:57 -08:00
Doug MacEachern
9655be5582
builder/vmware: Path related fixes in esx5 driver
...
- Fix mkdir of packer_cache in ESX5Driver.UploadISO
- Fix vmx path in ESX5Driver.IsRunning
2013-11-12 09:17:28 -08:00
Mitchell Hashimoto
21bb0674f2
builder/docker: ctrl-C works during provisioning
2013-11-12 16:24:16 +00:00
Mitchell Hashimoto
d88cb09d32
builder/vmware: ctrl-c works during wait for boot
2013-11-12 16:20:52 +00:00
Mitchell Hashimoto
c1bd7468d5
builder/virtualbox: ctrl-c works during wait for boot
2013-11-12 16:19:38 +00:00
Mitchell Hashimoto
832b4408a5
builder/docker: verify docker is available on path
2013-11-09 21:26:05 -08:00
Mitchell Hashimoto
c04d1cd57e
builder/docker: say when killing the container
2013-11-09 19:17:27 -08:00
Mitchell Hashimoto
d8b29cd63b
builder/docker: remove unused file
2013-11-09 19:11:07 -08:00
Mitchell Hashimoto
7bcfd83bdd
builder/docker: stream output from commands
2013-11-09 19:06:03 -08:00
Mitchell Hashimoto
2b89da50b3
builder/docker: UploadDir
2013-11-09 18:44:43 -08:00
Mitchell Hashimoto
ab5f719734
builder/docker: show stderr if docker fails to run
2013-11-09 17:27:30 -08:00
Mitchell Hashimoto
8ec68031d0
builder/docker: ability to disable pull
2013-11-09 17:21:24 -08:00
Mitchell Hashimoto
0287cdd614
builder/docker: config refactor
2013-11-09 17:07:14 -08:00
Mitchell Hashimoto
06b6cb1af1
builder/docker: artifact
2013-11-09 13:22:13 -08:00
Mitchell Hashimoto
a58754b974
builder/docker: StepExport tests
2013-11-09 13:15:51 -08:00
Mitchell Hashimoto
0e3011cbce
builder/docker: StepRun tests
2013-11-09 13:03:01 -08:00
Mitchell Hashimoto
62b81dc432
builder/docker: StepPull test, driver abstraction for tests
2013-11-09 12:12:23 -08:00
Mitchell Hashimoto
2da9233655
builder/docker: test StepTempDir
2013-11-09 11:58:20 -08:00
Mitchell Hashimoto
da683afde0
builder/docker: config validation test
2013-11-09 11:47:32 -08:00
Mitchell Hashimoto
23ad5442ec
builder/docker: perform cleanup in run method, not prematurely
2013-11-09 10:15:25 -08:00
Mitchell Hashimoto
44a41451f0
builder/docker: Communicator.Start doesn't block
2013-11-09 10:13:27 -08:00
Mitchell Hashimoto
d5ce8ddb4a
builder/docker: export the final image
2013-11-09 09:48:36 -08:00
Mitchell Hashimoto
d27ceaf509
builder/docker: remove the exit code file when we're done
2013-11-09 00:47:37 -08:00
Mitchell Hashimoto
2e7574e360
builder/docker: command output and exit codes work
...
/cc @mwhooker - CCing you on this because it is also ridiculous. See the
big comments
2013-11-09 00:33:36 -08:00
Mitchell Hashimoto
eabd32f3ce
builder/docker: comment the sleep on remote exec
2013-11-09 00:06:45 -08:00
Mitchell Hashimoto
c1f0fe3f3f
builder/docker: fix upload for copy to work
2013-11-09 00:05:44 -08:00
Mitchell Hashimoto
5f76ed68c4
builder/docker: Remote execution works!
...
/cc @mwhooker - WOW. By luck, I had a hunch that maybe something like
this might be going on based on straces I was reading. Check:
https://github.com/dotcloud/docker/issues/2628
Anyways, this works now. No more blocker!
2013-11-08 23:59:25 -08:00
Mitchell Hashimoto
797c44bfc1
builder/docker: a non-working communicator
2013-11-08 23:43:41 -08:00
Mitchell Hashimoto
2e080ece6d
builder/docker: start a container
2013-11-08 22:17:46 -08:00
Mitchell Hashimoto
4db609b24c
builder/docker: tests for some exec stuff
2013-11-08 22:02:47 -08:00
Mitchell Hashimoto
034e04cc1e
builder/docker: pull images
2013-11-08 22:00:57 -08:00
Mitchell Hashimoto
3feab1dea1
builder/docker: boilerplate
2013-11-08 16:55:02 -08:00
Mitchell Hashimoto
c8a6def83d
builder/vmware: downcase more vmx data
2013-11-08 14:21:31 -08:00
Mitchell Hashimoto
e4f1dcb6f9
builder/vmware: Fusion suppresses upgrade requests
2013-11-08 12:19:09 -08:00
Mitchell Hashimoto
781332b297
builder/vmware: fix local output dir exists check
2013-11-08 11:48:04 -08:00
Mitchell Hashimoto
3adbd09639
builder/amazon/chroot: fix compile error
2013-11-08 11:19:10 -08:00
Mitchell Hashimoto
3780b57a1f
builder/amazon/chroot: allow no such file errors on upload [GH-588]
2013-11-08 10:53:54 -08:00
Mitchell Hashimoto
17f1ee3e98
builder/amazon/chroot: quote commands and pass through a shell [GH-581]
2013-11-08 10:22:56 -08:00
Mitchell Hashimoto
52fb77a883
builder/vmware: case-insensitive VMX creation [GH-608]
2013-11-07 22:06:30 -08:00
Mitchell Hashimoto
47ac6897de
builder/vmware: start/stop ESXi5 VMX with proper path
2013-11-07 21:22:12 -08:00
Mitchell Hashimoto
ba8a0dbec0
builder/vmware: only unregister if registration success
2013-11-07 21:19:24 -08:00
Mitchell Hashimoto
e5ae542142
builder/vmware: register the VMX to the proper path on esx
2013-11-07 21:18:25 -08:00
Mitchell Hashimoto
2ccc5e80c7
builder/vmware: log when writing a VMX
2013-11-07 21:03:15 -08:00
Mitchell Hashimoto
b228723903
builder/vmware: for remote builds, put VMX in temp dir
2013-11-07 21:02:12 -08:00
Mitchell Hashimoto
a4b54f1cf3
builder/vmware: set proper default disk type for esx
2013-11-07 20:57:05 -08:00
Mitchell Hashimoto
148d7c06ab
builder/vmware: make upload dst,src like normal go
2013-11-07 20:47:15 -08:00
Mitchell Hashimoto
2c8843b4de
builder/vmware: esx file check works properly
2013-11-07 20:46:34 -08:00
Mitchell Hashimoto
8a8ac430d1
builder/vmware: upload the ISO to the ESXi machine
2013-11-07 12:28:41 -08:00
Mitchell Hashimoto
483cda18c1
builder/vmware: make things more Go-like
...
This commit currently breaks the builder though, since the ISo is now
uploaded back into ESX.
2013-11-07 12:01:18 -08:00
Doug MacEachern
a828a9a064
builder/vmware: new driver to support building images directly on ESX
...
This driver talks directly to ESX over ssh, using vim-cmd, esxcli and sh;
no vCenter or VIM api required.
Remote* config properties added to support a remote driver
RemoteDriver interface extends Driver:
* SSHAddress - esx flavor uses esxcli to find the VM's ip address
* Download - esx flavor downloads iso files to a vmfs datastore
Driver can optionally implement the following interfaces:
* VNCAddressFinder - esx flavor needs to check remote ports
* OutputDir - esx driver needs a local and remote OutputDir
* Inventory - esx driver needs to register/unregister VMs
* HostIPFinder - esx flavor needs an address on the same network as esx itself
2013-11-07 12:01:18 -08:00
Mitchell Hashimoto
636e647c45
builder/qemu: set proper HTTPIP for boot command [GH-597]
2013-11-05 22:05:56 -08:00
Mitchell Hashimoto
5ededd527a
builder/qemu: catch early exits of qemu
2013-11-05 22:03:43 -08:00
Mitchell Hashimoto
170e2459ff
builder/qemu: remove constructor, more Go-like
2013-11-05 21:43:20 -08:00
Mitchell Hashimoto
3bc0c4aa25
builder/qemu: simplify driver, make things more Go-like
2013-11-05 21:40:49 -08:00
Mitchell Hashimoto
d78787e182
builder/qemu: remove floppy support, not used currently
2013-11-05 18:11:38 -08:00
Mitchell Hashimoto
07e5a85bab
builder/qemu: log VM output
2013-11-05 17:59:09 -08:00
Mitchell Hashimoto
b75a2935f3
builder/qemu: unnecssary log
2013-11-05 17:48:52 -08:00
Mitchell Hashimoto
385a338354
builder/qemu: get rid of unnecessary step
2013-11-05 17:48:16 -08:00
Mitchell Hashimoto
e982eb38dc
builder/qemu: alphabetize some things
2013-11-05 17:47:22 -08:00
Mitchell Hashimoto
e44aea496d
builder/qemu: passing tests
2013-11-05 15:44:38 -08:00
Mitchell Hashimoto
ac1012c108
Merge pull request #385 from TranscendComputing/master
...
builder/qemu: Qemu builder
2013-11-05 15:28:23 -08:00
Mitchell Hashimoto
c8e911cdc3
Merge branch 'security-groups' of https://github.com/whiteley/packer into whiteley-security-groups
...
Conflicts:
builder/amazon/common/run_config.go
2013-11-05 14:34:12 -08:00
Ross Smith II
c6392481f9
fixed artifact test
2013-11-05 14:27:42 -08:00
Ross Smith II
2cad46aa1f
post-processor/vagrant: Adds vagrant support for digitalocean
...
Conflicts:
post-processor/vagrant/post-processor.go
2013-11-05 14:27:28 -08:00
Mitchell Hashimoto
255f27a24e
Merge pull request #589 from mitchellh/f-do-droplet-name
...
builder/digitalocean: add a droplet_name configuration value
2013-11-04 14:35:44 -08:00
Mitchell Hashimoto
7aab3381f1
builder/vmware: check for ifconfig in /sbin [GH-591]
2013-11-04 14:34:51 -08:00
Mitchell Hashimoto
cf0ac15ecc
builder/vmware: force LANG=C for ifconfig [GH-592]
2013-11-04 14:26:18 -08:00
Mitchell Hashimoto
6c19ba621f
builder/virtualbox: no panic if ssh host port min/max is same [GH-594]
2013-11-04 14:20:26 -08:00
Jack Pearkes
b13c25532c
builder/digitalocean: add a droplet_name configuration value
...
Practically, this lets you set the hostname of the droplet
used for provisioning.
2013-11-03 17:35:58 +01:00
Mitchell Hashimoto
9acaa97a32
builder/virtualbox,vmware: warning if shutdown_command is not specified
2013-11-02 23:17:21 -05:00
Mitchell Hashimoto
a6150e6596
builder/all: update to warnings
2013-11-02 23:03:59 -05:00
Mitchell Hashimoto
3cd7379d1f
builder/amazon/*: warnings
2013-11-02 22:56:54 -05:00
Mitchell Hashimoto
aa95caa261
builder/virtualbox: allow disabling guest addition uploading
2013-11-02 11:34:54 +01:00
Mitchell Hashimoto
7f639d89b6
builder/amazon/*,builder/openstack: properly scrub sensitive [GH-554]
2013-11-02 11:34:54 +01:00
Matthew Hooker
6620b9cc9b
Merge pull request #572 from ktruong7/format-issues1
...
Spelling mistake in comments
2013-10-28 06:52:57 -07:00
ktruong7
1f31ac1737
spelling mistake in comments
2013-10-24 14:46:54 -04:00
Mitchell Hashimoto
f4b404627c
builder/amazon/instance: support AZ here too
2013-10-23 20:44:38 -07:00
Mitchell Hashimoto
b95a56899f
builder/amazon: rename availzone to availability zone
2013-10-23 20:44:11 -07:00
Mitchell Hashimoto
7fa797d878
Merge pull request #550 from mitchellh/fix#536
...
builder/amazon/ebs: Add config for target AZ.
2013-10-23 20:42:15 -07:00
Fabian Grutschus
5e440fa4c1
Arguments Prefix (--) was missing for (data)portconfig
2013-10-23 15:05:00 +02:00
Matthew Hooker
1aa551a49c
builder/amazon/common: Add AvailZone to StepRunSourceInstance struct
...
[GH-536]
2013-10-21 08:08:00 -07:00
Matthew Hooker
60428cef60
builder/amazon/ebs: Add config for target AZ.
...
Fixes [GH-536]
2013-10-21 08:01:34 -07:00
Mitchell Hashimoto
5e3c8c4fe6
builder/virtualbox,vmware: support user templates in SSH key path
...
[GH-539]
2013-10-20 15:58:39 -07:00
Mitchell Hashimoto
30be4927d6
builder/virtualbox: use proper SATA port arg [GH-547]
2013-10-20 15:55:31 -07:00
Tom Hite
9ebd44a98a
Merge branch 'master' of http://github.com/mitchellh/packer
2013-10-17 23:32:18 -05:00
Matthew Hooker
79ac16c3d7
builder/amazon/chroot:
...
Delete files at destination before copy. This should help with the dangling
symbolic link issue we've been seeing with ubuntu.
fixes GH-500
2013-10-17 22:50:02 +00:00
Mitchell Hashimoto
24ad445e2b
builder/amazon,builder/openstack: remove more cgl libs
2013-10-16 16:29:53 -10:00
Mitchell Hashimoto
79f7936d66
Remove dependency on identifier package, use time ordered UUID [GH-541]
2013-10-16 16:21:14 -10:00
Mitchell Hashimoto
b1e1c44f74
Merge pull request #512 from hoshposh/vbox-shutdown-issue
...
builder/virtualbox: sleep after shutdown before export to avoid session locks
2013-10-14 01:50:55 -07:00
Mitchell Hashimoto
26b6e27917
Merge pull request #522 from patricklucas/fix_instance_not_found_race
...
builder/amzon: fix race condition after launching EC2 instance
2013-10-14 01:45:55 -07:00
Matthew Hooker
4f24fe5000
common/config: strip keys appropriate for OpenStack.
2013-10-13 11:03:45 -07:00
Matthew Hooker
5315b19822
common/config: config filter function [GH-521]
...
Fixes #521
2013-10-13 11:01:12 -07:00
Patrick Lucas
e17984face
Fix race condition after launching EC2 instance
...
It is possible for an instance to not immediately exist after it is
launched. Previously, InstanceStateRefreshFunc would crash if this race
condition were realized.
This change takes the exact same approach of the function above,
AMIStateRefreshFunc, treating 'InvalidInstanceID.NotFound' as if there
were an empty result.
2013-10-11 14:25:18 -07:00
Matthew Hooker
7417748772
builder/digitalocean: Scrub config before logging [GH-516]
2013-10-10 15:04:42 -07:00
Lyndon Washington
bb241af7b3
Formatted contributions
2013-10-09 13:14:09 -04:00
Lyndon Washington
88e65ef59b
Moved the 1 sec timeout to the export step
2013-10-09 12:59:47 -04:00
Tom Hite
5e9b035031
Fixes #3 via minor documentation fix and setting default properly (in the net_device template value, virtio is incorrect -- must be virtio-net).
2013-10-09 07:11:10 -05:00
Tom Hite
527a73cf4a
Merge branch 'master' of https://github.com/mitchellh/packer
2013-10-08 18:30:58 +00:00
Tom Hite
2f8f2d5ad1
Fixes #1 and Fixes #2 by allowing qemuargs to operate and override defaults.
2013-10-07 20:58:08 -05:00
Mitchell Hashimoto
4067bab3d4
builder/digitalocean: don't panic if error contains no message [GH-492]
2013-10-04 10:44:04 -07:00
Matt Whiteley
09f4011234
builder/amazon: instances can be launched with a list of security groups
2013-10-04 10:42:45 -07:00
Mitchell Hashimoto
8821ef4def
builder/virtualbox: detect vboxdrv issues [GH-488]
2013-10-02 17:13:22 -07:00
Mitchell Hashimoto
c19fcafc01
builder/virtualbox: error if version can't be detected [GH-488]
2013-10-02 17:11:42 -07:00
Matthew Hooker
5c41eccfd5
Fix the way we run commands in chroot.
...
* Single quotes around chroot command cause it to fail.
* The chroot command also gets passed through the CommandWrapper template, so having sudo would clash with however the user wants to run it.
* Fix spelling mistake.
2013-10-01 09:35:55 +00:00
Mitchell Hashimoto
38d3411f80
builder/amazon/chroot: remove unused comment
2013-09-30 09:35:58 -07:00
Mitchell Hashimoto
b554a0dd86
builder/amazon/chroot: CommandWrapper
...
/cc @mwhooker - I changed the interface up a bit to return an error,
since things should return errors in Go (the ui.Error bit was kind of
ghetto because it had no way to bubble that error up except through the
UI).
Using this, I made it so that the communicator uses both a
CommandWrapper and ShellCommand with chroot so that the chroot commannd
is also wrapped (it wasn't before).
I think the functionality of all this is the same but I'd love if you
could look it over and make sure.
2013-09-30 09:33:57 -07:00
Mitchell Hashimoto
535888d9d8
builder/amazon/chroot: alphebatize the configs
...
/cc @mwhooker
2013-09-30 09:32:20 -07:00
Matthew Hooker
4ab4dbacf9
Merge remote-tracking branch 'origin/master'
2013-09-30 04:46:15 +00:00
Jack Pearkes
26278a7c72
builder/digitalocean: error message key is "message" not "error_message"
2013-09-29 11:01:30 +02:00
Matthew Hooker
5f19648268
comment, formatting.
2013-09-29 08:04:57 +00:00
Matthew Hooker
a15f629f4f
WIP copying files.
2013-09-28 01:10:33 +00:00
Matthew Hooker
831d5caa50
move wrapper definitions around.
2013-09-27 22:08:15 +00:00
Matthew Hooker
39c3051a95
building but there's an exec error.
2013-09-27 20:47:44 +00:00
Matthew Hooker
d2f9ba0d11
fixing up types.
2013-09-27 11:55:19 +00:00
Matthew Hooker
ac496a63dc
replace command config with wrapper command.
2013-09-27 10:54:53 +00:00
Matthew Hooker
cebbcc51a6
fix chroot Upload command.
2013-09-27 02:11:28 +00:00
Matthew Hooker
de83755c00
wip
2013-09-26 18:34:01 -07:00
Matthew Hooker
c15bb28491
bugfixes, wip
2013-09-27 01:28:06 +00:00
Matthew Hooker
1104ad3e17
get chroot command from proper place.
2013-09-26 16:39:37 -07:00
Matthew Hooker
6b1a7938d8
Merge remote-tracking branch 'origin/master' into 430
2013-09-26 16:24:28 -07:00
Matthew Hooker
ee60ed319b
We're not using this log package.
2013-09-26 02:31:10 -07:00
Matthew Hooker
e1dadfc57a
Unit tests.
2013-09-26 02:25:57 -07:00
Matthew Hooker
23a331fc00
bugfix.
2013-09-26 01:35:29 -07:00
Matthew Hooker
7740c8fed5
using blocking cp method.
2013-09-26 01:32:53 -07:00
Matthew Hooker
5e9ff92ff3
Revert "notes/reorg."
...
This reverts commit 73c5aec24d
.
Conflicts:
builder/amazon/chroot/step_copy_files.go
2013-09-26 01:16:51 -07:00
Matthew Hooker
ce3725efec
wip
2013-09-26 01:08:06 -07:00
Matthew Hooker
36326ee8c2
Merge branch 'master' into 430
2013-09-26 01:04:42 -07:00
Matthew Hooker
7fa238503b
wip
2013-09-26 00:58:25 -07:00
Matthew Hooker
dd356d33d8
notes/reorg.
2013-09-26 00:31:07 -07:00
Matthew Hooker
5086ff1a4e
pass chroot command to /bin/sh
...
this allows us to specify an arbitrary chroot command, i.e. for sudo
2013-09-25 03:20:22 -07:00
Bob Potter
af477a59df
Update builder-amazon-chroot to work with WaitForState changes in 7c56148f
2013-09-24 23:44:03 -05:00
Jason A. Beranek
71358222f0
communicator/ssh, builder/digitalocean: fix new SSH API from upstream
2013-09-19 23:30:22 -05:00
Mitchell Hashimoto
865f197503
builder/virtualbox: support attaching guest additions [GH-405]
2013-09-18 18:15:46 -07:00
Mitchell Hashimoto
cf10fff7fa
builder/amazon/common: save access/secret key from env [GH-434]
2013-09-18 13:59:23 -07:00
Jesse Nelson
c7e1681163
exclude everything in /tmp, but keep /tmp itself
...
There is IMO a bug with image builder that it removes /tmp, in the
current setup. This patch makes the image bundle ignore everyting in
/tmp, but keeps /tmp on the box.
2013-09-18 13:42:15 -07:00
Matthew Hooker
1befba24ed
Allow user to override chroot command.
2013-09-17 05:58:16 -07:00
Mitchell Hashimoto
692278965f
builder/virtualbox: fix scan codes
2013-09-15 23:41:08 -07:00
Mitchell Hashimoto
9f52b78602
fmt
2013-09-15 23:29:29 -07:00
Charlie Sharpsteen
efa401e4d2
Fix scancode comment concerning key release
...
According to the scancode reference, the release key code is generated by
adding `0x80` to the key press code, not `0x81`.
2013-09-15 23:18:55 -07:00
Charlie Sharpsteen
4952737ddb
Fix VirtualBox scancodes
...
Support for the backspace, delete and F1-F12 keys was added in commit 6028a3c
.
However, that commit seems to have copied character codes from the vmware
builder into the VirtualBox builder. Character codes are appropriate for VMware
which communicates through a VNC. However, VirtualBox communicates through
simulating raw keyboard input and therefore needs scancodes which are key
press/key release sequences.
This patch converts backspace, delete and F1-F10 to scancodes. F11 and F12 are
not listed in the [scancode reference][scancodes] so they have been omitted.
[scancodes]: http://www.win.tue.nl/~aeb/linux/kbd/scancodes-1.html
2013-09-15 21:45:11 -07:00
Mitchell Hashimoto
eaba28a370
communicator/ssh, builder/digitalocean: fix new SSH API from upstream
2013-09-15 12:21:21 -07:00
Mitchell Hashimoto
61320b20a9
builder/amazon/common: error if WaitForState can't find resource
...
repeatably
2013-09-12 20:37:14 -07:00
Mitchell Hashimoto
1bf91e2845
builder/amazon/common: rename instance.go to state.go, makes more sense
2013-09-12 20:33:58 -07:00
Mitchell Hashimoto
27608a7b0f
builder/amazon/*: use WaitForState for AMIs
2013-09-12 20:33:32 -07:00
Mark Peek
f941718c3e
builder/amazon: add clean_ami_name template function
...
Add a clean_ami_name template function which will translate illegal
characters in an AMI name to '-'. Example usage would be:
"ami_name": "Ubuntu 12.04 {{isotime | clean_ami_name}}"
2013-09-07 18:42:50 -07:00
Sean Mackrory
2a04f49bca
Using the vm_name parameter to name OVA/OVF files and their attachments
2013-09-06 23:38:31 -07:00
Mitchell Hashimoto
48a53446bf
builder/amazon/common: don't need squash here
2013-09-06 11:48:38 -07:00
Mitchell Hashimoto
e9d6e83436
builder/amazon/common: support NoDevice [GH-396]
2013-09-06 11:44:57 -07:00
Mitchell Hashimoto
0e2511767e
builder/amazon/common: if instance query returns none, ignore
2013-09-05 17:19:23 -07:00
Mitchell Hashimoto
f2069c1cd6
Merge pull request #388 from jmassara/ami_region_copy
...
builder/amazon/all: AMI region copy fixes
2013-09-05 17:14:16 -07:00
Mitchell Hashimoto
acd9f3c9a3
builder/vmware: always set msg.AutoAnswer
2013-09-05 13:44:57 -07:00
Mitchell Hashimoto
3fc00a2dfa
builder/vmware: auto-answer dialogs [GH-393]
2013-09-05 13:43:01 -07:00
Mitchell Hashimoto
ed7e0847fd
builder/amazon/all: TemporaryKeyPairName
...
/cc @whostolebenfrog - I actually simplified things quite a bit. I added
a "uuid" global template function so it just uses that now. I renamed it
so that it is clear it is a temporary keypair.
2013-09-05 12:23:08 -07:00
Mitchell Hashimoto
a93a17971b
Merge pull request #389 from whostolebenfrog/master
...
builder/amazon/ebs: Allow customization of temporary ssh key name
2013-09-05 12:10:03 -07:00
Mitchell Hashimoto
e732d86142
builder/virtualbox: process hdd interface as template, validate
2013-09-05 12:07:58 -07:00
Justin Bronn
dbc24d9357
Enable customization of VirtualBox disk controller with `hard_drive_interface` option (SATA only).
2013-09-05 11:00:08 -07:00
Ben Griffiths
f953874448
Allow customization of SSH Key pair pattern
...
Defined in a template using ssh_keypair_pattern. Defaults to "packer %s"
2013-09-05 13:28:31 +01:00
Mitchell Hashimoto
1df0735713
builder/digitalocean: retry longer and don't retry shutdown
2013-09-04 23:01:37 -07:00
Mitchell Hashimoto
362c32015d
builder/digitalocean: retry pending events a lot more
2013-09-04 23:00:54 -07:00
Mitchell Hashimoto
78302f2071
builder/digitalocean: get compilation working again
2013-09-04 22:53:37 -07:00
Mitchell Hashimoto
94d369f558
builder/digitalocean: give up on graceful shutdown more quickly
2013-09-04 22:51:28 -07:00
Mitchell Hashimoto
8643c70e35
builder/digitalocean: proper timeouts so poweroff retries
2013-09-04 22:26:05 -07:00
Mitchell Hashimoto
aedd1555d3
builder/digitalocean: properly cleanup goroutines for status checking
2013-09-04 22:21:59 -07:00
Mitchell Hashimoto
4af230a4dc
builder/digitalocean: actually, we want to try hard on shutdown
2013-09-04 22:14:30 -07:00
Mitchell Hashimoto
39f7a5a617
builder/digitalocean: break loop if we reach off state
...
Otherwise we get stuck in a long loop. Whoops.
2013-09-04 22:07:19 -07:00
Mitchell Hashimoto
82b46816d3
builder/digitalocean: retry power off a number of times
...
See comment.
2013-09-04 21:59:58 -07:00
Mitchell Hashimoto
306ebcf042
builder/digitalocean: looser pending event string matching.
...
Most APIs return "has a pending event" but power off seems to return
"already a pending event". WTF. Also, just wtf at the DigitalOcean API.
I can't wait until they change their english and this breaks. Because
it is definitely going to happen, and it's going to be such a fun time.
2013-09-04 21:29:07 -07:00
Mitchell Hashimoto
302871113a
builder/digitalocean: retry on any pending event errors
...
/cc @pearkes - I hate this thing.
2013-09-04 21:20:41 -07:00
James Massara
985ce790d0
Also deregister AMI if it was copied to other regions
2013-09-04 17:48:00 -07:00
James Massara
5bca569fa4
builder/amazon: Re-ordered steps for AMI region copying so tags and
...
launch permissions are also applied to copied AMIs
2013-09-04 16:06:06 -07:00
Tom Hite
ba1ca4d2fb
changed error string referring to 'ova' and 'ovf' to refer to 'qcow2' and 'img' as the former were stray leftovers from the virtualbox code used as a basis for this plugin.
2013-09-03 20:13:45 -05:00
Tom Hite
29557f36f1
removed a few stray 'VirtualBox' term uses in comments and docs.
2013-09-03 18:13:05 -05:00
Tom Hite
63ad753317
Merge remote-tracking branch 'upstream/master'
2013-09-03 10:10:59 -05:00
Tom Hite
d58a209b73
added network and disk driver options, also a source comment on the kickstart file in the docs (I can't find the original source).
2013-09-03 10:08:04 -05:00
Tom Hite
30d004022e
Initial checkin to GitHub -- has extensive changes to conform to the latest API model to match the 0.3.6 (Sept. 2, 2013) release.
2013-09-02 22:23:52 -05:00
Justin Santa Barbara
7a628b294d
Only pass the project if it is specified
2013-09-02 10:34:44 -07:00
Justin Santa Barbara
43cb57cd9c
Allow the Openstack project to be specified
...
It isn't actually optional, according to the spec
2013-09-02 10:34:44 -07:00
Mark Peek
a043e61d6c
Merge pull request #379 from justinsb/justinsb-openstack_ipv6_support
...
builder/openstack: Support IPv6 access address for Openstack
2013-09-02 09:56:25 -07:00
Greg Karékinian
2378b652ca
Fix typo
...
s/Detatching/Detaching/
2013-09-02 12:46:47 +02:00