Commit Graph

1368 Commits

Author SHA1 Message Date
Emil Hessman 002e50f493 builder/googlecompute: fix formatting directives
Fixes the following vet reports:

builder/googlecompute/step_create_instance_test.go:42: possible formatting directive in Fatal call
builder/googlecompute/step_teardown_instance_test.go:29: possible formatting directive in Fatal call
builder/googlecompute/step_teardown_instance_test.go:39: possible formatting directive in Fatal call
2015-02-25 05:29:53 +01:00
Emil Hessman 413b84af6b builder/digitalocean: fix incorrect printf verb types
Fixes the following vet reports:

builder/digitalocean/builder_test.go:267: arg b.config.SSHUsername for printf verb %d of wrong type: string
builder/digitalocean/builder_test.go:300: arg b.config.RawSSHTimeout for printf verb %d of wrong type: string
builder/digitalocean/builder_test.go:341: arg b.config.RawStateTimeout for printf verb %d of wrong type: string
builder/digitalocean/builder_test.go:382: arg b.config.PrivateNetworking for printf verb %s of wrong type: bool
builder/digitalocean/builder_test.go:397: arg b.config.PrivateNetworking for printf verb %s of wrong type: bool
2015-02-25 05:29:53 +01:00
Emil Hessman 505f51ff27 builder/amazon/ebs: fix incorrect printf verb type
Fixes the following vet report:

builder/amazon/ebs/step_create_ami.go:90: arg resp.Return for printf verb %s of wrong type: bool
2015-02-25 05:29:53 +01:00
Emil Hessman 05c2206684 builder/amazon/common: fix incorrect printf verb type in amiRegionCopy
Fixes the following vet reports:

builder/amazon/common/step_ami_region_copy.go:81: arg target for printf verb %s of wrong type: github.com/mitchellh/goamz/aws.Region
builder/amazon/common/step_ami_region_copy.go:93: arg target for printf verb %s of wrong type: github.com/mitchellh/goamz/aws.Region
2015-02-25 05:29:53 +01:00
Seth Vargo c338d313db Merge pull request #1925 from tdooner/add_rackconnect_support
Add Rackconnect support to openstack builder
2015-02-24 20:02:26 -05:00
Seth Vargo 500654714c Merge pull request #1932 from bhourigan/issue1931
ec2-upload-bundle uses deprecated parameter
2015-02-24 19:54:33 -05:00
Seth Vargo 4f22fd25f5 Merge pull request #1875 from ryanuber/f-dofix
builder/digitalocean: fix response decoding after api changes
2015-02-24 17:01:23 -05:00
Brian Hourigan f40fd36c31 Changing --region to --location 2015-02-19 14:40:36 -05:00
Brian Hourigan 8e69403735 Prepending -i to sudo so PATH is inherited from profile.d scripts related to ec2 tooling 2015-02-19 14:32:27 -05:00
Tom Dooner 6e92e60eef Add Rackconnect support
This adds two config options that we need in order to successfully build
our Rackspace images.

First, a boolean `rackconnect_wait` option which waits for the
RackConnect metadata to appear.

Second, an `ssh_interface` option, for rackconnect users who have more
prohibitive firewalls on the 'public' interface and want to ensure all
traffic to the server goes over the 'private' one.

Finishes #952.
2015-02-17 05:23:21 +00:00
Jen Spinney 40fdb15d03 Support user variables for all OpenStack string config options 2015-01-30 18:02:59 -08:00
Ryan Uber 78d6dda005 builder/digitalocean: fix response decoding after api changes 2015-01-26 13:19:46 -08:00
Danny Lockard 7d1b95c907 Formatting fix :) 2015-01-16 10:34:12 -06:00
Danny Lockard 84d6d856f6 Add the ability to create a SCSI Device as the main HD controller for
virtualbox.
2015-01-15 19:53:01 -06:00
Sebastian Röder 555b89567f s/VirtualBox/VMware in comment 2015-01-13 22:43:24 +01:00
Rickard von Essen 4a0c242c3f Merge pull request #1760 from rickard-von-essen/issue-1746
builder/parallels: Use most recent DHCP lease when determining IP.
2015-01-07 11:27:27 +01:00
Rickard von Essen d424ed1e37 builder/parallels: Use most recent DHCP lease when determening IP.
Fixes #1746. Problem establishing SSH connection with Fedora 21 and
Parallels
2014-12-28 22:22:16 +01:00
Godefroid Chapelle f52283d78e all calls to cp should be escaped 2014-12-22 12:58:41 +01:00
Godefroid Chapelle ff0772d479 Merge remote-tracking branch 'origin' into patch-1 2014-12-22 12:45:50 +01:00
Ross Smith II 10dee1bd68 Temporarily fix build by forking golang.org/x/oauth2 @ b3f9a68 2014-12-21 11:22:24 -08:00
Ryan Uber 010c77d05f builder/digitalocean: default to nyc3 2014-12-10 00:26:56 -08:00
Mitchell Hashimoto 2dfc5d3e71 builder/amazon: inject special metadata for atlas artifacts 2014-12-09 16:14:04 -08:00
Eric Johnson 24a774f0d3 Merge pull request #1737 from dcarlino/failfast_gce
Check if image already exists before doing anything else on GCE.
2014-12-09 12:10:05 -08:00
Dustin Carlino fe47f45800 Remove bucket_name from GCE config.
Fixes #1732. Forgot to do this in 23c947acf0.
2014-12-09 08:44:01 -08:00
Dustin Carlino 7c67228912 Check if image already exists before doing anything else on GCE.
This fixes #1729.
2014-12-09 08:42:34 -08:00
Armon Dadgar 20d040dcba Merge pull request #1723 from irgeek/fix-1637
Use an index loop as range loops over copies, not references
2014-12-08 11:43:30 -08:00
Armon Dadgar 44602df62f Merge pull request #1675 from cgroschupp/bugfix_vmx_upload
Upload VMX to ESX5 after editing
2014-12-08 11:41:46 -08:00
Armon Dadgar 2dace054bf Merge pull request #1707 from gergnz/master
change ordering of ssh connection IP for amazon. fixes #1559
2014-12-08 11:17:09 -08:00
Armon Dadgar dd5de1e342 Merge pull request #1692 from nitrous-io/digitalocean-image-id
Use DigitalOcean image ID for artifact Id()
2014-12-08 11:16:08 -08:00
Armon Dadgar 183d4a8474 Merge pull request #1700 from legal90/iss-1667
Parallels: Fixed issue #1667
2014-12-08 11:13:44 -08:00
Godefroid Chapelle 5a892560c3 Merge remote-tracking branch 'origin/master' into patch-1 2014-12-06 00:49:50 +01:00
James Sinclair 02ebef9031 Use an index loop as range loops over copies, not references
Fixes #1637
2014-12-05 17:27:00 +11:00
Godefroid Chapelle 955122f2e1 Be more explicit about escaping alias 2014-12-02 15:07:29 +01:00
Godefroid Chapelle 075abfeeae Escapes cp alias
Fix for #1656
2014-12-02 14:58:13 +01:00
Greg Cockburn dbaf865e59 change ordering of ssh connection IP for amazon. fixes #1559 2014-12-01 10:44:52 +11:00
rhapsodhy dd547af0c4 fix googlecompute oauth dependency 2014-11-30 04:15:44 +00:00
Mikhail Zholobov a5b21c59ba builder/parallels: Move setting the boot order to the separated step 2014-11-27 17:13:50 +03:00
Mikhail Zholobov 05affceaef builder/parallels: Attach bootable ISO exactly to cdrom0 [GH-1667] 2014-11-27 17:11:16 +03:00
Seth Vargo 1954cc9758 Merge pull request #1628 from israelshirk/hotfix/docker-communicator-symlink
Fixes Docker communicator mishandling of symlinks in UploadDir()
2014-11-26 16:28:41 -05:00
Seth Vargo 96c813684e Merge pull request #1645 from vtolstov/qemu_disk
Allow none checksumtype for qemu builder
2014-11-26 16:28:19 -05:00
Seth Vargo a60039e720 Merge pull request #1650 from vtolstov/digitalocean
fix digitalocean v2 api content-type when using json
2014-11-26 16:25:19 -05:00
Seth Vargo 31a1aa48b4 Merge pull request #1662 from vtolstov/disk_image
When using disk_image CD-ROM not needed
2014-11-26 16:10:47 -05:00
Dustin Carlino 23c947acf0 Create GCE image from persistent disk instead of from a tarball.
The new flow:
1) Provision the instance
2) Tear down the instance, but keep the boot disk
3) Create an image from the disk
4) Tear down the disk

The step to update gcloud is no longer needed, since gceimagebundle isn't used anymore.
Fixes #1507 and addresses https://github.com/mitchellh/packer/issues/1447#issuecomment-61610235.
2014-11-25 17:07:06 -08:00
Eric Johnson 87001dba60 Merge pull request #1679 from evandbrown/gce-service-accounts
Use golang/oauth2, no longer require client_secrets.json, and use
2014-11-24 05:43:11 -08:00
Cheah Chu Yeow 3d6865fafc builder/digitalocean: use DigitalOcean image ID for artifact Id(). 2014-11-24 08:14:05 +00:00
Evan Brown ff149df30f Use golang/oauth2, no longer require client_secrets.json, and use
Service Account when run from a GCE Instance.
2014-11-21 12:45:27 -08:00
Misha Brukman 74e1be7469 Added the Ubuntu image project for GCE.
The documentation:
https://cloud.google.com/compute/docs/operating-systems#ubuntu
shows that `ubuntu-os-cloud` is the proper project name.
2014-11-17 23:00:52 -05:00
Christian Groschupp e9246ec490 builder/vmware/iso: Upload VMX to ESX5 after editing [GH-1422,GH-1083] 2014-11-16 19:48:02 +01:00
Israel Shirk d4080244b0 Resolves issue where docker communicator mishandled symlinks by treating them as files 2014-11-12 14:22:48 -07:00
Vasiliy Tolstov 1e87e796dc fix using private ip address in digitalocean builder
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2014-11-12 22:57:29 +03:00
Vasiliy Tolstov 2126615b3d disk_filename is used for artifacts, but it missed in case of disk_image = true
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2014-11-06 23:47:00 +03:00
Vasiliy Tolstov 16110c6be6 add CD-ROM only if not used disk_image, also boot from it only if CD-ROM present
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2014-11-06 23:13:09 +03:00
Vasiliy Tolstov 8af85df822 add error code for failed auth
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2014-11-02 18:47:11 +03:00
Vasiliy Tolstov a5dc41a730 fix digitalocean v2 api content-type when using json
In case of using json we need to set content-type header.

Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2014-11-02 01:47:04 +03:00
Vasiliy Tolstov 4762075dc3 add missing variable
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2014-10-31 16:15:23 +03:00
Vasiliy Tolstov 5631873727 allow none checksumtype for qemu builder (copy/paste from virtualbox)
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2014-10-31 16:07:04 +03:00
Vasiliy Tolstov e5ea82f920 fix digitalocean v2 api size response
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2014-10-30 22:16:21 +03:00
Mitchell Hashimoto 06144cf287 fmt 2014-10-28 08:43:19 -07:00
Mitchell Hashimoto 0db6cd3533 Merge pull request #1330 from qur/qemu-vagrant
Qemu vagrant
2014-10-28 08:42:17 -07:00
Mitchell Hashimoto 60e2a8b5fc Merge pull request #1342 from iwebhosting/qemu-image-support
Add support for building QEMU images from pre-existing image files
2014-10-28 08:38:51 -07:00
Mitchell Hashimoto cdc0a53f92 builder/vmware: fix compilation issues 2014-10-28 08:37:12 -07:00
Mitchell Hashimoto 6c44d72112 Merge pull request #1403 from notogawa/issue-1334
Fixes #1334, Add power on retry to ESXi Driver.
2014-10-28 08:35:42 -07:00
Mitchell Hashimoto e422a45449 fmt 2014-10-28 08:35:21 -07:00
Mitchell Hashimoto 7865026e22 Merge pull request #1463 from vtolstov/digitalocean
add digitalocean v2 api support
2014-10-28 08:30:23 -07:00
Mitchell Hashimoto 00543fe582 Merge pull request #1479 from jasonberanek/esxi-remote-cache
buidler/vmware-esxi: Add configuration options for the remote location to cache ISO and floppy files
2014-10-28 08:28:15 -07:00
Mitchell Hashimoto 7ad8f33ddb Merge pull request #1530 from Quintok/master
#1191 - Add VMWare virtualhw.version configuration option under 'version'
2014-10-28 08:27:22 -07:00
Mitchell Hashimoto 51daea504e Merge pull request #1630 from routelastresort/master
builder/vmware: accept SATA drives on root VMX
2014-10-28 08:27:08 -07:00
Mitchell Hashimoto fc5db2604e builder/vmware: FUSION_APP_PATH to specify path [GH-1552] 2014-10-28 08:21:39 -07:00
Mitchell Hashimoto 716d4719dc Merge pull request #1622 from delitescere/GH-1533-aws-timeout
builder/amazon: Extend timeout and allow user override [GH-1533]
2014-10-28 08:15:18 -07:00
Vasiliy Tolstov e1e3d3c1e1 fix quote in variable name
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2014-10-28 17:25:53 +03:00
Vasiliy Tolstov 10612b5d89 try to avoid pagination
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2014-10-28 16:05:37 +03:00
Vasiliy Tolstov 8f9e9abca1 Merge branch 'master' into digitalocean 2014-10-28 16:03:32 +03:00
John Deatherage 68fbf5c21a builder/vmware: accept SATA drives on root VMX 2014-10-28 00:58:46 -07:00
Nick Cronin 1aa102dd06 addresses #1191 - Add VMWare virtualhw.version configuration option under 'version' 2014-10-28 11:49:04 +11:00
Mitchell Hashimoto 4406c20af1 builder/amazon: prefer token in config [GH-1544] 2014-10-27 17:29:40 -07:00
Mitchell Hashimoto 83772fc5b8 Merge pull request #1509 from kamazee/fix_detecting_guest_additions_when_sysprop_empty
Fix detecting guest additions URL
2014-10-27 17:04:03 -07:00
Mitchell Hashimoto c161f9adc5 Merge pull request #1558 from vtolstov/qemu_cache
builder/qemu: add ability to set cache mode for disk
2014-10-27 16:56:16 -07:00
Mitchell Hashimoto 145056185c builder/vmware: accept SATA drives on root VMX 2014-10-27 16:53:25 -07:00
Mitchell Hashimoto ef0a3f1952 Merge pull request #1604 from chilcote/add-sata-to-vmx-builder
updated step_clone_vmx.go to work with vmx files using sata
2014-10-27 16:51:55 -07:00
Mitchell Hashimoto 2575b09dc8 Merge pull request #1570 from kouk/master
figure out VirtualBox version on FreeBSD
2014-10-27 16:50:15 -07:00
Mitchell Hashimoto 607f7214b5 builder/docker: allow DOCKER_HOST 2014-10-27 16:49:39 -07:00
Mitchell Hashimoto 4bc578a029 Merge pull request #1605 from legal90/parallels-disable-cdrom
builder/parallels: Default cdrom0 should be disconnected
2014-10-27 16:47:20 -07:00
Mitchell Hashimoto b06cceec25 builder/openstack: lock to fork for now to compile [GH-1625] 2014-10-27 16:40:49 -07:00
Josh Graham 5a2c4fe8a0 builder/amazon: Extend timeout and allow user override [GH-1533]
- help resolve https://github.com/mitchellh/packer/issues/1533
  (although timeouts are always ultimately useless in a distributed
  system!)
- makes packer no more idempotent or janitorial than before
- derive maximum number of ticks from timeout
- default timeout to 300s (5m) to cater for global AMI copying
- allow user to override with AWS_TIMEOUT_SECONDS environment variable
2014-10-27 10:38:44 +11:00
Mikhail Zholobov 6e778e7244 builder/parallels: Default cdrom0 should be disconnected
Otherwise, the error message will be displayed in GUI:
"Unable to connect CD/DVD 0"
2014-10-21 16:44:43 +04:00
Joseph Chilcote d46187da4b updated step_clone_vmx.go to work with vmx files using sata 2014-10-20 20:58:12 -07:00
Mitchell Hashimoto d89fd906a4 Merge pull request #1504 from sneal/always-remove-vmx-floppy-entries
Clean VMX step should always remove floppy.
2014-10-14 16:09:28 -07:00
Mitchell Hashimoto 14fae4c5a3 Merge pull request #1561 from kholloway/master
builder/qemu: Updates to QEMU builder - Fix -redir and machine type issues
2014-10-14 16:07:00 -07:00
Mitchell Hashimoto 010cdb2057 amazon/common: style 2014-10-14 15:39:13 -07:00
Mitchell Hashimoto ce22c4eda6 Merge pull request #1579 from mpage/handle-transient-aws-errors
providers/aws: Ignore transient network errors when fetching AWS state.
2014-10-14 15:38:01 -07:00
Matt Page 6fb2586fb2 fix: Ignore transient network errors when fetching AWS state.
Given that state fetching is an idempotent operation, a transient
network error should not cause the entire build to fail. Instead,
retry when such errors are encountered.
2014-10-13 10:02:46 -07:00
Konstantinos Koukopoulos a8b8658245 figure out VirtualBox version on FreeBSD 2014-10-09 11:45:03 +03:00
Matt Page 0fe61fa1e0 fix: Respect metadata supplied for GCE builders.
Previously, any per instance metadata supplied via the GCE builder
was ignored.

Test plan:

- make test
- Manual testing via:
-- Created a packer config that contained a GCE builder with custom
   metadata set.
-- Ran `packer build`.
-- Verified the instance had the correct metadata in the GCE console.
2014-10-06 14:18:34 -07:00
Kent Holloway a3e4554a15 Merge remote-tracking branch 'upstream/master' 2014-10-06 10:14:08 -05:00
Kent Holloway 9e2d0af5ab Reverting previous change, including M on memory line to be explicit about what we are requesting 2014-10-06 10:11:39 -05:00
Vasiliy Tolstov 8efc8ec984 add ability to set cache mode for disk
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2014-10-06 01:09:45 +04:00
Rickard von Essen d75d44ad9e Merge pull request #1548 from legal90/create_disk
builder/parallels: Create VM without hdd and then add it later
2014-10-04 23:06:15 +02:00
Mikhail Zholobov eb37742ab0 builder/parallels: Disable default cdrom0 device and then enable it on cleanup
This is needed to make 'cdrom0' device unavailable during the ISO installation process.
It is required for some guest OS types, such as FreeBSD and OmniOS.
2014-10-04 22:39:54 +02:00
Mikhail Zholobov 13251ced49 builder/parallels: Added setting the boot order
CD/DVD drive with installation ISO should be exactly the 2nd device in the VM boot order.
This ensures that VM will boot from this ISO at the first boot time only.
2014-10-04 22:39:54 +02:00
Mikhail Zholobov 280c3c52de builder/parallels: Attach ISO images to the separate cdrom device
For each ISO image the individual cdrom device will be added to the VM. During the cleanup these devices will be deleted.
It makes attach steps more clear - there is no doubt what is the name of the device.

Related to: [mitchellh/packer#1502]
2014-10-04 22:39:54 +02:00