Commit graph

5388 commits

Author SHA1 Message Date
Taliesin Sisson
aa1f1da1ff Support for boot_command
Setup local http server
Add compaction of hard drive
GetHostAdapterIpAddress function added for hyperv
renamed step step_start_vm to step_run to fall in ine with naming conventions of other builders
2016-12-12 22:44:07 +00:00
Taliesin Sisson
03b0698edd Remove devices after it has been shut down
Attempt to stop vm, before deleting it
2016-12-12 22:44:06 +00:00
Taliesin Sisson
2d7cfcd65d Throw error if we can't get mac or ip address during steps 2016-12-12 22:44:05 +00:00
Taliesin Sisson
87b3dec3d2 Wait until WinRM is available, before continuing with install. This is how other system like VeeWee do it.
Add support for number of cpus to use for vm
Add support for vm generation
2016-12-12 22:44:04 +00:00
Taliesin Sisson
79a5f90379 Use the convention for default vmname
Use the convention for default hdd size
Tests added for builder
2016-12-12 22:44:04 +00:00
Taliesin Sisson
a42215981e The test is meant to fail if the folder already exists 2016-12-12 22:44:02 +00:00
Taliesin Sisson
ca16f33fa3 Use the same configuration style as existing builders
Move builder into correctly named folder
2016-12-12 22:44:02 +00:00
Taliesin Sisson
1fe4c501e4 Port of https://github.com/pbolduc/packer-hyperv/
Remove steps that are windows specific
2016-12-12 22:44:01 +00:00
Matthew Hooker
f1fb942219
add ca-central-1 to list of known aws regions.
resolves #4273
2016-12-09 11:21:44 -08:00
Matthew Hooker
a46c071143
fix regex. need to account of XXhYYm etc 2016-12-08 15:12:48 -08:00
Matthew Hooker
1e96aa845b
fix wait boot_command regex.
Resolves #4268
2016-12-08 15:12:40 -08:00
Matthew Hooker
d3ddd99721 Merge pull request #4163 from StackPointCloud/packer-builder-oneandone
Packer Builder 1&1
2016-12-08 14:07:35 -08:00
Dave Buckley
91562636d4 Allow reauth to keystone after token expiry 2016-12-07 01:36:10 +00:00
Rickard von Essen
5c4d331a34 Added missing LaunchPermission 2016-12-06 09:59:09 +01:00
Rickard von Essen
4ce3b8712a
Replace unencrypted EBS snapshots with encrypted
To ensure that groups and users attributes are added to the encrypted
snapshots.
2016-12-06 03:31:09 +01:00
Brian Ruff
038787ed48 Refactored to gather scan codes into groups to be sent to VirtualBox's console. 2016-12-04 11:28:18 -07:00
Rickard von Essen
c3a352955e amazon: Added snapshot_users and snapshot_groups 2016-12-04 16:03:01 +01:00
Ari Aviran
46f217f255 amazon - Snapshot permissions correctly applied
Fixes #3344
2016-12-04 16:03:01 +01:00
Rickard von Essen
d7a7d8c852
It's not possible to share encrypted AMI's 2016-12-04 15:52:23 +01:00
Troy Toman
12f279fa79 add ability to set a different project-id for a network in the googlecloud builder 2016-12-02 15:22:36 -06:00
poida
8b13b75097 Updated documentation and error messages
The docs for kms_key_id needed to be next to encrypt_boot.

Shortened some of the kms_key_id error messages.
2016-12-03 07:49:54 +11:00
poida
7ea17e1630 Allow custom encrypted AMIs to be shared
When using a custom KMS key to encrypt the boot volume of an AMI, packer should allow it to be shared with other users.
2016-12-03 07:49:54 +11:00
poida
3eed6fd508 Added KMS CMK support to EBS builder
Added the 'kms_key_id' parameter. This supports supplying a customer master key (CMK) when encrypting the EBS volume.

The parameter is optional and only takes effect when 'encrypted' is true. When 'encrypted' is true but 'kms_key_id' is missing the 'aws/ebs' key will be used.
2016-12-03 07:49:34 +11:00
Rickard von Essen
8d2ceea5f1 builder/amazon: crash on tagging snapshot when snapshot_tags is unset
Closes #4238
2016-12-01 20:43:15 +01:00
Rickard von Essen
bcc7f455b3 amazon: Fix source_ami_filter ignores owners 2016-12-01 14:29:31 +01:00
Arthur Burkart
576f6f1b39 Fixes acceptance test
The original acceptance test required a manual check. This one does
not.
2016-11-30 22:58:19 -05:00
Matthew Hooker
832de2104b
Revert "Merge pull request #4230 from mitchellh/revert-4223-closes_3320"
This reverts commit bda89b0c42, reversing
changes made to f9f9d82419.
2016-11-30 13:28:34 -08:00
Matthew Hooker
f5c3c25d2b Revert "Adds force_delete_snapshot flag" 2016-11-30 13:10:22 -08:00
Matthew Hooker
f9f9d82419 Merge pull request #4223 from artburkart/closes_3320
Adds `force_delete_snapshot` flag
2016-11-30 12:53:34 -08:00
Arthur Burkart
5b59f56cdb Adds force_delete_snapshot flag
This PR adds the ability for Packer to clean up snapshots in addition to
deregistering AMIs at build time.

To test this, I used the following `test.json` file:

```json
{
  "builders": [
    {
      "type": "amazon-ebs",
      "region": "us-east-1",
      "source_ami": "ami-fce3c696",
      "ami_name": "packer-test",
      "instance_type": "m3.medium",
      "ssh_username": "ubuntu",
      "vpc_id": "some-vpc-id",
      "subnet_id": "some-subnet-routed-through-igw",
      "security_group_id": "some-security-group-with-port-22-access",
      "force_delete_snapshot": true
    }
  ],
  "provisioners": [
    {
      "type": "shell-local",
      "command": "echo 'hello'"
    }
  ]
}

```

I appreciate any constructive feedbakc that can be given. Cheers!
2016-11-29 23:39:36 -05:00
Rickard von Essen
99ee610afa
builder/amazon: Fix SSH Agent
Closes #4220
2016-11-29 22:33:53 +01:00
Matthew Hooker
6c546d4d1f Merge pull request #3982 from artburkart/close_1195
Support remote ova downloads
2016-11-28 18:49:50 -08:00
Matthew Hooker
aedf4ca465 Merge pull request #4141 from mitchellh/ebsvoluemartifact
add ebsvolume artifact
2016-11-28 15:50:03 -08:00
Matthew Hooker
50267572a4
add ebsvolume artifact 2016-11-28 15:26:09 -08:00
Arthur Burkart
337856811e Implements OVA downloads w/local checksum support
Presumably, it is convention to store a manifest file with checksums
inside the OVA, so remote checksum support was not implemented.
2016-11-28 15:01:37 -05:00
Rickard von Essen
e36b98ecd5 Merge pull request #4202 from nervo/docker-commit-changes
Introduce docker commit changes
2016-11-26 18:40:08 +01:00
Rickard von Essen
a09f20f996 Merge pull request #4015 from artburkart:closes_3908
Closes #3908: Adds snapshot tag overrides
2016-11-26 17:54:00 +01:00
Arthur Burkart
0c7e73b1cf
Implements Snapshot tagging
While implementing my acceptance test, I stumbled upon a comment stating
that snapshot deletion should also be implemented, so I snuck that in. I
can't help but wonder if there is some generic logic that is implemented
a few times throughout the packer code base that could maybe better serve
us if it were abstracted to the common package.
2016-11-26 17:48:26 +01:00
Rickard von Essen
6947a74151 Merge pull request #4162 from classmarkets/google-source-image-family
builder/googlecompute: support source image family
2016-11-26 17:26:47 +01:00
Rickard von Essen
d18da5e679
Added printout of select source_image 2016-11-26 15:06:43 +01:00
Rickard von Essen
17eda06d61
Fixed formatting 2016-11-24 21:12:20 +01:00
ephemeralsnow
e53f4be005 Fix 'The AssociatePublicIpAddress parameter is only supported for VPC launches.' 2016-11-24 17:01:32 +01:00
Florian Rey
73c5eac4f0 Handle commit author & message the same way 2016-11-24 13:33:42 +01:00
Florian Rey
06bebb63d0 Add log 2016-11-24 13:07:01 +01:00
Florian Rey
c925acf502 Introduce docker commit changes 2016-11-24 11:42:34 +01:00
Rickard von Essen
8257c2dabd Merge pull request #4172 from rickard-von-essen/default-ssh-user
ssh: Remove ssh_username default values
2016-11-17 22:40:09 +01:00
Rickard von Essen
96e9a8e6e9 Removed default value for ssh_username 2016-11-17 22:30:34 +01:00
jasminSPC
68ca7490bb Removed default value for ssh_username 2016-11-17 21:15:28 +01:00
Sander van Harmelen
285ff6940e Revert some changes made in #4149 (#4175)
After some more research and testing it turns out we can support the use case where you want to reuse an associated IP address that already has port 22 or 5985 forwarded, by using a random public port.

The correct port to open in the firewall is different for the type of firewall used. The standard firewall requires the public port to be opened and the network ACL requires the private port to be opened.

So by partially reverting this code and updating which ports to open in which cases, we can support all use cases again.
2016-11-16 10:30:32 +01:00
Arthur Burkart
2e65867cba Closes #3908: Adds snapshot tag overrides
This commit adds the ability to configure unique tags on snapshots
that are separate from the tags defined on the AMI. Anything applied
to the AMI will also be applied to the snapshots, but `snapshot_tags`
will override and append tags to the tags already applied to the snapshots
2016-11-15 23:16:27 -05:00
jasminSPC
5649940fab Removed unecessary print messages 2016-11-16 00:20:22 +01:00
jasminSPC
484960c9d1 Fixes #4169 2016-11-16 00:17:30 +01:00
Matthew Hooker
9a91ae4e8f
fix new session error when creating cred chain.
the old and deprecated method won't error and so is safe to use
even if we're not in amazon.
2016-11-14 11:39:22 -08:00
jasminSPC
dc231f9600 PR remarks 2016-11-13 23:54:55 +01:00
jasminSPC
4bcba37f38 Packer Builder 1&1 2016-11-13 23:34:36 +01:00
Peter Schultz
bcb319640e builder/googlecompute: support source image family
Closes #4100
2016-11-13 16:54:04 +01:00
Sander van Harmelen
68c6835bb5 Do not create a random public port (#4149)
This is meant to be a gentle solution for a very specific use case, but is causing more issues then it solves.

If you have a port conflict when trying to use an already associated public IP, the easiest way around it is to let the builder associate a new temporary public IP address.
2016-11-10 13:59:58 +01:00
nyankichi820
d1eadd91bb Fix cloudstack builder (#4139)
* add zone id when associate ip address in cloudstack

* configure keypair

* fix bug firewall port
2016-11-10 13:21:08 +01:00
Matthew Hooker
d81c06765d
fix go vet issue.
closes #4130
2016-11-07 10:17:53 -08:00
febc.yamamoto
6088c1887c Fix keycodes for ctrl,shift and alt key when sending over VNC 2016-11-04 19:26:14 +09:00
Sander van Harmelen
33f430bf25 Use the private port for the firewall rules (#4114)
Because of how CloudStack configures the firerwall on the router VM, you need to allow traffic to the private port instead of the public port.
2016-11-04 09:56:49 +01:00
Matthew Hooker
5d0892bd37 Merge pull request #4101 from lwander/f-googlecompute-ssh-private-key-file
builder/googlecompute: Use ssh_private_key_file if provided
2016-11-03 11:04:02 -07:00
Lars Wander
583e341ae7 builder/googlecompute: Store empty public_key 2016-11-03 12:49:09 -04:00
Lars Wander
7f474d8f78 builder/googlecompute: Tests added 2016-11-03 12:45:52 -04:00
Scott Crunkleton
85210afe92 googlecompute: conditionally omit the wait for startup script step if no startup script is provided. 2016-11-02 15:20:21 -07:00
Lars Wander
d70e783455 builder/googlecompute: Use ssh_private_key_file if provided
This seemed to be missing from the googlecompute provider. Now if the
ssh_private_key_file is provided, that will be used in place of a temporary
key. I didn't update the googlecompute specific docs under `./website/`, since
this parameter is already documented under the communicators templates page.
2016-11-02 17:04:34 -04:00
Matthew Hooker
f3f5f89fe6 Merge pull request #4096 from mitchellh/filterday
builder/amazon-ebs: show ami id found from filter
2016-11-02 12:25:46 -07:00
Matthew Hooker
60c459d6c8 Merge pull request #4098 from mitchellh/newsession
aws-sdk: use session.NewSession
2016-11-02 12:25:14 -07:00
Matthew Hooker
9bc23ea512 Merge pull request #4099 from mitchellh/waitfail
Waitfail
2016-11-02 12:21:51 -07:00
James Nugent
36c09af992 builder/amazon: Add tests for the ebs-volume builder
These smoke tests are effectively a mirror of the EBS builder tests.
2016-11-02 12:56:39 -04:00
James Nugent
b1ff8c3bfc builder/amazon: Add ebs-volume builder
This commit adds a builder that works like EBS builders, except does not
create an AMI, and instead is intended to create EBS volumes in an
initialized state. For example, the following template can be used to
create and export a set of 3 EBS Volumes in a ZFS zpool named `data` for
importing by instances running production systems:

```
{
	"variables": {
		"aws_access_key_id": "{{ env `AWS_ACCESS_KEY_ID` }}",
		"aws_secret_access_key": "{{ env `AWS_SECRET_ACCESS_KEY` }}",
		"region": "{{ env `AWS_REGION` }}",
		"source_ami": "{{ env `PACKER_SOURCE_AMI` }}",
		"vpc_id": "{{ env `PACKER_VPC_ID` }}",
		"subnet_id": "{{ env `PACKER_SUBNET_ID` }}"
	},
	"builders": [{
		"type": "amazon-ebs-volume",
		"access_key": "{{ user `aws_access_key_id` }}",
		"secret_key": "{{ user `aws_secret_access_key` }}",
		"region": "{{user `region`}}",
		"spot_price_auto_product": "Linux/UNIX (Amazon VPC)",

		"ssh_pty": true,
		"instance_type": "t2.medium",
		"vpc_id": "{{user `vpc_id` }}",
		"subnet_id": "{{user `subnet_id` }}",
		"associate_public_ip_address": true,
		"source_ami": "{{user `source_ami` }}",
		"ssh_username": "ubuntu",
		"ssh_timeout": "5m",

		"ebs_volumes": [
			{
				"device_name": "/dev/xvdf",
				"delete_on_termination": false,
				"volume_size": 10,
				"volume_type": "gp2",
				"tags": {
					"Name": "TeamCity-Data1",
					"zpool": "data",
					"Component": "TeamCity"
				}
			},
			{
				"device_name": "/dev/xvdg",
				"delete_on_termination": false,
				"volume_size": 10,
				"volume_type": "gp2",
				"tags": {
					"Name": "TeamCity-Data2",
					"zpool": "data",
					"Component": "TeamCity"
				}
			},
			{
				"device_name": "/dev/xvdh",
				"delete_on_termination": false,
				"volume_size": 10,
				"volume_type": "gp2",
				"tags": {
					"Name": "TeamCity-Data3",
					"zpool": "data",
					"Component": "TeamCity"
				}
			}
		]
	}],
	"provisioners": [
	{
		"type": "shell",
		"start_retry_timeout": "10m",
		"inline": [
			"DEBIAN_FRONTEND=noninteractive sudo apt-get update",
			"DEBIAN_FRONTEND=noninteractive sudo apt-get install -y zfs",
			"lsblk",
			"sudo parted /dev/xvdf --script mklabel GPT",
			"sudo parted /dev/xvdg --script mklabel GPT",
			"sudo parted /dev/xvdh --script mklabel GPT",
			"sudo zpool create -m none data raidz xvdf xvdg xvdh",
			"sudo zpool status",
			"sudo zpool export data",
			"sudo zpool status"
		]
	}
	]
}
```

StepModifyInstance and StepStopInstance are now shared between EBS and
EBS-Volume builders - move them into the AWS common directory and rename
them to indicate that they only apply to EBS-backed builders.
2016-11-02 12:56:39 -04:00
Matthew Hooker
d47e47cf1f rewrite to not use private aws package 2016-11-01 18:29:18 -07:00
Matthew Hooker
c4c46c349e implement security group waiter 2016-11-01 18:10:42 -07:00
Matthew Hooker
970b37077e Merge pull request #4050 from jen20/ssh-agent
builder/amazon: Allow use of local SSH Agent
2016-11-01 17:27:37 -07:00
Matthew Hooker
48bdae93d1 aws-sdk: use session.NewSession 2016-11-01 15:53:04 -07:00
Matthew Hooker
83b57b98ac show ami id found from filter 2016-11-01 15:26:43 -07:00
Matthew Hooker
d920b3fbf4 run gofmt 2016-11-01 14:08:04 -07:00
Matthew Hooker
0dd7d7ff3b fix error message 2016-10-31 16:44:18 -07:00
Ganesh kumar Sankaran
b9c6139d67 AWS async operations sometimes takes long times, if there are multiple parallel builds, polling at 2 second frequency will exceed the request limit. Allow 2 seconds to be overwritten with AWS_POLL_DELAY_SECONDS 2016-10-31 16:44:18 -07:00
Matthew Hooker
01be917450 Merge pull request #3660 from StackPointCloud/packer-builder-profitbricks
Packer Builder ProfitBricks
2016-10-31 15:45:24 -07:00
Matthew Hooker
93f0436766 Merge pull request #3909 from svanharmelen/f-cloudstack-builder
Add a CloudStack builder
2016-10-31 13:34:20 -07:00
Matthew Hooker
f69ee4634f Merge pull request #4041 from mitchellh/vmwareshutdown
VIP: VMware shutdown fails
2016-10-31 11:37:00 -07:00
Rickard von Essen
d66490ebfd
Properly cleanup AWS temporary key pairs
Closes #4057 - Amazon key pair no longer cleaned up at end of build
2016-10-27 23:06:13 +02:00
Rickard von Essen
d16d5d9686 Merge pull request #3817 from ChrisLundquist/dynamic-source-ami
Dynamic source ami
2016-10-25 21:24:41 +02:00
Richard Owen
adddc60a1d Fix typo in encrypted ami step log message 2016-10-25 16:01:01 +01:00
James Nugent
395d88941c amazon: Allow SSH Agent auth for existing key pair
This commit allows SSH Agent authentication to be used with an existing
key pair defined in AWS.
2016-10-23 22:26:14 -05:00
James Nugent
7425fef2c7 builder/amazon: Allow use of local SSH Agent
This commit adds an option to use the local SSH Agent to authenticate
connections to source instances started by the the EBS and Instance
Store builders.

This is of use when the source AMI _already_ has configuration for
authorized SSH keys - for example if one uses an SSH certificate
authority.

A further extension (not implemented in this commit) is to allow SSH
agent use with a pre-defined key pair, in order to allow keys with
passphrases to be used without giving the passphrase to Packer.
2016-10-23 21:43:47 -05:00
Matthew Hooker
d6bed79429 wait for shutdown command to end so we get stderr/out 2016-10-22 10:33:27 -07:00
YAMADA Tsuyoshi
da7d317e46 googlecompute: Run instance with custom scopes 2016-10-22 15:46:14 +09:00
Matthew Hooker
e9a5d05a2f builder/vmware: Ignore shutdown errors
Resolves issue where `shutdown_command` would error because the remote
side disconnected, which we should have expected and ignored.
2016-10-21 22:41:45 -07:00
Matthew Hooker
f9f47c5bbb fix shell disconnect error when shutting down vmware 2016-10-21 22:26:34 -07:00
Asif R Choudhury
48d94342ba Add us-east-2 (Ohio) AWS region 2016-10-17 21:31:41 -05:00
Arthur Burkart
4a00ffeea2 Closes #3999 - Support VirtualBox Trim/Discard
Adds a couple options to enable/disable the `--nonrotational` and
`--discard` flags during `VBoxManage storageattach` command execution
2016-10-17 08:52:28 -04:00
Sander van Harmelen
dbf3bf56d4 Add a CloudStack Builder 2016-10-16 15:29:18 +02:00
Rickard von Essen
c273bd6beb Merge pull request #3789 from jeremy-asher/amazon-ebs-delete-volumes-on-failure
clean up EBS volumes on failure
2016-10-15 14:57:15 +02:00
Christopher Boumenot
f908e18483 Merge pull request #3996 from boumenot/pr-issue-3968
azure: Allow user to set custom data
2016-10-13 13:39:54 -07:00
Christopher Boumenot
7d07fa7afc azure: Allow user to set custom data 2016-10-13 11:56:23 -07:00
Christopher Boumenot
bba643df9a azure: handle os_type errors more gracefully 2016-10-13 09:26:29 -07:00
Christopher Boumenot
249a943a1e azure: Allow user to override size of OS disk 2016-10-12 16:24:04 -07:00
jasminSPC
5da380baed Error handling
Minor typo fixes
2016-10-13 00:41:04 +02:00
Rickard von Essen
3c8dabba9e Fixed formatting 2016-10-11 23:43:50 +02:00
jasminSPC
dca286bf38 Merge remote-tracking branch 'upstream/master' into packer-builder-profitbricks 2016-10-10 23:53:52 +02:00
Rickard von Essen
ba8cfbd222
builder/openstack: Support using SSH password.
This adds support for using ssh_password to connect to a OpenStack
instance. If ssh_password is defined creation of the temporary keypair
is skipped.
2016-10-08 23:18:19 +02:00
Rickard von Essen
5e96709ee9 Merge pull request #2919 from arizvisa/floppy-recurse
Added an option for copying entire subdirectories via floppy_dirs (supplants floppy_files)
2016-10-08 16:51:16 +02:00
Matthew Hooker
badadec140 Merge pull request #3758 from elconas/fix_vmware_builder
Fix License check to work with licensed VMware Workstation
2016-10-07 17:51:32 -07:00
Matthew Hooker
b7e14c4354 Merge pull request #3952 from MikeStankavich/f-virtualbox-post-shutdown-delay
Add VirtualBox post shutdown delay to address floppy controller delet…
2016-10-03 16:23:02 -07:00
Matthew Hooker
127142215a Merge pull request #3954 from emo3/f-keepreq-vb
added functionality like vm
2016-10-03 12:55:34 -07:00
Ed Overton
1adb0a5fc3 added functionality like vm 2016-10-03 15:11:21 -04:00
Rickard von Essen
0be3034e82 Merge pull request #3953 from rickard-von-essen/amz-ssh
builder/amazon: Allow using ssh_private_key_file and ssh_password
2016-10-03 10:22:15 +02:00
Rickard von Essen
acc2689b49
builder/amazon: Allow using ssh_private_key_file and ssh_password
This adds support for using amazon-ebs/amazon-instance builder without
a keypair. If a ssh_private_key_file is supplied without a
ssh_keypair_name no temporary ssh keypair is created. If ssh_password is
used no temporary ssh keypair is created and the password is used when
trying to connect.

Closes #2301
Closes #3156
2016-10-02 22:20:36 +02:00
Mike Stankavich
a187b1cf92 Add VirtualBox post shutdown delay to address floppy controller delete error per issue #2401 2016-10-02 13:12:40 -05:00
Rickard von Essen
cffc8e892c Merge pull request #3382 from ahamidi/encrypted-boot-volume
Create AMI with encrypted boot volume
2016-10-02 01:02:43 +02:00
Chris Lundquist
9379cbc5d9 [dynamic-source-ami] support instance builder too 2016-10-01 23:01:01 +00:00
Chris Lundquist
ab3500b45c [dynamic-source-ami] support chroot builder 2016-10-01 22:56:09 +00:00
Chris Lundquist
1b4895c684 Merge remote-tracking branch 'origin/master' into dynamic-source-ami 2016-10-01 22:20:17 +00:00
Rickard von Essen
3ad7f067ab Merge pull request #2784 from orivej/fix-ssh-port-max
Make ssh_host_port_max an inclusive bound to agree with documentation
2016-10-02 00:12:37 +02:00
Rickard von Essen
29ae078326 Added missing virtualbox floppy_dirs 2016-10-01 09:05:10 +02:00
Rickard von Essen
924c0bc461 Merge pull request #3932 from pieter-lazzaro/googlecompute-createpassword
GCE Windows instance password creation
2016-09-30 22:01:56 +02:00
Rickard von Essen
c0a4067151
builder/googlecompute: Print out WinRM password in debug mode. 2016-09-30 21:17:38 +02:00
Matthew Hooker
a8e57d83d2 gofmt project.
noticed many unrelated changes being added to patches because of gofmt.

ran `find . -not -path "./vendor/*" -name "*.go" -exec gofmt -w {} \;`
2016-09-29 14:13:06 -07:00
Matthew Hooker
a9abe43325 builder/amazon: add retry login when creating tags.
also move Retry from builder/googlecompute/common to common/retry
2016-09-28 18:22:31 -07:00
jasmin
bfb075e505 Renamed artefact -> artifact 2016-09-29 00:04:14 +02:00
jasmin
a092701aea Renamed artefact -> artifact 2016-09-28 23:57:37 +02:00
Christopher Boumenot
3dc7873b21 Merge pull request #3936 from boumenot/pr-azure-error-message
azure: fix error message
2016-09-28 14:17:33 -07:00
Christopher Boumenot
e42b3d8447 azure: fix error message
There have been two issues raised where the user followed the error
message, but they needed to add yet another config value to disambiguate
the VNET.  It would be better if the message over corrected, and asked the
user to specify everything to ensure complete disambiguation.
2016-09-28 09:50:10 -07:00
Michael Nikitochkin
343c594bb3
Added UserDataFile support for DigitalOcean builder config. 2016-09-28 15:00:57 +02:00
Ali Rizvi-Santiago
86c00490e9 Renamed any and all instances of the word "FloppyContents" to "FloppyDirectories".
Ensure that all builders include FloppyDirectories in the StepCreateFloppy options.
Changed the way the unit-tests in common/step_create_floppy_test work to use the static test-fixtures directory instead of creating the paths dynamically.
Removed a duplicate line of documentation from parallels-pvm.html.md that occurred during rebasing.
2016-09-27 23:31:42 -05:00
Pieter Lazzaro
5db1c1f503 Create a password for windows instances when using WinRM communicator and no password is provided. 2016-09-27 18:42:34 -04:00
Valentin Tjoncke
ef1517064c googlecompute/builder: Always show message when checking image exists 2016-09-24 21:12:25 +02:00
nouney
4605f9559f Fix unreachable code 2016-09-23 20:38:28 +02:00
Valentin Tjoncke
6f545af7f7 builder/googlecompute: -force 2016-09-23 14:21:43 +02:00
Rickard von Essen
c95aab5e0e Merge pull request #3888 from yoctocloud/qemu
builder/qemu: specify disk format to avoid errors
2016-09-22 08:43:40 +02:00
Rickard von Essen
06e3539ffa Merge pull request #3767 from taliesins/ExtendScanCodes
Add support for ctrl, shift and alt keys and using them as key modifier.
2016-09-20 21:36:46 +02:00
Rickard von Essen
9ce70bfce0 Merge pull request #3338 from yuki-takeichi/gce-nvme 2016-09-20 12:50:43 +02:00
Yuki Takeichi
04078c5c48 Enable to select NVMe images for googlecompute builder 2016-09-20 12:47:14 +02:00
Rickard von Essen
13c9db5dd5 Merge pull request #3885 from orivej/on-error
Add -on-error command line argument to allow preserving artifacts on builder errors
2016-09-20 12:28:14 +02:00
Rickard von Essen
476d981211 Merge pull request #3800 from benwtr/issue-3142-match-dotfiles-docker-communicator
Fix file provisioner dotfile matching w/ docker builder
2016-09-20 12:25:37 +02:00
Matthew Hooker
7cbb98f2d5 QemuArggs -> QemuArgs
Avast ye, resolves #3901
2016-09-19 14:34:13 -07:00
Jeremy Asher
aea05f6485 fix nil pointer dereference in amazon-chroot
The refactor of StepRegisterAmi to add the from_scratch parameter
incorrectly replaced iteration over image.BlockDeviceMappings with
iteration over the new mapping array when not using from_scratch.  This
fixes the regression and renames the parameters to newMappings and
mappings for better clarity.
2016-09-16 18:35:36 -07:00
Orivej Desh
6762965696 Add -on-error command line argument to allow preserving artifacts on builder errors
Resolves #409
2016-09-16 12:15:00 +00:00
Vasiliy Tolstov
4986ef39b2 builder/qemu: specify disk format to avoid errors
Image format was not specified for XXX and probing
guessed raw.
Automatically detecting the format is dangerous for raw images, write
operations on block 0 will be restricted.
Specify the 'raw' format explicitly to remove the restrictions.

Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2016-09-15 17:59:05 +03:00
Rickard von Essen
3b47893eb8
builder/amazon: reverted wrongly modified ssh_test's. 2016-09-14 20:26:09 +02:00
jasminSPC
178748bb7c Merge remote-tracking branch 'upstream/master' into packer-builder-profitbricks 2016-09-14 15:32:30 +02:00
jasminSPC
2008c6019a Addressing PR remarks 2016-09-14 15:05:45 +02:00
Rickard von Essen
067155c344
builder/amazon: guard aginst empty/nil PrivateIpAddress and updated tests. 2016-09-14 00:16:09 +02:00
Rickard von Essen
7f4bee737c Merge pull request #3752 from tarrall/issue3751-ssh-privateip-classic
builder/amazon: Honor ssh_private_ip flag in EC2-Classic, not just VPC
2016-09-13 22:54:00 +02:00
Rickard von Essen
3ab49595e6 Merge pull request #3681 from yoctocloud/communicator
builder/qemu: dont fail on communicator set to none
2016-09-13 22:45:12 +02:00
jasminSPC
325401eaf0 Merge remote-tracking branch 'upstream/master' into packer-builder-profitbricks 2016-09-13 12:06:45 +02:00
Ali Rizvi-Santiago
a3f0308e92 Re-implemented the support for the floppy_files keyword in order to remain backwards-compatible with templates using the old syntax.
Moved the support for recursive paths from the floppy_files keyword to the new floppy_contents keyword.
Shifted some of the code around to add better logging of what's actually being copied.
Added a couple of unit-tests for the new floppy_contents implementation.
Ensured that all files that were being added were also being included in state.FilesAdded so that the older unit-tests will work.
2016-09-12 11:56:25 -05:00
Rickard von Essen
120b60ae37 Merge pull request #3865 from dpiddy/amazon-ssh-retry-fix
amazon/common/ssh: fix saving of instance to state
2016-09-12 15:04:35 +02:00
Rickard von Essen
10cba9795f Merge pull request #3476 from bhcleek/ansible-with-docker
fix docker builder with ansible provisioner
2016-09-12 13:56:28 +02:00
Rickard von Essen
ed1b664d65 Merge pull request #3855 from jeremy-asher/chroot-from-scratch
amazon-chroot build AMI from scratch
2016-09-12 13:48:04 +02:00
Rickard von Essen
c3861d1675 Merge pull request #3856 from rickard-von-essen/ecr-support
Improved support for Amazon EC2 Container Registry - ECR
2016-09-12 13:43:41 +02:00
Rickard von Essen
1ca79ad0cb Merge pull request #3873 from crunk1/master
With testify deps fix.
2016-09-12 12:54:25 +02:00
Rickard von Essen
5cbc36103e Merge pull request #3756 from ricardclau/floppy_check
Test floppy disks actually exist
2016-09-12 08:05:16 +02:00
Scott Crunkleton
b54b82d3ac Some googlecompute fixes and cleanup. Addresses https://github.com/mitchellh/packer/issues/3829. Changes:
- startup scripts don't run for Windows since it is isn't implemented yet.
- startup scripts use instance metadata instead of serial port output to flag when they are done.
- added licenses to Image data type (to check if an Image is a  Windows Image).
- added GetImage and GetImageFromProject to googlecompute Drivers.
- changed some of the builder/googlecompute tests to use github.com/stretchr/testify/assert.

Tests:
- (in the Packer directory) `go test .`, `go test ./builder/googlecompute`, and `go test ./post-processor/googlecompute-export`
- manual run of `packer build packer_template.json` with the following files

--packer_template.json--
{
  "builders": [
    {
      "type": "googlecompute",
      "account_file": "creds.json",
      "project_id": "google.com:packer-test",
      "source_image": "debian-8-jessie-v20160629",
      "zone": "us-central1-a",
      "startup_script_file": "startup_script.sh",
      "metadata": {
        "startup-script": "#!/bin/sh\necho \"This should be overwritten.\"",
        "startup-script-log-dest": "gs://packer-test.google.com.a.appspot.com/startup-script.log"
      },
      "image_name": "test-packer-modifications",
      "ssh_username": "foo"
    }
  ],
  "post-processors": [
    {
      "type": "googlecompute-export",
      "paths": [
        "gs://packer-test.google.com.a.appspot.com/foo.tar.gz",
        "gs://packer-test.google.com.a.appspot.com/bar.tar.gz"
      ],
      "keep_input_artifact": true
    }
  ]
}

--startup_script.sh--
\#!/bin/sh
echo "Hi, my name is Scott. I'm waiting 60 seconds!" >> /scott
sleep 60
echo "I'm done waiting!" >> /scott
2016-09-09 16:22:50 -07:00
Dan Peterson
c7af9a67bc amazon/common/ssh: fix saving of instance to state
Fixes #3496
2016-09-09 10:16:53 -03:00
Rickard von Essen
f446c1a1b7
builders/digitalocean: fixes timeout waiting for snapshot #3853 2016-09-08 10:32:43 +02:00
Rickard von Essen
b2d9782a9e
Improved support for Amazon EC2 Container Registry - ECR
This adds support for authenticating towards ECR in the docker builder
and docker-push post-processor using them same mechanisms as in the
amazon builders. I.g. access key/secret key, credentials on file,
environment variables, sts tokens or IAM instance roles.
2016-09-04 14:33:47 +02:00
Jeremy Asher
1c392b23f9 generate warnings for unused options with from_scratch 2016-09-03 12:32:43 -07:00
Jeremy Asher
ef0c7543e1 add amazon-chroot post mount commands
This adds an additional PostMountCommands step to the amazon-chroot
builder which executes after the volume is mounted, but before the
extra chroot mounts and copy step.
2016-09-03 12:32:41 -07:00
Jeremy Asher
5e8b697a76 add from_scratch option to amazon-chroot builder
This provides an alternate mode for the amazon-chroot builder which uses
a blank volume to build the image.  It adds StepPreMountCommands to
permit partitioning and format commands to be executed before mounting
the new volume.
2016-09-03 12:28:22 -07:00
Jeremy Asher
85ae04bb75 split up BlockDevices in amazon/common
This breaks up the two options provided by BlockDevices into separate
structs to allow only one of them to be used by the amazon-chroot
builder.
2016-09-03 09:58:45 -07:00
Chris Lundquist
defdd1ecf3 Merge remote-tracking branch 'origin/master' into dynamic-source-ami 2016-09-02 01:43:03 +00:00
Rickard von Essen
16158622fe Merge pull request #3836 from mahcsig/3833-incorrect-ssh-port
Issue 3833 - fix for port error in PR 3347
2016-09-01 20:52:56 +02:00
jasminSPC
d84b3af863 Fixed tests 2016-08-31 14:11:10 +02:00
jasminSPC
8f8907ee13 Merge remote-tracking branch 'upstream/master' into packer-builder-profitbricks 2016-08-31 13:56:51 +02:00
jasminSPC
5caa54acd7 Addressed all the comments 2016-08-31 13:55:11 +02:00
Rickard von Essen
ba629922c6 Merge pull request #3662 from ryansb/boost-spot-bid
(AWS Spot) Add 0.5 cents to discovered spot price
2016-08-27 03:18:59 +02:00
Ingo Gottwald
0c1051a017 GCE builder: Switch to google.DefaultClient (#3655)
* GCE builder: Switch to google.DefaultClient

This enables authentication through an authenticated gcloud tool.

* GCE builder: Add docs about auth mech precedence
2016-08-27 03:12:55 +02:00
Marc Siegfriedt
c1e129848c 3833 - fix for port in MR3347 2016-08-26 20:58:04 +00:00
Krzysztof Wilczynski
d01fb65dcf Fix. Use temporary_key_pair_name when specified. (#3739)
Fix: Use temporary_key_pair_name when specified.

This is to fix an issue where the temporary_key_pair_name configuration option
for amazon-ebs and amazon-instance builders would be ignored and replaced with
an automatically generated value using UUID, even when the option was explicitly
specified.

Remove space from the auto-generated SSH key-pair name.

Resolves #3736
2016-08-25 09:17:57 +02:00
Lamoni Finlayson
d02b106a16 Fix for issue #2972 - Implemented ssh_host for virtualbox builders (#3617) 2016-08-24 18:30:26 +02:00
Chris Lundquist
3cc8d35450 [dynamic-source-ami] fix old key name in error message 2016-08-21 00:58:01 +00:00
Chris Lundquist
b4d20706ce [dynamic-source-ami] add some very basic tests 2016-08-21 00:29:51 +00:00
Chris Lundquist
57e7a1a3e6 [dynamic-source-ami] fix lint error 2016-08-21 00:07:58 +00:00
Chris Lundquist
95afaa58ca [dynamic-source-ami] rename to source_ami_filter 2016-08-20 23:34:22 +00:00
Chris Lundquist
0e248f1516 [dynamic-source-ami] make most_recent work 2016-08-20 23:08:45 +00:00
Chris Lundquist
ec1abb9448 [dynamic-source-ami] proof of concept 2016-08-20 18:58:36 +00:00
Rickard von Essen
6cd7ad82bb Fixed dupliceted test 2016-08-19 14:34:24 +02:00
Rickard von Essen
3e1aed9a6f Enable to disable vnc password for VMware builder 2016-08-19 13:26:23 +02:00
Israel Shirk
f961ce701b Adds password protection for VNC on VMWare 2016-08-19 13:26:16 +02:00
Jeremiah Roth
9489c83f0f If the VM has more than one NIC, loop through until we find one that works (#3347) 2016-08-19 13:23:43 +02:00
mahcsig
832d45023b Re-introduce case sensitive vmx key functionality (#2707)
Add case sensitive vmx key functionality
2016-08-19 13:23:07 +02:00
Dan Tran
4ac6e2a08c Dont check for poweron command error to force retry at state check (#3195) 2016-08-19 13:21:50 +02:00
Charlie Vieth
6ce847e720 Do not add remotedisplay.vnc.ip to vmx data on ESXi
* The remotedisplay.vnc.ip vmx data key breaks ESXi, this commit prevents it
  from being automatically added during VNC configuration when using the ESX5
  driver.

* It can still be configured via the vmx_data section of the builder
  template

Signed-off-by: Sunjay Bhatia <sbhatia@pivotal.io>
2016-08-19 13:19:04 +02:00
Charlie Vieth
d14d62074e Add winrm functionality to vmware-iso builder (#3738)
* Use winrm_host, if provided, this allows packer to work in ESXi
environments without DHCP.

Signed-off-by: Charlie Vieth <cviethjr@pivotal.io>
2016-08-19 13:02:55 +02:00
crunk1
55b5a45ae4 Created googlecompute-export post-processor. Modified the googlecompute builder to pass a few configuration values to its resulting artifact. These values can then be used in googlecompute-export post-processor.
Added documentation and changed authentication stuff on temporary VM.
2016-08-15 14:36:26 -07:00
Toby Jaffey
37ef03c41c Use config StateTimeout for DigitalOcean unlock and off transitions. (#3444)
Use config StateTimeout for DigitalOcean unlock and off transitions.
When DigitalOcean's API is responding slowly, the hardcoded timeouts are too short.
2016-08-14 21:12:30 +02:00
Ben P
8ecbbe9037 backticks instead of $() for csh compatibility 2016-08-11 11:27:56 -07:00
Ben P
0d7937fce1 [docker] ls -A instead of * glob for copying paths 2016-08-11 18:03:48 +00:00
Jeremy Asher
6130b8588d remove check for AMIs when deleting vols
This removes the unnecessary check for AMIs before cleaning up volumes.
AMIs will exist on a successful run, but not when a build fails after
instance creation (during provisioning for example).  The following
check for instance being nil should be sufficient.
2016-08-08 14:16:43 -07:00
Eric Johnson
0e334e67be Merge pull request #3774 from evandbrown/google-external-ip-optional
builder/googlecompute: provision VM without external IP address
2016-08-02 15:39:01 -07:00
Evan Brown
a5c598264f builder/googlecompute: Support provisioning VM without external IP address
This change adds an `omit_external_ip` configuration property that, when true,
will cause no external IP address to be associated with the Google Compute
Engine VM provisioned to create an image. When using `omit_external_ip`, you
must also set the `use_internal_ip` configuration property to true.

Addresses #3296
2016-08-02 13:43:04 -07:00
Christopher Boumenot
ece0a78990 azure: tag all resources 2016-08-02 11:25:03 -07:00
jasminSPC
e1aaef1f53 Fixed unit tests 2016-08-01 13:30:28 +02:00
jasminSPC
a61716d4a4 Merge remote-tracking branch 'upstream/master' into packer-builder-profitbricks
# Conflicts:
#	Godeps/Godeps.json
2016-08-01 13:09:07 +02:00
jasminSPC
92e0f2bf4c Merge remote-tracking branch 'upstream/master' into packer-builder-profitbricks
# Conflicts:
#	Godeps/Godeps.json
2016-08-01 12:09:03 +02:00
Taliesin Sisson
1155c6d4d6 Use the correct fmt verb for log output 2016-07-31 19:46:38 +01:00
Taliesin Sisson
a87ad05866 Add support for ctrl, shift and alt keys.
Add support for using ctrl, shift and alt as key modifiers. So you can now achieve ctrl+c by using "<leftCtrlOn>c<leftCtrlOff>".

Updated documentation for new key stroke tokens.
2016-07-31 19:05:10 +01:00
Ali Hamidi
c6a527dc46 throw error if encrypted ami is shared 2016-07-29 15:01:24 -07:00
Ali Hamidi
1cecda639a add encrypted boot volume acceptance test 2016-07-29 15:01:24 -07:00
Ali Hamidi
902ae375b3 delete unencrypted snapshot 2016-07-29 15:01:24 -07:00
Ali Hamidi
53b3867c50 allow packer to create an encrypted copy of the AMI 2016-07-29 15:01:24 -07:00
Christopher Boumenot
871ca8c3d9 azure: Support for a user define VNET.
Two new configuration options have been exposed to allow users to specify
an existing virtual network: virtual_network_name and
virtual_network_resource_group_name.

 * virtual_network_name: name of the virtual network to attach a Packer VM
 to.

 * virtual_network_resource_group_name: name of the resource group that
 contains the virtual network.  This value is optional.  If the value is
 not specified, the builder queries Azure for the appropriate value.  If
 the builder cannot disambiguate the value, a value must be provided for
 this setting.

 * virtual_network_subnet_name: name of the subnet attached to the virtual
 network.  This value is optional.  If the value is not specified, the
 builder queries Azure for the appropriate value.  If the builder cannot
 disambiguate the value, a value must be provided for this setting.
2016-07-28 21:31:59 -07:00
Robert Heinzmann
3a700414ca Fix License check to work with licensed vmware player 2016-07-28 10:42:58 +02:00
Ricard Clau
acededfc6e tests actually test the floppies 2016-07-27 21:59:21 +01:00
Robert Tarrall
94bf981d3b Honor ssh_private_ip flag in EC2-Classic, not just VPC
VpcId will be nil in Classic, but we may still wish to ssh to the
instance's private IP address -- if for example we are using security
groups to block SSH access via the public IP.
2016-07-26 08:15:44 -06:00
Scott Crunkleton
7190fbeed8 Adding support for googlecompute startup scripts.
- Startup scripts can be provided through the instance creation metadata field 'startup-script'.
- Script log can be copied to a GCS location by setting the metadata field 'startup-script-log-dest'.
Added Retry method to googlecompute package.
Added GetSerialPortOutput to googlecompute Drivers.
Added StepWaitInstanceStartup (and associated test) which waits for an
instance startup-script to finish.
Changed the instance service account to use the same service account as the one provided in the Packer config template. It was the project default service account.

Tested googlecompute package with 'go test' and also performed builds
with a startup script and without a startup script.
2016-07-20 14:54:36 -07:00
Christopher Boumenot
97b1915d51 Update Azure dependencies
* azure-sdk-for-go to 3.1.0-beta
 * go-autorest to 7.0.7
 * import dgrijalva/jwt-go at 3.0.0
2016-07-20 14:21:40 -07:00
Christopher Boumenot
323dc70ed6 Merge remote-tracking branch 'origin/master' into pr-3680-update-azure-sdk 2016-07-20 12:08:28 -07:00
Christopher Boumenot
6e9ef1c6eb Use WithBaseURI 2016-07-20 11:23:51 -07:00
Christopher Boumenot
7d259ab098 Update Azure dependencies.
* azure-sdk-for-go to 3.1.0-beta
 * go-autorest to 7.0.7
 * dgrijalva/jwt-go to 3.0.0

Add the German cloud configuration.
Ensure the different cloud URLs are _actually_ used.
2016-07-20 10:47:46 -07:00
Christopher Boumenot
ddef181e76 Merge pull request #3724 from boumenot/pr-azure-lint
Azure: Lint issues
2016-07-19 12:31:23 -07:00
Chris Bednarski
c0b637b0c5 Merge pull request #3733 from envato/no-shutdown-behaviour-instance-backed
No shutdown behaviour instance backed
2016-07-19 01:49:05 -07:00
Christopher Boumenot
408fe9bc18 Lint issues 2016-07-15 22:42:49 -07:00
Christopher Boumenot
c575e60f67 Merge pull request #3693 from boumenot/pr-approvals
Update to an official version of Approvals
2016-07-15 21:34:24 -07:00
Christopher Boumenot
e33a325323 Use VerifyJSONStruct 2016-07-15 21:31:03 -07:00
Christopher Boumenot
c7262d6426 Ignore Created and Updated
The Azure response has changed, and is breaking the code's ability to
properly deserailize the response.
2016-07-15 21:06:03 -07:00
Christopher Boumenot
130cea91d4 Update to an official version of Approvals
The in-project version of Approvals has been moved to its own GitHub
project under the offcial umbrella.  This PR snaps to that version of the
code.an official version of Approvals

The in-project version of Approvals has been moved to its own GitHub
project under the offcial umbrella.  This PR snaps to that version of the
code.
2016-07-11 15:04:41 -07:00
jasminSPC
fc4c88dc6d Fixed tests 2016-07-08 19:19:19 +02:00
jasminSPC
dd8ce6a907 Merge remote-tracking branch 'upstream/master' into packer-builder-profitbricks 2016-07-07 10:29:25 +02:00
jasminSPC
d575cd62ec Cleaned up the code 2016-07-07 10:28:46 +02:00
Ricard Clau
172a1c7a57 add source ami to output 2016-07-07 00:05:59 +01:00
Vasiliy Tolstov
83f175cac7 builder/qemu: dont fail on communicator - none
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2016-07-07 00:49:23 +03:00
Chris Bednarski
ee5c5260a4 Merge pull request #3663 from liv3d/add_ap-south-1
Add support for ap-south-1 in AWS
2016-07-06 14:09:24 -07:00
Rickard von Essen
cd0620d1f8 Merge pull request #3673 from rickard-von-essen/prl-support-future-ver
Support future versions of Parallels by using the latest driver
2016-07-06 22:58:01 +02:00
Christopher Boumenot
16c1abf1d4 Fix slow unit tests. 2016-07-06 11:06:52 -07:00
Chris Bednarski
443ffd68f2 Added explicit error when SG is not working 2016-07-02 15:48:51 -07:00
Rickard von Essen
fb00d07d20 Support future versions of Parallels by using the latest driver
If the Parallels Desktop for Mac version is higher than the latest
Packer driver use the latest available driver. Before this Packer needed
to be updated with every new version of PD even if there was no change
to the driver.
2016-07-02 22:18:54 +02:00
Chris Bednarski
a20d979eba Merge pull request #3656 from mlosapio/master
Added a hook to query the security groups before launching the instan…
2016-07-01 17:01:42 -07:00
jasminSPC
e8be8d2f7b Added documentation
Removed unnecessary comments.
2016-07-01 14:28:29 +02:00
Dan Offord
4428079a68 Add support for ap-south-1 in AWS
Amazon recently announced support for ap-south-1 in Mumbai, adding this
to the list of known regions to Packer
2016-06-29 15:44:02 +01:00
Ryan S. Brown
c68ddef4e9 (AWS Spot) Add 0.5 cents to discovered spot price
Related to #2979 , in volatile spot markets the automatic price can
cause your instances to be evicted if the spot price rises. This change
adds one half a cent to your bid to protect against small amounts of
price volatility.
2016-06-29 07:00:21 -04:00
jasminSPC
df0298c9ae Packer Builder ProfitBricks 2016-06-29 04:35:41 +02:00
Christopher Boumenot
63edbd40ed Merge pull request #3659 from boumenot/pr-certificate-nil-ref
azure: handle non-OK responses for key vault
2016-06-28 17:42:25 -07:00
Christopher Boumenot
fed72ded0d azure: handle non-OK responses for key vault
Check the response when fetching a secret from KeyVault.  Any non-OK (200)
are considered to be an error.  This will provide a more informed error
message for the user.
2016-06-28 17:20:15 -07:00
Chris Bednarski
a65ff1db79 Merge pull request #3649 from curiositycasualty/if/issue-3592
Don't use invalid -q flag for qemu-img
2016-06-28 16:13:40 -07:00
Mike LoSapio
080806243e Added a hook to query the security groups before launching the instance - seems to catch the AWS eventual consistency nicely 2016-06-27 16:20:53 -04:00
Patrick Robinson
40bd45764c Only set InstanceInititatedShutdownBehavior on ebs instances 2016-06-27 10:28:54 +10:00
Isa
8e86308cb4 don't use invalid -q flag for qemu-img
fix lacking coma
2016-06-23 14:49:56 -07:00
Paul Meyer
163da48345 builder/azure-arm: Make tenant_id optional
Look up tenant id if not specified by the user
2016-06-23 10:23:09 -07:00
Paul Meyer
d3d9307b31 Create TODO for Azure builder 2016-06-21 09:51:38 -07:00
Paul Meyer
cb6db06d11 builder/azure: Delete readme
Duplicated in packer.io docs
2016-06-21 09:42:01 -07:00
Paul Meyer
ee441366eb builder/azure: Remove extra polling code for deployments 2016-06-20 14:22:01 -07:00
Christopher Boumenot
a010f80382 Check for nil when querying a certificate. 2016-06-16 09:45:07 -07:00
Chris Bednarski
ab9621ab7d Added aws shutdown_behavior to the changelog 2016-06-14 14:34:01 -07:00
Patrick Robinson
f361e1d894 Precompile regex 2016-06-14 14:29:10 -07:00
Patrick Robinson
b1d6d28a90 Add unit tests for shutdown behaviour 2016-06-14 14:29:10 -07:00
Patrick Robinson
a9f914ea97 Add shutdown_behaviour option
This means an instance will terminate upon shutdown.
2016-06-14 14:29:10 -07:00
Paul Meyer
a788ea4d43 azure/builder: fix token validity test 2016-06-10 09:58:38 -07:00
Christopher Boumenot
6dda6f77d6 Add resource_group_name to test cases. 2016-06-09 10:17:49 -07:00
Christopher Boumenot
353ce2f2a6 Merge pull request #3575 from mitchellh/pr-custom-image-url
Implement support for custom images.
2016-06-09 09:47:18 -07:00
Paul Meyer
0c79293dde azure-arm: Validate that resource_group_name is being set 2016-06-09 01:00:23 -07:00
owjjh
658fadbc53 changing if conditionals to be ! instead of == false 2016-06-07 09:21:43 -04:00
owjjh
d489ce9904 make fmt run 2016-06-06 14:37:09 -04:00
owjjh
de5b69a8df Adding ability to skip region validation when using AWS 2016-06-06 14:17:12 -04:00
Christopher Boumenot
5950d3d92b Implement support for custom images. 2016-05-27 21:18:20 -07:00
Chris Bednarski
d6b9978d0e Merge pull request #3565 from imduffy15/master
Allow configurable VNC bind IP for VMware builders
2016-05-25 11:27:38 -07:00
Chris Bednarski
e13b7fbfcd Merge pull request #3566 from imduffy15/virtualbox
Allow configurable VRDP bind IP for VirtualBox builders
2016-05-25 11:27:29 -07:00
Ian Duffy
fa273f3bea Allow configurable VNC bind IP for QEMU
This commit allows for a user configurable VNC bind IP to be used for
QEMU.

By default this will be 127.0.0.1, alternatively, a user can use
0.0.0.0 which will bind to all interfaces.

This pull request should satisfy concerns of #3570 and #3559. It is
also in-line with the functionality provided by #3566 and #3565

Signed-off-by: Ian Duffy <ian@ianduffy.ie>
2016-05-25 10:10:12 +01:00
Chris Bednarski
42a9d9d5a1 Merge pull request #3352 from chalfant/disable-stop-instance
Disable stop instance
2016-05-24 15:40:54 -07:00
Ian Duffy
9ec319e296 Allow configurable VNC bind IP for VirtualBox builders
Signed-off-by: Ian Duffy <ian@ianduffy.ie>
2016-05-23 14:24:16 +01:00
Ian Duffy
0327f6c935 Allow configurable VNC bind IP for VMware builders
Signed-off-by: Ian Duffy <ian@ianduffy.ie>
2016-05-23 14:07:03 +01:00
Brian Candler
873760e69e Clarify how to run with logs if qemu fails to start (#3561) 2016-05-20 14:25:52 -07:00
Chris Bednarski
24cf28d4b6 Merge branch 'yoctocloud-accelerator' 2016-05-19 22:54:19 -07:00
Chris Bednarski
bff939b373 Added comment on why we need to open /dev/kvm before using it 2016-05-19 22:53:53 -07:00
Chris Bednarski
45e6a238ff Merge pull request #3050 from andqui/master
vmware-iso-builder: Fix for non consequential if statement (failing ESXi iso builds).
2016-05-19 17:43:49 -07:00
Christopher Boumenot
c1e7caf53c Validate capture variables to obey Azure's rules. (#3537) 2016-05-18 17:25:57 -07:00
Gonzalo Peci
9c9f8cd451 Add winrm functionality to null provisioner (#2525)
* Add new functions to communicator helper to return the user, password, host, based on the communicator used.

This implementation can help then generalize the provisioeners later on.

* Update null builder checks to utilize the new functions and check for ANY hostname or user or password

* Update builder to user any hostname
2016-05-18 17:22:53 -07:00
Vasiliy Tolstov
0f638f9111 builder/qemu: add simple kvm/tcg autodetection
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2016-05-18 15:38:38 +03:00
Sean Chittenden
ef42021f8f Fix unit tests, broken in #3549. (#3548) 2016-05-17 15:42:15 -07:00
Chris Bednarski
5a5d59c2bd Merge pull request #3547 from sean-/f-debug-boot-commands
Debug boot commands for QEMU and Parallels
2016-05-17 14:32:09 -07:00
Christopher Boumenot
83e6044595 Documentation for the Azure builder. (#3518) 2016-05-17 14:15:24 -07:00
Sean Chittenden
98bae9c98e
Pause between boot_commands when debugging a QEMU build
When debugging a build (or maintaining an existing packer template), teach `packer build -debug` how to step through individual `boot_command`s in order to triage the packer template.
2016-05-17 17:14:50 -04:00
Sean Chittenden
d0fd698fb5
Pause between boot_commands when debugging a Parallels build
When debugging a build (or maintaining an existing packer file), teach `packer build -debug` how to step through individual `boot_command`s in order to triage the packer template.
2016-05-17 17:10:10 -04:00
Christopher Boumenot
5484b9c7d0 Do not use a communicator for unit tests. (#3539) 2016-05-17 13:53:01 -07:00
Sean Chittenden
3ca4782b56
Pause between boot_commands when debugging a Virtualbox build
When debugging a build (or maintaining an existing packer file), teach `packer build -debug` how to step through individual `boot_command`s in order to triage the packer file.
2016-05-17 04:03:45 -04:00
Sean Chittenden
9b3f8a4be9
Pause between boot_commands when debugging a VMware build
When debugging a build (or maintaining an existing packer file), teach `packer build -debug` how to step through individual `boot_command`s in order to triage the packer file.

```
==> vmware-iso: Typing the boot command over VNC...
==> vmware-iso: Pausing after run of step 'boot_command[0]: <enter><wait>'. Press enter to continue.
==> vmware-iso: Pausing after run of step 'boot_command[1]: <enter><wait>'. Press enter to continue.
==> vmware-iso: Pausing after run of step 'boot_command[2]: freebsd-vagrant<enter><wait>'. Press enter to continue.
==> vmware-iso: Pausing after run of step 'boot_command[3]: <down><spacebar>'. Press enter to continue. ^C
```
2016-05-17 03:50:00 -04:00
Chris Bednarski
2f0e1218dc Move regexp to package scope so it will be validated by the compiler instead of at runtime 2016-05-13 15:37:25 -07:00
Peter Schultz
a99a417db9 builder/googlecompute: validate image_family 2016-05-13 15:24:02 -07:00
Peter Schultz
8546aafec5 builder/googlecompute: support image family 2016-05-13 15:24:02 -07:00
Christopher Boumenot
d40e115ad7 Only cleanup if necessary. (#3517)
Do not delete the resource group as part of cleanup unless it exists.
2016-05-09 14:19:55 -07:00
Christopher Boumenot
a91156b134 Dump Azure configuration values.
Dump the top level variables in the config object. Any values with
'secret' or 'password' in the name are masked.
2016-05-06 23:14:18 -07:00
Chris Bednarski
5ed3c8d563 Updated license information to reference builder/azure 2016-05-06 20:32:18 -07:00
Christopher Boumenot
c7018a00c8 Add support for Windows to Azure.
This is last merge that will happen from the github.com/Azure/packer-Azure
repository.  All development is being over to this repository.

The biggest change in this merge is support for Windows.  There are a few other
fixes as well.

 * If the user cancels the build, clean up any resources.
 * Output a reasonable build artifact.
 * Log requests and responses with Azure.
 * Support for US Government and the China clouds.
 * Support interrupting long running tasks.
 * Allow the user to set the image version.
 * Device login support.
2016-05-05 13:40:17 -07:00
Christopher Boumenot
2d1347c1ec Insert Packer's version into the User Agent. (#3465) 2016-05-05 13:10:55 -07:00
Hao
5139b853fa privilege enabled docker container (#3475)
Issue #2724
2016-04-29 19:12:20 -07:00
Billie H. Cleek
165ec694ab fix docker builder with ansible provisioner
Refactor the docker builder so that it does not expect output from the
container to be strictly line oriented or even text, because SFTP, used by
Ansible, is a binary protocol. Since `docker exec` was introduced in 2014,
remove support for older versions of docker that required using `docker
attach`. The old notes in the docker builder referring to specific issues have
all been resolved or else closed because they could not be reproduced.
2016-04-27 13:54:40 -07:00
Christopher Boumenot
bbf286dcbe Fix go fmt issues. (#3463) 2016-04-22 10:44:54 -07:00
Chris Bednarski
d7cfd5d01c Remove explicit boolean comparison 2016-03-17 14:14:03 -07:00
kopernikus
84bd2ff754 option to keep the VM registered with esxi 2016-03-16 23:17:35 +01:00
Chris Chalfant
601b833aaa style and documentation changes per PR review comments 2016-03-15 08:01:20 -04:00
Chris Bednarski
133048e86e Update LICENSE notice 2016-03-14 20:08:36 -07:00
Chris Bednarski
17c365e45f Added MIT license 2016-03-14 20:08:35 -07:00
Chris Bednarski
5b5888b230 Initial import of Microsoft contributed code 2016-03-14 20:08:35 -07:00
Chris Chalfant
8163e16e02 gofmt code 2016-03-14 13:49:42 -04:00
Chris Chalfant
72a7123a0b Add option to tell packer not to stop the instance
It is sometimes desirable to sysprep a windows machine before creating
an EC2 image. The AWS-approved way to do this is to run
ec2configservice.exe -sysprep and let ec2configservice shut down the instance.
This change adds an option to disable the stop instance call issued by packer
so that the user can control when the machine is stopped.
2016-03-14 12:54:03 -04:00
Chris Bednarski
1b1bbb604e Merge branch 'googlecompute-disk-type' of https://github.com/meatballhat/packer into f-google-disk-type 2016-03-10 14:51:30 -08:00
Vasiliy Tolstov
e5276b31a3 fix assign to driveArgs
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2016-03-01 21:15:51 +00:00
Chris Bednarski
fee00baf6a Revert "close #3192"
This reverts commit 3b8f0023e5.
2016-02-29 13:51:47 -08:00
Vasiliy Tolstov
3b8f0023e5 close #3192
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2016-02-26 14:05:43 +00:00
Rickard von Essen
46f74d8347 Parallels: Support relative paths in output_directory
Fixes #3238
2016-02-21 16:52:51 +01:00
Rickard von Essen
88a84f5fb2 Merge pull request #3209 from rickard-von-essen/openstack-get-password
Get admin password of booted instance when using WinRM
2016-02-20 10:29:38 +01:00
Chris Bednarski
d0ab8658bc Create a session for EC2RoleProvider; prevents crash; fixes #3123 2016-02-19 17:10:05 -08:00
Nathan Mische
335a2010bf Moving SSH IP version validation to prepare function. 2016-02-17 10:52:29 +01:00
Nathan Mische
8396a2db1e Adding ability to select IP version for SSH connections to OpenStack instances. Addresses #3047 2016-02-17 10:28:18 +01:00
Rickard von Essen
32bbe55f2b Merge pull request #3208 from rickard-von-essen/openstack-messages-ssh
OpenStack: Change some log messages about SSH to connect.
2016-02-16 11:17:03 +01:00
Rickard von Essen
5368697413 Get admin password of booted instance when using WinRM
Fixes #2663
2016-02-16 11:06:22 +01:00
Rickard von Essen
c3bc87cb71 OpenStack: Change some log messages about SSH to connect. 2016-02-16 10:55:21 +01:00
James Bishopp
bd8fb014c4 Removed ssh_key_path
- removed backwards compatibility code
- ensured key usage came from SSHPrivateKey configuration
- changed tests to use private_key
2016-02-12 17:24:42 -08:00
Vasiliy Tolstov
feee19e4ed file provisioner improvements
* allow specify source/destination as dir
* allow specify many files as source

Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2016-02-12 11:48:28 -08:00
Dan Sedlacek
279555b8e1 Added ability to see what SSH Port packer generated in template data 2016-02-12 11:39:08 -08:00
Chris Bednarski
4458de4ea0 Reformat 2016-02-11 23:53:40 -08:00
Chris Bednarski
765ec5cf39 Merge pull request #2962 from dave2/postprocess_amazon_ova
New post-processor: amazon-import
2016-02-11 23:38:15 -08:00
Ian Duffy
c4b64eb2c7 Closes #2637 - VRDP support for the virtualbox plugin
Signed-off-by: Ian Duffy <ian@ianduffy.ie>
2016-02-11 14:38:24 -08:00
Matt Morrison
daf57c7632 Add tests and documentation for subnetwork attribute 2016-02-11 21:54:48 +13:00
Matt Morrison
942aaa7a85 Add support for Google subnetworks. Closes #3062. Fixes an issue with how packer populates instances metadata. Closes #3181 2016-02-11 17:31:46 +13:00
Andrew Starr-Bochicchio
6d31470757 Look up snapshot ID based by Droplet, not user. 2016-02-09 11:29:06 -05:00
Rickard von Essen
e1c470db80 Merge pull request #3135 from rickard-von-essen/issue-2526
OpenStack: convert SSH keys from BER to DER with OpenSSL, work around…
2016-02-09 13:10:04 +01:00
Rickard von Essen
6855c480ad OpenStack: convert SSH keys from BER to DER with OpenSSL, work around for GH-2526.
Try to parse the temporary keypair received from OpenStack, if it fails
try to use OpenSSL to convert it from BER encoding to DER.
2016-02-09 12:50:00 +01:00
Vasiliy Tolstov
ec4e95493d builder/digitalocean: add ability to specify api url
This is useful in case of using DigitalOcean compatibility api hosting.

Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2016-02-06 14:15:32 +00:00
Chris Bednarski
6c35f44104 Merge pull request #3129 from vtolstov/wait
builder/qemu: allow to specify time.Duration in special <wait> command
2016-02-04 17:16:07 -08:00
Chris Bednarski
358b5c62e2 Merge pull request #3143 from ThatGerber/iam-roles
IAM CLI Profile/Assume Role Support
2016-02-04 16:47:09 -08:00
Christopher Gerber
e7711c31ea Wrong function to convert int to string. 2016-02-04 16:18:57 -06:00
Christopher Gerber
b75d561c56 Fixes more windows testing errors.
"constant 9999999999 overflows int" running test on CI server. Replaced with timestamp to unixnano
2016-02-04 16:12:18 -06:00
Christopher Gerber
d25ba245f4 Fixes bytes to string issues in Windows build. 2016-02-04 16:05:49 -06:00
Christopher Gerber
a6aefa859f Fixes issue in build where multiple processes were trying to access the same file. 2016-02-04 15:39:54 -06:00
Christopher Gerber
6c3e0daf24 Added tests. Updated CLIConfig to pass tests. 2016-02-04 14:56:22 -06:00
Rickard von Essen
2155576fd6 Merge pull request #2751 from rickard-von-essen/prl_deprecations
Remove deprecated parallels_tools_host_path and guest_os_distribution
2016-02-04 20:21:59 +01:00
Chris Bednarski
e6b6f0b020 Merge pull request #2539 from fnoeding/amazon-ebs-fix-ec-user-data-encoding
amazon builder: always base64 encode ec2 user data
2016-02-03 16:47:01 -08:00
Christopher Gerber
f1ae2a2b5a Moved assume credentials to CLIConfig. Added new functions and methods to CLIConfig. Ran gofmt. 2016-02-03 15:53:01 -06:00
Chris Bednarski
951a7e8ad3 Merge pull request #2596 from manicai/master
Fix for #2496 AWS credentials for instance based AMIs
2016-02-03 12:45:51 -08:00
Christopher Gerber
4cf9e36085 Changes credential/config file opener to use homedir instead of HOME environmental variable. 2016-02-03 10:43:48 -06:00
Chris Bednarski
24dc798cfb Revert "Prevalidate Hardware Specs on Linux"
This reverts commit eda84cb2d3.
2016-02-02 12:41:43 -08:00
Chris Bednarski
6504f4f777 Revert "Only validate vmware resources on local hosts"
This reverts commit f01578c91e.
2016-02-02 12:41:42 -08:00
Chris Bednarski
7ad2104c7f Revert "Correctly call prepare function in test"
This reverts commit 6e8bfd3ce9.
2016-02-02 12:41:37 -08:00
Christopher Gerber
7975c5e336 Move CLIConfig instantiation inside of ProfileName check. 2016-02-02 08:36:36 -06:00
Vasiliy Tolstov
2104fcec69 builder/qemu: allow to specify time.Duration in special <wait> command
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2016-02-02 09:13:37 +00:00
Christopher Gerber
883acb18fa IAM Role Switching
Adds initial IAM Role Switching support and support for AWS CLI Credential and Config files.

See: https://github.com/mitchellh/packer/issues/3109
2016-02-01 18:55:59 -06:00
Rickard von Essen
fd6282529c Remove deprecated parallels_tools_host_path and guest_os_distribution 2016-02-01 12:25:01 +01:00
Chris Bednarski
2dd8ad9449 Merge pull request #2577 from cybercom-finland/os_source_image_name
Support source_image_name in OpenStack builder
2016-01-28 15:40:13 -08:00
Chris Bednarski
4490826a17 Merge pull request #3040 from kimor79/3011
Add mount_partition option to amazon-chroot builder
2016-01-25 22:08:07 -08:00
Chris Bednarski
ffb85f6ea5 Merge pull request #3096 from grubernaut/f-resource-limits
Prevalidate Hardware Specs on Linux
2016-01-25 21:06:14 -08:00
Jake Champlin
6e8bfd3ce9 Correctly call prepare function in test 2016-01-25 12:54:15 -05:00
Jake Champlin
f01578c91e Only validate vmware resources on local hosts
Disable resource validation when `remote_type` is specified
2016-01-25 12:01:56 -05:00
Vasiliy Tolstov
d96283e475 qemu: allow to use live iso without cache
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2016-01-25 10:44:42 +00:00
Chris Bednarski
b7ba9a507d Merge pull request #3041 from msabramo/GH-3038_openstack_builder_auto_set_image_type_to_image
openstack builder: Set image_type to "image"
2016-01-21 18:39:08 -08:00
Jake Champlin
eda84cb2d3 Prevalidate Hardware Specs on Linux
Prevalidates hardware resources on Linux platforms for Virtualbox and
VMware builders. This is currently only available on Linux, as enabling
for both Darwin and Windows platforms, relies on cgo bindings that would
prevent effective cross-compilation.

Packer will now fail to build and validate templates if the template is
requesting that the VM to be created would allocate more system
resources than the host system has available.

This _however_ doesn't catch parallel builds that overflow the hosts
resources, will probably still need a better error message for VM's
failing to boot in that case.

Example Outputs:

```
$ $GOPATH/bin/packer build -debug ./vmware-iso.json
Debug mode enabled. Builds will not be parallelized.
vmware-iso output will be in this color.

2 error(s) occurred:

* Unavailable Resources: RAM - Requested - 204800000MB - Available 21721MB
* Unavailable Resources: Disk - Requested - 4000000000MB - Available 76701MB
```

```
$ $GOPATH/bin/packer build -debug ./vbox-iso.json
Debug mode enabled. Builds will not be parallelized.
virtualbox-iso output will be in this color.

2 error(s) occurred:

* Unavailable Resources: RAM - Requested - 10240000MB - Available 21721MB
* Unavailable Resources: Disk - Requested - 1000000000MB - Available 76701MB
```
2016-01-21 18:19:11 -05:00
Chris Bednarski
9358e8c355 Merge branch 'hotfix/rearrange_vmx_cleanup' of https://github.com/israelshirk/packer into b-2709 2016-01-21 13:36:02 -08:00
Chris Bednarski
1a5d5acea4 Merge pull request #2737 from jen20/ebs-volume-tags
Tag EBS volumes with volume_tags in EBS builder
2016-01-21 13:29:49 -08:00
Chris Bednarski
db0e098800 Merge pull request #2750 from rickard-von-essen/issue-2743
Fixes #2743: Change log messages for step_forward_ssh
2016-01-21 13:28:44 -08:00
Chris Bednarski
d6c02f5aeb Change test to use something that looks like a real region code 2016-01-21 11:29:39 -08:00
Chris Bednarski
d6fad30162 Merge pull request #2955 from yayugu/feature/ami_product_codes
Add AMI Product Codes modification for amazon-ebs & amazon-chroot
2016-01-20 09:13:09 -08:00
Ryan Uber
7732cf45a0 builder/googlecompute: fix image name defaults 2016-01-19 11:12:19 -08:00
Anders Quist
077f9621f2 Merge branch 'master' of https://github.com/mitchellh/packer 2016-01-15 08:11:35 +01:00
Chris Bednarski
ab721b7cb1 Merge pull request #2898 from markpeek/http-refactor
Refactor http server config into common
2016-01-14 17:10:17 -08:00
Chris Bednarski
e6f1ea9ab2 Merge pull request #2911 from jtslear/endless-loop
vmware-iso-builder: Corrects logic checking destroy
2016-01-14 15:00:34 -08:00
Chris Bednarski
61aea5f123 Merge pull request #2912 from esemplare/esxi_ssh_key_support
Add support for SSH Key Authentication with ESX builder
2016-01-13 14:33:10 -08:00
Chris Bednarski
7b468af6b8 Merge pull request #2939 from bitrise-io/digitalocean_timeout_increase
increased DigitalOcean unlock wait timeouts
2016-01-13 14:11:09 -08:00
Chris Bednarski
b3c1fbc092 Merge pull request #3009 from msabramo/openstack_WaitForImage_retry_on_404
openstack: WaitForImage: treat 404 as retryable
2016-01-13 14:03:00 -08:00
Chris Bednarski
f1d6fbb8c4 Merge pull request #3030 from caiush/gce-external-static-ip
Added support for GCE external static IPs
2016-01-12 19:36:32 -08:00
Chris Bednarski
1ab5fc8ca5 Merge pull request #3037 from ColinHebert/subnet_az_discovery
Add auto discovery of AZ based on the subnet
2016-01-12 19:35:54 -08:00
Chris Bednarski
0cad32c696 Move region list into a function so we can re-use it in tests 2016-01-12 19:03:21 -08:00
Chulki Lee
20c0f6b02b fix doc: wrong function name 2016-01-11 13:06:34 -08:00
Chulki Lee
1aa24035fc add ap-northeast-2: Asia Pacific (Seoul) 2016-01-11 13:05:18 -08:00
Chulki Lee
7018517374 one region per line, sorted 2016-01-11 13:04:35 -08:00
Chulki Lee
3f0795b23c sort regions by name 2016-01-11 13:04:00 -08:00
Chulki Lee
7f3f5f4bfa add tests for all ami regions 2016-01-11 13:02:38 -08:00
Anders Quist
23246c01cf Fix for non consequent if statement (failing ESXi iso builds). 2016-01-10 18:34:21 +01:00
Marc Abramowitz
3e0914b6a2 openstack builder: Set image_type to "image"
so that built images are treated as images and not as snapshots.

Fixes: GH-3038
2016-01-06 15:00:31 -08:00
Kimo Rosenbaum
09543fc4e7 Add mount_partition to amazon-chroot builder to specify a partition other than 1 2016-01-06 11:35:01 -08:00
Colin Hebert
48d242a8f8 Use pointers in the AWS API 2016-01-06 08:12:20 +01:00
Colin Hebert
9385a277c6 Fix API calls and remove az detection in chroot 2016-01-06 08:02:29 +01:00
Colin Hebert
e4930e7b57 Merge branch 'master' into subnet_az_discovery 2016-01-06 07:43:03 +01:00
Caius Howcroft
069c3c21b1 Added support for GCE external static IPs 2015-12-24 19:15:41 -06:00
Marc Abramowitz
4b9c4cc3e6 openstack: WaitForImage: treat 404 as retryable
Addresses comment at
https://github.com/mitchellh/packer/issues/1415#issuecomment-165739549
2015-12-18 10:37:31 -08:00
Marc Abramowitz
b08b88b019 openstack: Add maxNumErrors for WaitForImage
This partly addresses comment at
https://github.com/mitchellh/packer/issues/1415#issuecomment-165739549
2015-12-18 10:27:18 -08:00
Chris Bednarski
e009d3fb18 Merge pull request #3005 from msabramo/more_informative
Make the OpenStack builder more informative
2015-12-17 23:52:06 -05:00
Marc Abramowitz
39d6eda370 Make the OpenStack builder more informative
about the servers, images, and keypairs that it's dealing with.
2015-12-17 11:12:52 -08:00
Andrew Starr-Bochicchio
2212125f46 Return DigitalOcean image ID in output. 2015-12-15 12:00:04 -05:00
Chris Bednarski
00ea5ff7de Merge pull request #2982 from minimum2scp/features/support-googlecompute-preemptible
Added support of preemptible instance in googlecompute builder
2015-12-14 14:34:09 -08:00
Dan Buch
81fed4556f Merge remote-tracking branch 'upstream/master' into googlecompute-disk-type 2015-12-08 19:19:13 -05:00
Ian Duffy
b57140da47 Add support for using cloud-init via a ConfigDrive
Signed-off-by: Ian Duffy <ian@ianduffy.ie>
2015-12-08 12:45:26 +00:00
YAMADA Tsuyoshi
18d79cfb3d added test 2015-12-05 15:48:07 +09:00
YAMADA Tsuyoshi
afd314959b supported preemptible in googlecompute builder 2015-12-05 05:13:35 +09:00
David Zanetti
418da16991 Track the import task and report AMIs created from it 2015-11-23 15:55:09 +13:00
Yuya YAGUCHI
9c8405b2c6 Add AMI Product Codes modification for amazon-ebs & amazon-chroot 2015-11-19 18:28:04 +09:00
Viktor Benei
eda2c9c605 actually make it 20 mins 2015-11-14 14:14:33 +01:00
Viktor Benei
7e568644a5 increased DigitalOcean unlock wait timeouts 2015-11-14 12:11:44 +01:00
Andy Williams
d36b653d3f Make DigitalOcean artifact ID match AWS format
The Vagrant post processor expects the DO artifact ID to look like an
AWS artifact ID (region_id:snapshot_id). This commit makes the DO
artifact Id() function output this format.
2015-11-08 14:38:56 -05:00
michael
499bd5a362 Add support for SSH Key Authentication with ESX builder 2015-11-03 19:08:35 -08:00
John T Skarbek
cf4a19a304 vmware-iso-builder: Corrects logic checking destroy
* I suspect the logic written for checking if the vm has been destroyed is incorrect.  The test will come back from the esx server indicating that the vm is gone as it should, but the logic I believe is reversed so we never hit the break in the if statement
* Feedback is MORE than welcome
2015-11-03 14:49:53 -05:00
Mark Peek
7f149e595d Refactor http server config into common 2015-11-01 14:45:47 -08:00
Mark Peek
31dd989e2e Add qcow2 shrink/compress tests for #2748 2015-10-31 18:15:19 -07:00
Mark Peek
c2fd83e04c Merge pull request #2748 from vtolstov/qcow2
add shrink step for qcow2 image format
2015-10-31 18:13:04 -07:00
Mark Peek
0c8a83e9e7 Merge pull request #2895 from higebu/fix-typo
Fix #2892: vmware-iso builder fix mapstructure typo
2015-10-31 11:11:13 -07:00
Mark Peek
ca19688316 aws: fix test breakage due to upstream breaking change #2891 2015-10-31 11:04:50 -07:00
Yuya Kusakabe
07079a5905 Fix #2892 2015-10-31 19:32:40 +09:00
Luke Amdor
8682dec178 aws: build after upstream breaking change
see 1a69d06935
2015-10-30 13:58:56 -05:00
Vasiliy Tolstov
8e1cc16ab5 add convert step for qcow2 image format
https://ext4.wiki.kernel.org/index.php/Ext4_VM_Images does not
recommends to dd zero file and deletes it, but in case of enabling
discards and qcow2 image we can recreate qcow2 file with less used
space.
Also qemu-img able to enable compression for qcow2 files, that
sometimes may be useful because it natively supported by qemu.

Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2015-10-29 12:27:46 +00:00
Mark Peek
eb15536041 Merge pull request #2774 from btd/btd-patch-1
Fix AMI creation - replace not allowed character , and add allowed .
2015-10-26 22:00:16 -07:00
Mark Peek
4e1e9b788a Merge pull request #2845 from abridgett/feature/spot_price_zero
spot_price of "0" to mean on demand
2015-10-26 21:51:44 -07:00
Mark Peek
581ab9f4f5 Merge pull request #2849 from markpeek/iso-cleanup
Refactor builder ISO options
2015-10-26 21:43:59 -07:00
Mark Peek
c3d77dc5a1 Fix unintended BC issues in ISO option refactoring 2015-10-26 17:39:48 -07:00
Mark Peek
ba7814b0ed Merge pull request #2846 from markpeek/packer-tmp
Create docker temp files under packer.d when TMPDIR is not set
2015-10-26 17:09:22 -07:00
Adrian Bridgett
3257b26fa7 one more place to check SpotPrice 2015-10-26 10:20:49 +00:00
Mark Peek
0d2fa223f2 builder/vmware-esxi: hide password in ovftool command 2015-10-23 16:51:03 -07:00
Mark Peek
9d0c443ca2 builder/vmware-esxi: Add format validation and step_export tests 2015-10-23 16:50:14 -07:00
Yuya Kusakabe
699c673536 builder/vmware-esxi: Add step_export
If `format` option is configured, packer exports the VM with ovftool.

website: Document about OVF Tool and `format` option.

post-processor/vsphere: Enable to use `mitchellh.vmware-esx` artifact type and OVF and OVA formats, fixes #1457.
2015-10-23 09:00:53 +09:00
Mark Peek
cdcffecc2d Refactor builder ISO options
The ISO builders (parallels, qemu, virtualbox, and vmware) had too
much common code which needed to be maintained separately. This change
moves that code to a common ISO configuration.
2015-10-20 16:27:47 -07:00
Brian Dwyer
a563944b58 Fix #2695: Prevent duplicate ISO download for multi-builder builds
Add extension to VMware ISO builder to bring in sync with
Virtualbox ISO builder
2015-10-20 12:54:04 -07:00
Mark Peek
e9657e6a9f Merge pull request #2642 from oliviertremblay/master
Make TargetPath customizable
2015-10-20 12:11:13 -07:00
Mark Peek
bc0f438db0 Use alternate temp directories for docker
The temporary directories will be created under the packer config
directory. Setting PACKER_TMP_DIR will override this path.
2015-10-20 11:34:14 -07:00
Denis Bardadym
25e2ff7b85 Fix not allowed comma, add all allowed special characters 2015-10-19 13:41:30 +03:00
Mark Peek
6f5c64db41 Merge branch 'use-default-volumesize' 2015-10-18 13:04:41 -07:00
Mark Peek
a9716a4dc7 Merge pull request #2797 from jen20/improve-aws-instance-builder-error
Add suggestion to AWS Instance builder error message
2015-10-18 12:14:03 -07:00
Rickard von Essen
40355c1d40 Merge pull request #2839 from rickard-von-essen/issue-2836
Fixes #2836 - Use "/Applications/Parallels Desktop.app" as fallback…
2015-10-18 20:48:18 +02:00
Mark Peek
fc39f07ecc Add EbsOptimized to RequestSpotInstances (#2806) 2015-10-18 11:39:36 -07:00
Mark Peek
edda3de677 Merge pull request #2806 from abridgett/feature/add_ebs_optimized_support
Add ebs_optimized support
2015-10-18 11:31:50 -07:00
Mark Peek
c48548b3bb go fmt 2015-10-18 11:13:09 -07:00
Mark Peek
f6c7e3740f Don't create EBS block device if VirtualName is specified 2015-10-18 11:05:21 -07:00
Mark Peek
914e78f602 builder/amazon/common: go fmt 2015-10-18 11:00:05 -07:00
Mark Peek
581c3574f6 Merge pull request #2672 from lightpriest/b-aws-ebs-block-device
Fix and refactor block device mapping builder
2015-10-18 10:56:53 -07:00
Rickard von Essen
4015c1789b Fixes #2836 - Use "/Applications/Parallels Desktop.app" as fallback app path. 2015-10-16 19:57:39 +02:00
Seth Vargo
e863dbe100 Revert "Merge pull request #2807 from markpeek/markpeek-docker-tmpdir"
This reverts commit 31d3678814, reversing
changes made to a3a7c974d0.
2015-10-15 14:31:13 -04:00
Rickard von Essen
141dcd5c03 Fixes #2828: parallels prlctl_post don't interpolate values. 2015-10-15 09:28:29 +02:00
Dan Buch
cac93d311c builder/googlecompute: accept disk type, default pd-standard 2015-10-13 20:18:26 -04:00
Chris Bednarski
f01956405b Merge pull request #2654 from mitchellh/b-xmlpath
Update dependency to an SSL-enabled path; this was migrated from launchpad to github
2015-10-12 16:39:35 -07:00
Eric Johnson
96d522fb64 Merge pull request #2811 from sparkprime/verbatim_account
account_file can be verbatim JSON string
2015-10-12 15:57:52 -07:00
Chris Bednarski
ff6d448886 Merge pull request #2814 from mitchellh/b-2793-repro
Add a test case to validate download file size when downloading from docker
2015-10-12 13:38:52 -07:00
Mark Peek
e5a713ff01 Alternative fix for #2641: make random script name actually random 2015-10-11 13:31:09 -07:00
Mark Peek
45829c30e5 builder/amazon/*: fix go vet 2015-10-11 12:18:23 -07:00
Chris Bednarski
5eddaa77bf Corrected sprintf formatting in error messages 2015-10-08 17:43:54 -07:00
Chris Bednarski
cc153aa71f Added a test to verify byte size for larger files downloaded from docker 2015-10-08 17:15:27 -07:00
Chris Bednarski
8ff5c07d0c Add a new packer template for testing large file downloads 2015-10-08 16:37:14 -07:00
Dave Cunningham
1fea962a3a account_file can be verbatim JSON string 2015-10-08 02:40:18 -04:00
Mark Peek
31d3678814 Merge pull request #2807 from markpeek/markpeek-docker-tmpdir
Workaround docker-machine shared folder mapping issue
2015-10-07 14:14:02 -07:00
Mark Peek
77bfd1de2e Workaround docker-machine shared folder mapping issue
When using docker-machine on a Mac only the /Users folder is shared with
the VM. Uploads fail since the normal tmpdir is not shared. This change
uses the local packer directory (usually when run in the users home
folders) allowing it to work without setting TMPDIR explicitly. A better
fix would be to use the docker API directly but that would force users
to use docker API version 20+.
- fixes #901, fixes #1752, fixes #2436, fixes #2675, fixes #2697.
2015-10-07 13:29:53 -07:00
Mark Peek
a3a7c974d0 Merge pull request #2422 from vtolstov/qemu
fix qemu driver and builder
2015-10-06 21:30:38 -07:00
Adrian Bridgett
da771c469e spot_price of "0" to mean on demand
this helps avoid duplicating packer templates just to select
spot instances or not
2015-10-06 22:13:17 +01:00
Adrian Bridgett
8349e22df9 Add ebs_optimized support 2015-10-06 21:36:21 +01:00
James Nugent
b60e1fd862 Add suggestion to AWS Instance builder error message
A common cause of the failure of the bundle volume step is missing the
ec2-bundle-vol command on the target instance. This commit adds a note
about this to the error message produced as Packer output if the
bundling step fails (it is already in the documentation).
2015-10-02 17:06:33 -04:00
Orivej Desh
46d687d5ad Make ssh_host_port_max an inclusive bound to agree with documentation 2015-09-29 03:09:38 +00:00
Rickard von Essen
9cf99289c5 Fixed GCE builder after dependency change.
See
4af91da601
2015-09-20 10:14:07 +02:00
Israel Shirk
c81a486f34 Rearranges vmware builders to put compaction before VMX finalization to avoid stomping VMX changes 2015-09-18 07:51:46 -06:00
Rickard von Essen
e4dc543cae Fixes #2743: Change log messages for step_forward_ssh
Changed the log messages and changed the m name of the
VirtualBox builder NAT rule name from packerssh to
packercomm.
2015-09-17 13:43:08 +02:00
Rickard von Essen
3f14b9d984 Merge pull request #2731 from legal90/prl-compact-disk
Parallels: Add "CompactDisk" build step
2015-09-16 14:03:31 +02:00
Rickard von Essen
b528811540 Merge pull request #2662 from rickard-von-essen/prl_pd11
Parallels Desktop 11: verify correct edition and enable headless mode
2015-09-16 13:34:05 +02:00
Vasiliy Tolstov
48f8612b72 add virtio-scsi
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2015-09-15 10:59:29 +00:00
James Nugent
632d38a1c5 Tag EBS volumes with volume_tags in EBS builder
This change allows specification of a new "volume_tags" array in the
amazon-ebs builder in order to allow tagging of volumes used on the
source instance. It is implemented as a new step which is skipped if
there are no tags specified.
2015-09-11 16:39:34 -04:00
Mikhail Zholobov
abfe706fc6 builder/parallels: Add "StepCompactDisk" 2015-09-11 11:38:20 +03:00
Mikhail Zholobov
f7b26e44fe builder/parallels: Add "CompactDisk" driver function
This function compacts the specified virtual disk image.
2015-09-11 11:37:52 +03:00
Vasiliy Tolstov
3fae902bc3 enable discards only on qemu >= 2
older qemu versions does not have discard option, so not enable it

Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2015-09-08 10:40:23 +00:00
Mikhail Zholobov
4ebee7bf3f builder/parallels: Add "DiskPath" driver function
This function determines path to the first virtual disk image of the specified virtual machine.
2015-09-05 13:08:24 +03:00
Or Cohen
2a94b596ce Fix and refactor block device mapping builder
Fix NoDevice not properly configured #2398.
Refactor the mapping builder to match BlockDeviceMapping from AWS SDK:

* If NoDevice is specified, include NoDevice only.
* If VirtualName starts with ephemeral, don't create Ebs (they are mutually
  exclusive anyway)
* Otherwise, assume Ebs and create it with the exact specified attributes by
  the user.

Change/add tests to reflect these changes.
2015-08-25 00:24:05 +03:00
Rickard von Essen
83980d2326 Enable headless mode by default on Parallels Desktop 11 2015-08-24 15:09:29 +02:00
Rickard von Essen
7d3afc882a Add check for Parallels Desktop edition in PD 11.
Starting since Parallels Desktop 11, the command line functionality is
available only in Pro and Business editions.
2015-08-22 13:15:59 +02:00
Chris Bednarski
0a79546cf9 Update dependency to an SSL-enabled path; this was migrated from launchpad to github 2015-08-21 17:17:56 -07:00
Chris Bednarski
bf733b75d5 Revert "By default, Qemu will now have an extension added based on the file format. This is a change to more closely match behavior from 0.7.5."
This reverts commit 55fadd96bc.
2015-08-21 16:46:29 -07:00
Chris Bednarski
c8d1c650f0 Revert "Updated test for qemu VMName. Previously (0.7.5) a file extension was automatically added to the VMname but this logic is not exposed for testing."
This reverts commit d13647ee0f.
2015-08-21 16:45:47 -07:00
Chris Bednarski
1830c81eab Correct and expand docker config tests for commit, discard, export_path 2015-08-20 14:15:52 -07:00
Chris Bednarski
d13647ee0f Updated test for qemu VMName. Previously (0.7.5) a file extension was automatically added to the VMname but this logic is not exposed for testing. 2015-08-20 14:03:16 -07:00
Olivier Tremblay
6644f57160 Merge branch 'master' into custom-targetpath 2015-08-20 08:20:55 -04:00
Olivier Tremblay
f301a6454d Added documentation, renamed config param to iso_target_path 2015-08-20 07:37:24 -04:00
Olivier Tremblay
661552dfd5 Merge branch 'master' into custom-targetpath 2015-08-20 07:26:22 -04:00
Chris Bednarski
8f7f82334a Merge pull request #2628 from mitchellh/b-docker-export-validation
Improve artifact validation for docker builder
2015-08-19 13:12:34 -07:00
Chris Bednarski
5503b7f496 Don't export errors 2015-08-19 13:12:16 -07:00
Chris Bednarski
55fadd96bc By default, Qemu will now have an extension added based on the file format. This is a change to more closely match behavior from 0.7.5. 2015-08-18 17:44:17 -07:00
Chris Bednarski
746b9a8391 Formatting tweaks 2015-08-18 16:55:29 -07:00
Chris Bednarski
1b1bd19c20 Reformat code so we can grep for this more easily 2015-08-18 16:47:12 -07:00
Chris Bednarski
750a9c61de Added discard option for docker builder, also reorganized some error messages 2015-08-18 14:38:32 -07:00
Chris Bednarski
32978a5109 Add an explicit error message when there is no output file specified 2015-08-18 13:48:18 -07:00
Chris Bednarski
1a775c05d9 Update calls to amazon to match the upstream
- see http://aws.amazon.com/releasenotes/2948141298714307
- run awsmigrate-renamer on each amazon module (chroot, instance, etc.)
2015-08-17 17:44:01 -07:00
Ian Glover
1447af5e42 Populate access and secret key for bundle_upload_command. 2015-08-13 14:58:15 +01:00
Chris Bednarski
d0f6ab4331 Merge pull request #2585 from mitchellh/f-dockerdownload
Implement docker download
2015-08-12 12:24:23 -07:00
Chris Bednarski
5ad4b0e97e Added tests and handle the tar format from docker cp - 2015-08-12 12:16:26 -07:00
Chris Bednarski
8cdd078952 Changed fixtures so we can do a directory test too 2015-08-12 11:48:47 -07:00
Chris Bednarski
62c5e8358d Added a test for docker upload and download 2015-08-12 11:36:56 -07:00
Chris Bednarski
de9ecd2d62 Add a test fixture file 2015-08-12 11:36:33 -07:00
Chris Bednarski
3523ffdce1 Farewell extra line. You were pretty but out of place. 2015-08-12 11:36:10 -07:00
Rickard von Essen
b6098baac2 Merge pull request #2587 from rickard-von-essen/issue-2543
Fix interpolation of {{.Flavor}} in parallels_tools_guest_path. (2)
2015-08-12 10:29:42 +02:00
Rickard von Essen
da82ff3fd6 Fix interpolation of {{.Flavor}} in parallels_tools_guest_path. (2)
Actually fix the error...

Fixes [GH-2543]
2015-08-12 10:28:06 +02:00
Chris Bednarski
047382eec9 Style tweak 2015-08-11 22:30:19 -07:00
Chris Bednarski
dc3c55cf8e Implemented downloader for the docker communicator so we can pull files out of a container 2015-08-11 22:22:52 -07:00
Rickard von Essen
5e610df4b3 Merge pull request #2583 from rickard-von-essen/issue-2543
Fix interpolation of {{.Flavor}} in parallels_tools_guest_path.
2015-08-12 01:44:19 +02:00
Rickard von Essen
5a6bcdeb78 Fix interpolation of {{.Flavor}} in parallels_tools_guest_path.
Fixes [GH-2543]
2015-08-12 01:34:08 +02:00
Chris Bednarski
313fcaf0ff Revert backwards-compatibility break in VMX option casing
PR #2309 introduced case-sensitive options in VMX files. This is to support a case-sensitive option called `virtualSSD`. The change made all options case-sensitive, which causes problems with external VMX options provided in user templates. To prevent breakage, this change is being reverted.

- Fixes #2574
- Reverts #2542
- Reverts #2309
2015-08-10 14:52:34 -07:00
Chris Bednarski
4cc443da8e Update use of ec2rolecreds to match upstream 2015-08-10 13:59:56 -07:00
Toni Ylenius
cbb2b538bd Support source_image_name in OpenStack builder
As gophercloud supports source_image_name let's allow that in builder
configuration also. This an alternative way of providing source_image.
2015-08-10 16:37:22 +03:00
Chris Bednarski
abb67fdd79 Fix govet issues 2015-08-05 19:41:29 -07:00
Chris Bednarski
cabbe007dd Merge pull request #2415 from DrewDahl/fix-qemu-vnc-missed-keys
Add 1/10th second delay between key events to VNC for QEMU
2015-08-03 15:57:52 -07:00
Chris Bednarski
5b8e4dc5b4 Merge pull request #2534 from mitchellh/b-2515
Update code.google.com/gosshold/ssh to point to golang.org/x/crypto/ssh, since this has been moved into core now
2015-08-01 17:16:26 -07:00
Chris Bednarski
f7a0945311 Merge pull request #2538 from fnoeding/amazon-ebs-only-get-password-for-winrm
amazon builder: only fetch password for winrm
2015-08-01 16:20:48 -07:00
Chris Bednarski
263641c537 Fix case for ethernet.generatedAddress property lookup in VMX 2015-08-01 15:09:59 -07:00
Florian Noeding
62c39888b4 amazon builder: always base64 encode ec2 user data 2015-07-31 16:34:33 +02:00
Florian Noeding
98b9d22b68 amazon builder: only fetch password for winrm 2015-07-31 15:34:25 +02:00
Chris Bednarski
32b714e085 Update code.google.com/gosshold/ssh to point to golang.org/x/crypto/ssh, since this has been moved into core now
Fixes #2515
2015-07-30 19:19:59 -07:00
Chris Bednarski
28d1295460 Merge branch 'openstack_metadata' of https://github.com/trumant/packer into trumant-openstack_metadata 2015-07-30 14:38:03 -07:00
Chris Bednarski
5cd6e19467 Merge pull request #2451 from monsterzz/b-openstack-ipv6-ssh-support
Fix handling IPv6 when ssh_interface set (openstack builder)
2015-07-30 14:36:17 -07:00
Chris Bednarski
f8cfd0a1cb Merge pull request #2309 from marc-ta/casesensitivevmxkeys
Updated how vmx entries are handled
2015-07-30 14:31:54 -07:00
Bob Kuo
585638d063 Do not require exclusive VNC access while buildling
An additional client can be connected during build time for inspection.
We can manually connect and set our VNC clients to ignore all input or
we can connect with vnc2flv to record the build session for later
verification.
2015-07-29 10:00:09 -05:00
Chris Bednarski
a9c299d9c4 Merge pull request #2404 from mitchellh/b-instance-destroy
amazon/common: store instance ID earlier for cleanup
2015-07-28 18:24:37 -07:00
Chris Bednarski
28bf1877c2 Updated AWS SDK calls to match the 0.7.0 release of the AWS SDK 2015-07-28 17:10:21 -07:00
Olivier Tremblay
223e35fc65 Makes StepDownload's TargetPath customizable.
I exposed TargetPath as a config file option "target_path". I don't like
the name, but it follows the naming convention. The purpose of TargetPath
stands unmodified, and it enables a fair amount of customization.
2015-07-28 07:45:02 -04:00
Chris Bednarski
c73314cd38 Merge pull request #2514 from hazelesque/rackconnect-v2-update-accessipv4
openstack: store updated accessIPv4 from RackConnect
2015-07-27 16:43:17 -07:00
Chris Bednarski
715662f60b Reformat 2015-07-27 16:42:06 -07:00
Chris Bednarski
ff6a091531 Merge pull request #2512 from hazelesque/openstack-support-using-existing-keypair
openstack builder: support using existing keypair
2015-07-27 16:41:17 -07:00
Hazel Smith
a7da0ffde1 openstack: store updated accessIPv4 from RackConnect 2015-07-27 23:07:25 +01:00
Hazel Smith
b47eb4cea9 openstack builder: support using existing keypair 2015-07-27 23:05:51 +01:00
Hazel Smith
ce54dba2d3 openstack builder: log which IP address SSH will use 2015-07-27 23:00:06 +01:00
Yo Takezawa
628462b919 Use snapshot size if you don't specify a VolumeSize 2015-07-21 14:07:30 +09:00
Chris Bednarski
f3f3d1fe73 Formatting 2015-07-16 19:34:36 -07:00
georgevicbell
bf0c326cd5 Update step_connect_docker.go 2015-07-16 22:07:39 -04:00
georgevicbell
b2811a8252 Update communicator.go 2015-07-16 21:51:13 -04:00
georgevicbell
d00271aab3 Fix Capitilzation 2015-07-16 21:50:24 -04:00
georgevicbell
4da4150abe Update communicator.go 2015-07-16 21:37:08 -04:00
georgevicbell
3a681d0c0c Add Pty Bool 2015-07-16 21:22:11 -04:00
georgevicbell
fb39fa2cc6 Update step_connect_docker.go 2015-07-16 21:13:04 -04:00
georgevicbell
e3ab74e09f Add Config struct for docker PTY 2015-07-16 21:06:03 -04:00
Travis Truman
988cf2fecf Fixes #2434 by adding OpenStack Glance metadata support 2015-07-15 21:31:13 -04:00
Tommy Ulfsparre
241903d0b0 no point in setting iops on a standard volumes 2015-07-15 17:18:03 -07:00
Chris Bednarski
c615539929 Reformat long lines 2015-07-15 17:17:59 -07:00
Chris Bednarski
9365a43179 Reformat 2015-07-15 17:07:36 -07:00
Tommy Ulfsparre
ae064207d5 Add test for ephemeral block device mapping 2015-07-15 17:05:32 -07:00
Anthony Spring
224bb78175 Make EBS block device mapping optional for ephemeral virtual names. 2015-07-15 17:04:45 -07:00
Chris Bednarski
618d2f3158 Merge pull request #2438 from lvillani/portcount-vbox-5.0
Use --portcount on VirtualBox 5.x
2015-07-15 13:01:22 -07:00
Gleb M Borisov
8495a8c919 Fix handling IPv6 when ssh_interface set (openstack builder) 2015-07-15 02:11:46 +03:00
Chris Bednarski
d2339b7ccc Merge pull request #2408 from mitchellh/b-google-image-name
Fix interpolation in google compute image name
2015-07-13 14:18:55 -07:00
Lorenzo Villani
7e64e90670 Use --portcount on VirtualBox 5.x 2015-07-13 20:32:45 +02:00
Andrew Dahl
1f6137e636 Add 1/10th second delay between key events to VNC for QEMU 2015-07-08 16:55:25 -05:00
Chris Bednarski
1c71eaaa91 Change panic to multierror 2015-07-07 17:12:21 -06:00
Chris Bednarski
775450f46a Merge branch 'fix_gce_image_name' of https://github.com/samitpal/packer into b-google-image-name 2015-07-07 16:19:55 -06:00
Chris Bednarski
bd6c31c2d9 Added TestImageName and moved private methods to the bottom of the file 2015-07-07 16:18:31 -06:00
Sunil K Chopra
750e09d51d should be ssh_host, not host 2015-07-07 17:04:27 -05:00
Mitchell Hashimoto
26aa3dd575 amazon/common: store instance ID earlier for cleanup 2015-07-07 11:07:38 -06:00
Samit Pal
6d6b3e1ac2 The default image name in the code has a bug. It is being set to packer-{{timestamp}}, the {{timestamp}} part needs to be interpolated. Without the interpolation the GCE builder fails with
the following error

==> googlecompute: Creating image...
==> googlecompute: Error waiting for image: googleapi: Error 400: Invalid value for field 'resource.name': 'packer-{{timestamp}}'. Must be a match of regex '(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?)', invalid
2015-07-07 05:27:58 +00:00
Steven Merrill
0869c9fe64 Fix #2830. 2015-07-02 10:23:44 -04:00
Marc Siegfriedt
e9ef2b987e fixed the test as well 2015-07-01 15:11:40 -07:00
Marc Siegfriedt
df1be999dc Fixed case sensitive issue with VMX entries not being overwritten 2015-07-01 15:11:40 -07:00
Marc Siegfriedt
1d7d490c01 updated how vmx entries are handled 2015-07-01 15:11:40 -07:00
Chris Bednarski
caa518b294 Merge pull request #2358 from mitchellh/b-do-private-network
Detect the first public IPv4 address for Digital Ocean
2015-06-29 15:13:31 -07:00
Chris Bednarski
51804e9132 Find a public IP address to provision a digital ocean box 2015-06-29 14:47:28 -07:00
Mitchell Hashimoto
2ee2850c1a Merge pull request #2353 from mitchellh/b-gce-comm-default
builder/googlecompute: default SSH settings properly [GH-2340]
2015-06-29 14:03:46 -07:00
Mitchell Hashimoto
6dd36075b2 Merge pull request #2352 from mitchellh/b-amazon-bundle
builder/amazon/instance: set valid bundle prefix [GH-2328]
2015-06-29 13:59:45 -07:00
Mitchell Hashimoto
6c7a7b6068 builder/googlecompute: default SSH settings properly [GH-2340] 2015-06-29 09:56:33 -07:00
Mitchell Hashimoto
98db68e36c builder/amazon/instance: set valid bundle prefix [GH-2328] 2015-06-29 09:49:11 -07:00
Mitchell Hashimoto
b315e470c8 builder/amazon: set debug flag for get password 2015-06-29 09:40:58 -07:00
Mitchell Hashimoto
0a2e54feaf builder/amazon: output WinRM password for debug mode [GH-2336] 2015-06-29 09:40:15 -07:00
Mitchell Hashimoto
4a60e469e9 update CHANGELOG 2015-06-29 09:33:20 -07:00
Mitchell Hashimoto
677498a55c Merge pull request #2323 from israelshirk/feature/vmware-nonesum
builder/vmware: Run stat on vmware when checksum type = none
2015-06-29 09:32:08 -07:00
Mitchell Hashimoto
95dd79740f Merge pull request #2324 from tcahill/group-launch-permissions
Fix setting ami_groups
2015-06-29 09:30:51 -07:00
Mitchell Hashimoto
7b64723a11 Merge pull request #2327 from emate/fix-for-spot-requests-cleanup
Fixes spot instance cleanup.
2015-06-29 09:24:01 -07:00
Mitchell Hashimoto
aab5ca7059 update CHANGELOG 2015-06-29 09:22:33 -07:00
Marcin Matlaszek
3eaf7f38b0 Fix adding launch permissions for created ami. 2015-06-29 15:39:27 +02:00
Tom Cahill
6644d76982 Use aws.String to obtain string pointers 2015-06-26 12:08:44 -07:00
Tom Cahill
016d916d83 Fix adding groups to AMI launch permissions.
Previously, groups were granted launch permissions by submitting a
ModifyImageAttribute request with the UserGroups parameter set
appropriately. This is no longer valid, as the LaunchPermission
parameter must be set.
2015-06-26 10:52:27 -07:00
Clint Shryock
4d003aa5a3 builder/amazon-instance: Don't specify empty Virtualization Type 2015-06-26 10:43:13 -05:00
Marcin Matlaszek
586cab11ee Fixes spot instance cleanup. 2015-06-26 15:29:46 +02:00
Israel Shirk
88fac0b49c Have nonesum run stat rather than nonesum because nonesum sums none. k. 2015-06-25 19:03:00 -06:00
Tommy Ulfsparre
8ae0cfc759 copy and convert to pointer 2015-06-25 20:07:45 +02:00
Clint
7b9d48799e Merge pull request #2316 from jjappi/fix-aws-tagging
Fix failing AMI snapshot tagging when copying to other regions.
2015-06-25 10:17:34 -05:00
Marcin Matlaszek
dd97a60c9b Fix for tag creation when creating new ec2 instance. 2015-06-25 17:02:38 +02:00
Jani Jappinen
c537623bc6 Fix failing AMI snapshot tagging when copying to other regions. 2015-06-25 17:25:28 +03:00
Clint Shryock
7af5d5419a builder/amazon: Fix issue with sharing AMIs with ami_users 2015-06-24 11:41:58 -05:00
Clint
5b67472d07 Merge pull request #2296 from mitchellh/f-amazon-chroot-mount-options
builder/amazon-chroot: add mount_options configuration option
2015-06-23 11:55:56 -05:00
Clint Shryock
3a54e6899d code cleanup 2015-06-23 11:34:42 -05:00
Mitchell Hashimoto
3fac725a55 Merge pull request #2291 from mitchellh/b-qemu-default
builder/qemu: default acceleration to tcg on Windows [GH-2284]
2015-06-23 09:34:07 -07:00
Clint Shryock
29cef0eae4 builder/amazon-chroot: add mount_options configuration option 2015-06-23 11:26:13 -05:00
Clint
3884555007 Merge pull request #2289 from mitchellh/b-amazon-chroot-fixes
builder/amazon-chroot: various fixing and debugging of chroot builder
2015-06-23 10:53:02 -05:00
Clint Shryock
5d2ea088a2 builder/amazon-chroot: add root_volume_size to resize chroot root volume 2015-06-23 10:35:59 -05:00
Clint Shryock
8a9a59c3ca check if newDevice.EBS is nil 2015-06-23 09:11:29 -05:00
Clint Shryock
9f8b0041f0 builder/amazon-chroot: use source image virtualization type, unless specified 2015-06-22 22:08:31 -05:00
Clint Shryock
f374edc2b8 builder/amazon-chroot: Fixes for amazon-chroot builder
These are needed for chroot builder to work
2015-06-22 21:34:38 -05:00
Mitchell Hashimoto
5852bd7cd7 builder/qemu: default acceleration to tcg on Windows [GH-2284] 2015-06-22 17:56:35 -07:00
Mitchell Hashimoto
9bc0dfa389 builder/vmware: disable VNC before packaging 2015-06-22 14:50:25 -07:00
Mitchell Hashimoto
1aa1399e85 builder/parallels: fix compilation issuse 2015-06-22 12:46:13 -07:00
Mitchell Hashimoto
13c2c4660d Merge branch 'issue_2080' of https://github.com/rickard-von-essen/packer into rickard-von-essen-issue_2080 2015-06-22 12:39:30 -07:00
Mitchell Hashimoto
5db4d7c01f fmt 2015-06-22 12:37:52 -07:00
Mitchell Hashimoto
944b4bf46c common: delete file if checksum fails 2015-06-22 12:17:29 -07:00
Clint
6579219013 Merge pull request #2282 from mitchellh/f-amazon-cleanup-volumes
builder/amazon-ebs: Clean up orphan volumes
2015-06-22 12:56:26 -05:00
Mitchell Hashimoto
93bb0d86af builder/virtualbox: fix default names 2015-06-22 09:25:15 -07:00
Mitchell Hashimoto
84189f7a28 builder/*: properly save interpolation context 2015-06-22 09:22:42 -07:00
Mitchell Hashimoto
d600456487 builder/virtualbox: fix interpolation weirdness 2015-06-22 09:17:09 -07:00
Mitchell Hashimoto
54e081d5af builder/virtualbox: only remove output dir after check 2015-06-22 09:09:12 -07:00
Clint Shryock
dff6cf1a83 code tweak after review 2015-06-22 10:48:54 -05:00
Mitchell Hashimoto
9c6d0dfc8b builder/virtualbox: fix type casting
/cc @pearkes - This fixes that crash
2015-06-21 19:56:55 -07:00
Clint Shryock
c9714ce69e builder/amazon-ebs: Clean up orphan volumes
Fixes #1783
2015-06-19 10:22:39 -05:00
Mitchell Hashimoto
9c0f37b2c9 builder/amazon: fix weird edge cases with key names [GH-2281] 2015-06-19 06:21:20 +02:00
Mitchell Hashimoto
5c290fdbc7 builder/amazon use proper key pair name 2015-06-19 06:15:16 +02:00
Chris Bednarski
1edbbd80bf Merge pull request #2205 from mitchellh/f-vtolstov-compress
Added new compress post-processor from Vasiliy Tolstov
2015-06-18 19:09:44 -07:00
Chris Bednarski
f06847ff10 Merge branch 'master' into f-vtolstov-compress 2015-06-18 05:19:30 -07:00
Mikhail Zholobov
0a53fbc29d builder/parallels: Add mock for "SetDefaultConfiguration" method
Fixes unit test failures
2015-06-18 14:36:32 +03:00
Mikhail Zholobov
2860bfdf82 builder/parallels: Apply default settings on the VM creation step. 2015-06-18 12:08:17 +03:00
Mikhail Zholobov
f7af571cd9 builder/parallels: Add "SetDefaultConfiguration" function
This functions applies the default configuration to the virtual machine. Also, it disables some integration features
which should not present in the resulted VM image.

Functions are different in PD 9 and 10 structs because some additional options appeared only in Parallels Desktop 10 release.
2015-06-18 12:04:02 +03:00
Mitchell Hashimoto
d9fceaf39d update CHANGELOG 2015-06-18 10:19:46 +02:00
Mitchell Hashimoto
ba2cf18460 Merge branch 'master' of https://github.com/ldx/packer into ldx-master 2015-06-18 10:18:17 +02:00
Mitchell Hashimoto
fd40b714c4 Merge pull request #2118 from vtolstov/image
remove image format from image name in qemu builder
2015-06-18 10:16:51 +02:00
Mitchell Hashimoto
9bb7d0a2d5 Merge pull request #2152 from abayer/gce-optional-internal-ip
builder/google: Adds support for using the internal IP rather than NAT IP in GCE
2015-06-18 10:15:27 +02:00
Mitchell Hashimoto
4da0b42fc1 Merge pull request #2054 from garnaat/amazon-chroot-check-before-umount
builder/amazon-chroot: Only unmount if path is actually mounted
2015-06-18 10:12:06 +02:00
Mitchell Hashimoto
b7dab2689a fmt 2015-06-18 05:23:04 +02:00
Bob Kuo
b77fcd90f3 Force qemu to use a VNC port by setting vnc_min_port == vnc_max_port
Similar to Issue #1288, this prevents a crash when we set the VNC
minimum port equivalent to the VNC maximum port
2015-06-17 16:07:38 -05:00
Chris Bednarski
f2f8ad16c0 Merge branch 'master' into f-file-builder 2015-06-16 12:08:33 -07:00
Chris Bednarski
aea70d5a72 Added acceptance test for file builder 2015-06-16 11:31:53 -07:00
Chris Bednarski
29f02d243f Had io.Copy args swapped; also use os.Create instead of os.OpenFile for MAGIC 2015-06-15 18:56:09 -07:00
Mitchell Hashimoto
de2004c1c9 Merge branch 'master' of https://github.com/nyetsche/packer into nyetsche-master 2015-06-15 15:21:58 -07:00
Alexander Golovko
15f40a3d00 fix disabling vmware tools for ESX 2015-06-15 15:08:56 -07:00
Marc Siegfriedt
667c53942b use template for additional disks 2015-06-15 12:40:34 -07:00
Clint
5e786e3bb2 Merge pull request #2250 from mitchellh/b-amazon-block-docs
Document Amazon Block Device Mapping fields
2015-06-15 12:20:13 -05:00
Chris Bednarski
9c5845e3c7 Merge branch 'master' into f-file-builder 2015-06-15 10:18:42 -07:00
Mitchell Hashimoto
523a3342b8 builder/qemu: fix tests 2015-06-15 10:15:08 -07:00
Clint Shryock
d22c4173d3 fix crash when waiting for an instance that has failed 2015-06-15 11:53:21 -05:00
Mitchell Hashimoto
dc067b3f10 Merge pull request #2244 from mitchellh/f-docker-ssh
builder/docker: support custom communicators
2015-06-15 09:48:55 -07:00
Mitchell Hashimoto
c76bed37ec Merge pull request #2236 from mitchellh/b-qemu-ssh
builder/qemu: use proper ssh port [GH-2074]
2015-06-15 09:41:28 -07:00
Mitchell Hashimoto
70af21615e Merge pull request #2233 from mitchellh/b-output-dir
builder/virtualbox,vmware: validate output dir in step
2015-06-15 09:40:36 -07:00
Mitchell Hashimoto
a95408aa21 Merge pull request #2224 from mitchellh/f-os-userdata
builder/openstack: support user data [GH-1867]
2015-06-15 09:35:49 -07:00
Mitchell Hashimoto
3edff00696 Merge pull request #2223 from mitchellh/b-stop-openstack
builder/openstack: load extensions, stop server if supported
2015-06-15 09:35:36 -07:00
Mitchell Hashimoto
d8cc24f86e builder/openstack: no more port 2015-06-15 09:34:35 -07:00
Mitchell Hashimoto
5167c65f87 Merge branch 'b-openstack-privage' 2015-06-15 09:33:58 -07:00
Clint
2372393f64 Merge pull request #2212 from mitchellh/f-amazon-add-tags-to-snapshots
Add EBS snapshot tags #846 #1219
2015-06-15 10:05:57 -05:00
Clint
8fca582278 Merge pull request #2221 from mitchellh/f-amazon-force-deregister-artifacts
builder/amazon: Add force_deregister option
2015-06-15 10:02:30 -05:00
Mitchell Hashimoto
cab2665119 builder/docker: support custom communicators 2015-06-14 22:09:38 -07:00
Mitchell Hashimoto
7fc69828c5 builder/virtualbox: fix forwarding to work with WinRM 2015-06-14 21:47:53 -07:00
Mitchell Hashimoto
ccf20568a7 Merge pull request #2240 from mitchellh/f-windows
Windows AWS instances
2015-06-14 10:52:10 -07:00
Mitchell Hashimoto
101e5986dc builder/amazon: enable windows for instance type too 2015-06-14 10:50:18 -07:00
Mitchell Hashimoto
b8d5bd3776 Merge pull request #2242 from emate/spot_network_interfaces_fix
Fix network interface spec when requesting spot.
2015-06-14 10:48:59 -07:00
Marcin Matlaszek
b51761ca36 Fix network interface spec when requesting spot. 2015-06-14 17:47:45 +02:00
Mitchell Hashimoto
e9d916a7bc builder/amazon: don't print windows password 2015-06-13 23:14:48 -07:00
Mitchell Hashimoto
8f6ecfd9e3 builder/amazon: various fixes (minor) to get things going 2015-06-13 23:12:59 -07:00
Mitchell Hashimoto
022a115d19 builder/amazon: improve messaging 2015-06-13 22:42:10 -07:00
Mitchell Hashimoto
d23f254b76 builder/amazon: don't get password if platform not set on image 2015-06-13 22:39:19 -07:00
Mitchell Hashimoto
fd4e0e9da4 builder/amazon: StepGetPassword 2015-06-13 22:35:45 -07:00
Mitchell Hashimoto
ea86cb4c7e builder/qemu: use proper ssh port [GH-2074] 2015-06-13 19:30:16 -04:00
Mitchell Hashimoto
115d583cff helper/communicator: make host more generic 2015-06-13 19:23:33 -04:00
Mitchell Hashimoto
68e4734caf builder/null: pass unit tests 2015-06-13 18:55:37 -04:00
Mitchell Hashimoto
b61ed3adfc builder/vmware: convert to helper/comm 2015-06-13 18:52:44 -04:00
Mitchell Hashimoto
89af447c8c builder/qemu: convert to helper/comm 2015-06-13 18:47:59 -04:00
Mitchell Hashimoto
820bad6939 builder/parallels: convert to new comm type 2015-06-13 18:43:27 -04:00
Mitchell Hashimoto
f55e2d2c4b builder/openstack: convert to helper/comm 2015-06-13 18:34:37 -04:00
Mitchell Hashimoto
502076c92e builder/googlecompute: use helper/comm 2015-06-13 18:30:16 -04:00
Mitchell Hashimoto
669f301881 builder/digitalocean: use helper/comm 2015-06-13 18:26:13 -04:00
Mitchell Hashimoto
e557928119 builder/amazon: use helper/communicator 2015-06-13 18:16:12 -04:00
Mitchell Hashimoto
d5166a8e6c builder/virtualbox: use new communicator abstraction 2015-06-13 18:08:12 -04:00
Mitchell Hashimoto
d545431f9b builder/null: adopt helper/communicator 2015-06-13 17:42:43 -04:00
Mitchell Hashimoto
d851898131 builder/vmware: mirror virtualbox output dir changes 2015-06-13 17:00:14 -04:00
Mitchell Hashimoto
3976a34d29 builder/virtualbox: validate output dir in step, no in config 2015-06-13 16:58:37 -04:00
Mitchell Hashimoto
71d8c6610a Merge pull request #1968 from bhcleek/master
do not request a pty
2015-06-13 16:23:31 -04:00
Mitchell Hashimoto
f1cef0baae builder/null: fix config parsing 2015-06-13 14:08:33 -04:00
Mitchell Hashimoto
b3a9712402 builder/openstack: support user data [GH-1867] 2015-06-12 22:55:39 -04:00
Mitchell Hashimoto
b6d6a71c6e builder/openstack: wait for more states 2015-06-12 22:50:59 -04:00
Chris Bednarski
e60b22d48f Changed file builder to support content or source file operation 2015-06-12 18:18:38 -07:00
Chris Bednarski
766d217ed7 Pull config into the builder 2015-06-12 17:34:52 -07:00
Chris Bednarski
64fd3a3302 Added file builder as a cheap, fast way to build something with output for testing post-processors 2015-06-12 17:24:03 -07:00
Mitchell Hashimoto
48b674d331 builder/openstack: load extensions, stop server if supported 2015-06-12 18:04:46 -04:00
Mark Peek
16320372d6 Make some builder config usage more consistent with other builders 2015-06-12 14:02:09 -07:00
Mark Peek
f398352996 Fix a bug where interpolation was broken in some builders 2015-06-12 14:00:59 -07:00
Mitchell Hashimoto
a3863c3495 builder/openstack: update floating IP messaging 2015-06-12 15:23:05 -04:00
Mitchell Hashimoto
2c683c5057 builder/openstack: prioritize ssh interfaces 2015-06-12 14:28:27 -04:00
Clint Shryock
bec59b535d builder/amazon: Add force_deregister option, to automatically deregister artifacts with name conflicts 2015-06-12 13:23:47 -05:00
Mitchell Hashimoto
31abc93f50 builder/openstack: support ssh_interface [GH-2087] 2015-06-12 14:22:32 -04:00
Clint Shryock
86206e316d add tags test 2015-06-12 10:39:37 -05:00
Mitchell Hashimoto
693f04afcc builder/openstack: AZ support 2015-06-12 11:10:10 -04:00
Mitchell Hashimoto
92b6b5c387 builder/openstack: can ref flavor by name 2015-06-12 10:32:31 -04:00
Mitchell Hashimoto
ad374e82af builder/openstack: shuffle some fields to note unused fields 2015-06-12 10:05:03 -04:00
Mitchell Hashimoto
5d32a1f6e0 builder/openstack: use IP not FixedIP 2015-06-12 10:02:04 -04:00
Mitchell Hashimoto
590177ea4b builder/openstack: fix unit tests 2015-06-12 00:35:54 -04:00
Mitchell Hashimoto
e724b5fe80 builder/openstack: support legacy env vars 2015-06-12 00:33:52 -04:00
Mitchell Hashimoto
50e2eb30e6 builder/openstack: modifications to work with rackspace 2015-06-12 00:28:38 -04:00
Mitchell Hashimoto
a0d41fcd14 builder/openstack 2015-06-12 00:16:43 -04:00
Mitchell Hashimoto
46f518f21d builder/openstack: proper error extraction 2015-06-12 00:09:01 -04:00
Mitchell Hashimoto
7a46b80cfb builder/openstack-new: better UI 2015-06-12 00:05:24 -04:00
Mitchell Hashimoto
551e80774d builder/openstack-new: fix some issues 2015-06-12 00:03:17 -04:00
Mitchell Hashimoto
c903579aaa builder/openstack-new 2015-06-11 23:43:36 -04:00
Mitchell Hashimoto
3933cc3217 Merge pull request #2208 from mitchellh/b-do-user
builder/digitalocean: user data support [GH-2113]
2015-06-11 16:57:04 -04:00
Clint
2af0f10d59 Merge pull request #2204 from mitchellh/b-aws-iam-profile-upload
builder/amazon-instance: Omit access, secrety key if using IAM Instan…
2015-06-11 10:55:57 -05:00
Clint Shryock
1fbf8b7f32 update create_tags for new sdk 2015-06-11 10:43:27 -05:00
Clint Shryock
a8155e17aa merge acaire/add-ebs-snapshot-tags 2015-06-11 10:33:55 -05:00
Clint
900f3641c5 Merge pull request #2207 from mitchellh/f-amazon-allow-ami-name-spaces
builder/amazon: Allow spaces in AMI names
2015-06-11 08:49:21 -05:00
Mitchell Hashimoto
dcf140f99f builder/digitalocean: more robust wait for pending 2015-06-10 19:53:07 -07:00
Mitchell Hashimoto
0e0cd28071 builder/digitalocean: fix failing unit tests 2015-06-10 19:31:48 -07:00
Mitchell Hashimoto
5cfd26a0d3 builder/digitalocean: user data support [GH-2113] 2015-06-10 19:29:48 -07:00
Mitchell Hashimoto
c9c9e2871c builder/digitalocean: fix build 2015-06-10 18:58:50 -07:00
Mitchell Hashimoto
7dc59677f9 Merge branch 'do_certificate' of https://github.com/ColinHebert/packer into ColinHebert-do_certificate 2015-06-10 18:57:56 -07:00
Mitchell Hashimoto
5da56d2aa6 builder/digitalocean: image, region, etc. required 2015-06-10 18:54:51 -07:00
Mitchell Hashimoto
311c9eb5c2 builder/digitalocean: fix unit tests 2015-06-10 14:28:05 -07:00
Clint Shryock
2056fda4d3 builder/amazon: Allow spaces in AMI names 2015-06-10 16:19:36 -05:00
Mitchell Hashimoto
9a393a5601 builder/digitalocean: only list user images 2015-06-10 14:18:38 -07:00
Mitchell Hashimoto
486c7e4ae6 builder/digitalocean: remove unused things 2015-06-10 14:07:24 -07:00
Mitchell Hashimoto
d9c48e82fb builder/digitalocean: switch to new lib 2015-06-10 14:02:06 -07:00
Clint Shryock
c9b413e3d1 builder/amazon-instance: Omit access, secrety key if using IAM Instance Profile 2015-06-10 15:18:05 -05:00
Mitchell Hashimoto
9da9ce6046 vmware/iso: disk_additional_size 2015-06-10 12:41:17 -07:00
Mitchell Hashimoto
3ba9d70b22 Merge pull request #1382 from sneal/AdditionalDisksForVMwareISO
Additional disks for vmware iso
2015-06-10 12:39:50 -07:00
Mitchell Hashimoto
1d653efe90 Merge pull request #2174 from brandonheller/master
vmware/iso: support hierarchical output directories
2015-06-10 11:33:59 -07:00
Mitchell Hashimoto
fafdfc962f vmware/common: detect Vmware 'unknown error' and show better message 2015-06-10 11:31:36 -07:00
Mitchell Hashimoto
bd04b52b32 virtualbox/common: style 2015-06-10 10:50:08 -07:00
Mitchell Hashimoto
8d6a99457a Merge pull request #1078 from pleschev/skip_nat_port
Adding the ability to skip nat port forwarding for ssh connectivity
2015-06-10 10:47:03 -07:00
Mitchell Hashimoto
be4a82dfae amazon/*: fix some merge conflicts 2015-06-10 10:33:01 -07:00
Mitchell Hashimoto
8e1db0d94c Merge branch 'fix_amazon_instance_waits' of https://github.com/renat-sabitov/packer into renat-sabitov-fix_amazon_instance_waits 2015-06-10 10:31:21 -07:00
Mitchell Hashimoto
0b819e4dd8 Merge pull request #2199 from rickard-von-essen/prl_pd11
Support Parallels Desktop 11
2015-06-10 10:21:07 -07:00
Jan Schumann
802cfa3871 make sure IOPS is not set for empty VolumeType 2015-06-10 17:21:25 +02:00
Jan Schumann
5d600c70f2 added test to illustrate wrong behavior 2015-06-10 17:20:41 +02:00
Rickard von Essen
8393b85ed5 Support Parallels Desktop 11 2015-06-10 07:41:12 +02:00
Mitchell Hashimoto
f6f9cca7ce Merge pull request #2189 from mitchellh/b-download-extension
common: StepDownload can force an extension
2015-06-09 20:56:43 -07:00
Clint
b31534d5fe Merge pull request #2197 from mitchellh/f-aws-fixup-ebs-snapshots
Update AWS EBS builder to fix invalid params
2015-06-09 13:52:28 -05:00
Clint Shryock
4da118c64f fix up tests 2015-06-09 11:56:40 -05:00
Clint Shryock
999b0874cc Update AWS EBS builder to fix invalid params 2015-06-09 11:38:53 -05:00
Clint Shryock
8c321138f4 Revert "Changing --region to --location"
This reverts commit f40fd36c31.

According to the documentation below, `--region` is the current flag. If you're
using an older version of the tools that use `--location`, you can customize the
commands in your Packer config with `bundle_vol_command` and `bundle_upload_command`

- http://docs.aws.amazon.com/AWSEC2/latest/CommandLineReference/CLTRG-ami-upload-bundle.html
- https://www.packer.io/docs/builders/amazon-instance.html
2015-06-09 10:41:39 -05:00
Mitchell Hashimoto
23a48d6619 go fmt 2015-06-08 21:34:20 -07:00
Mitchell Hashimoto
fa2bcb8bc5 update CHANGELOG 2015-06-08 21:33:53 -07:00
Mitchell Hashimoto
2373640881 Merge pull request #1663 from beezly/fix-vnc-missed-keys
Add 1/10th second delay between key events to VNC
2015-06-08 21:31:55 -07:00
Mitchell Hashimoto
20504da796 Merge pull request #2190 from mitchellh/b-http-addr
virtualbox,vmware: http server should listen on IPv4
2015-06-08 21:23:49 -07:00
Mitchell Hashimoto
a8cd2a2223 Merge pull request #2038 from trumant/openstack_access_config_tests_env_clarity
Tests were failing incorrectly when OpenStack environment variables were...
2015-06-08 21:19:47 -07:00
Mitchell Hashimoto
60b60d9f75 Merge pull request #2036 from mojotalantikite/digitalocean_private
Fix digitalocean provider for private images [fixes mitchellh/packer#1792]
2015-06-08 21:18:33 -07:00
Mitchell Hashimoto
115b8f5f67 Merge pull request #2188 from mitchellh/b-vbox-remove-floppy
virtualbox/common: remove devices should delete floppy controller
2015-06-08 21:16:24 -07:00
Mitchell Hashimoto
9dff0adfb1 builder/google: don't hardcode SSH timeout [GH-1781] 2015-06-08 21:13:25 -07:00
Mitchell Hashimoto
9f0b8b71db virtualbox,vmware: http server should listen on IPv4 2015-06-08 20:47:47 -07:00
Mitchell Hashimoto
9ea34d4ea8 virtualbox/iso: force iso extension for downloads 2015-06-08 20:42:16 -07:00
Mitchell Hashimoto
35246ba986 virtualbox/common: fix test 2015-06-08 20:31:53 -07:00
Mitchell Hashimoto
b441348ba4 virtualbox/common: remove devices should delete floppy controller
GH-1879
2015-06-08 20:25:21 -07:00
Mitchell Hashimoto
0885e03bbf virtualbox/iso: acceptance test 2015-06-08 20:24:49 -07:00
Clint
455d57a87f Merge pull request #2187 from mitchellh/f-aws-add-prevalidate-step
builder/aws: Add pre validate step, to validate things before building.
2015-06-08 22:02:36 -05:00
Clint Shryock
68040f786c show AMI id in error message 2015-06-08 22:00:59 -05:00
Clint Shryock
231f01cd35 builder/aws: Add pre validate step, to validate things before building. 2015-06-08 17:08:39 -05:00
Mitchell Hashimoto
984bbc3a1e amazon/common: wording nit 2015-06-08 09:38:50 -07:00
Mitchell Hashimoto
8aec42e363 update CHANGELOG 2015-06-08 09:25:56 -07:00
Mitchell Hashimoto
9387cc1ea1 Merge pull request #2175 from henrysher/fix-duplicate-ami
check the region before do the ami copy to fix the duplicate ami [GH-2123]
2015-06-08 09:20:02 -07:00
Mitchell Hashimoto
f7e49d92ac Merge pull request #2178 from henrysher/fix-ami-copy-name
"Name" parameter required for copying ami across regions [GH-2172]
2015-06-08 09:16:17 -07:00
Mitchell Hashimoto
769b7d20b9 amazon/ebs: acceptance test for region copy 2015-06-08 09:16:01 -07:00
Vasiliy Tolstov
3d94462e37 remove image format from image name
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2015-06-08 14:44:26 +03:00
Henry Huang
052b5e6699 "Name" parameter required for copying ami across regions [GH-2172] 2015-06-05 11:15:48 +00:00
Shawn Neal
e9a491ae45 New interpolation for additional vmware disks 2015-06-04 11:44:07 -07:00
Eric Richardson
5f183026b3 Fix vmware compact_disk step when there are no additional disks 2015-06-04 08:22:50 -07:00
Eric Richardson
7dfb837ddb Formatting cleanups from go fmt 2015-06-04 08:22:50 -07:00
Eric Richardson
fab9ca9cdb Initial work to implement additional disk support in the vmware-iso builder
* Matches the syntax from mitchellh/packer#703
* Creates disk(s), adds them to the vmx template, and runs compact at the end
2015-06-04 08:22:50 -07:00
Henry Huang
a5c476c6fe check the region before do the ami copy to fix [GH-2123] 2015-06-04 06:16:44 -04:00
Brandon Heller
a7eeb6a6a7 vmware/iso: support hierarchical output directories
When providing a hierarchical output_directory value like
'transient/jenkins-slave', the VM would fail to build in the CreateDisk
step.  The properly created output directory would not match the location
provided to CreateDisk, since datastorePath() did not properly split such
paths.  Now this case works; tested hierarchical and singular
output_directory values.
2015-06-04 02:49:58 -07:00
Seth Vargo
33ca8b7fb5 Migrate to new AWS repo 2015-06-03 17:13:52 -04:00
Mitchell Hashimoto
edf3415c6e builder/amazon: delete physical private key for debug mode [GH-1801] 2015-05-29 17:10:14 -07:00
Mitchell Hashimoto
3f636ef7f3 vmware/vmx: clarify messaging for source path required error 2015-05-29 17:04:11 -07:00
Mitchell Hashimoto
819986d19f builder/docker: validate export path is not a dir [GH-2105] 2015-05-29 16:24:29 -07:00
Mitchell Hashimoto
350aa4e522 Merge pull request #2055 from FGtatsuro/docker_tag_force
Support force option for docker-tag.
2015-05-29 16:05:00 -07:00
Andrew Bayer
ebdd0d991a Adds support for using the internal IP rather than NAT IP in GCE 2015-05-29 14:50:11 -07:00
Mitchell Hashimoto
31ac2652d6 bulder/docker: canExec as sep function 2015-05-29 11:08:41 -07:00
Mitchell Hashimoto
ce275969e4 builder/docker: don't attempt to read artifact if cancelled 2015-05-29 09:37:27 -07:00
Mitchell Hashimoto
6570b53c4a builder/docker: use exec for v1.4+ 2015-05-29 09:29:59 -07:00
Mitchell Hashimoto
966d70148e Merge branch 'donaldguy-docker-exec-by-version' into f-docker 2015-05-29 09:20:57 -07:00
Mitchell Hashimoto
9587a926a2 Merge branch 'docker-exec-by-version' of https://github.com/donaldguy/packer into donaldguy-docker-exec-by-version 2015-05-29 09:20:48 -07:00
Mitchell Hashimoto
9c7b4b63c5 builder/docker: fix config parsing 2015-05-29 09:19:20 -07:00
Mitchell Hashimoto
913d6f6996 builder/amazon/common: fix compilation issues with latest libs 2015-05-28 10:20:34 -07:00
Mitchell Hashimoto
07734133a3 builder/amazon: fix test failures 2015-05-28 09:44:33 -07:00
Mitchell Hashimoto
7e74a38ff8 Merge pull request #2000 from cyberhouse/ifconfig-regex
Make the Vmware build extract the host IP properly from ifconfig stdout
2015-05-28 09:39:32 -07:00
Mitchell Hashimoto
7bd618b56b Merge pull request #1989 from marcomorain/upper-case-mac-address
Fix for VMWare on OSX – MAC address can be upper or lower case
2015-05-28 09:38:23 -07:00
Mitchell Hashimoto
8cac7e8d51 Merge pull request #1930 from bhourigan/issue1929
Prepending -i to sudo so PATH is inherited from profile.d scripts
2015-05-28 09:36:58 -07:00
Mitchell Hashimoto
3031886aaf Merge branch 'master' of https://github.com/aocsolutions/packer into aocsolutions-master 2015-05-28 09:35:02 -07:00
Mitchell Hashimoto
11e2fad6d0 Merge pull request #2022 from mefellows/issue/2021
Report error during Temporary Security Group creation in AWS EBS builder
2015-05-28 08:32:55 -07:00
Mitchell Hashimoto
b78b119a11 amazon/*: fix merge issues with lib switch 2015-05-28 08:31:22 -07:00
Mitchell Hashimoto
44b980e659 Merge branch 'aws-sdk-go' of https://github.com/jen20/packer into jen20-aws-sdk-go 2015-05-28 08:24:41 -07:00
Mitchell Hashimoto
b9bfae8da3 amazon/chroot: style 2015-05-28 08:19:53 -07:00
Mitchell Hashimoto
20fa7aeeb6 Merge pull request #2046 from danschaffer/amazonchroot-volumes-retry-fix
builder/amazon/chroot: fix no attachments on volume error.
2015-05-28 08:18:50 -07:00
jszwedko
b1497b951c code.google.com/p/go.crypto/ssh -> golang.org/x/crypto/ssh
code.google.com/p/go.crypto/ssh is now at golang.org/x/crypto/ssh as of
https://code.google.com/p/go/source/detail?spec=svn.crypto.69e2a90ed92d03812364aeb947b7068dc42e561e&repo=crypto&r=8fec09c61d5d66f460d227fd1df3473d7e015bc6

Using the code.google.com import redirects properly, but runs into
issues if you try to use a subpackage of `ssh`, e.g. `agent` which
refers to golang.org/x/crypto/ssh causing conflicts if your types expect
code.google.com/p/go.crypto/ssh.

This is a precursor to a PR for #1066.
2015-05-28 08:17:49 -07:00
Mitchell Hashimoto
77af5f83f7 Merge pull request #2120 from vtolstov/discard
add discard option to qemu builder
2015-05-27 20:18:11 -07:00
Mitchell Hashimoto
c78c4e78ad amazon/common: sleep 3 seconds if instance doesn't exist 2015-05-27 20:15:07 -07:00
Mitchell Hashimoto
f78d7eefdc Merge pull request #2129 from lokulin/master
Fixes #2128 Retry the AWS API when looking for a newly created instance
2015-05-27 20:14:14 -07:00
Mitchell Hashimoto
1d3a4d6aa2 packer: remove ConfigTemplate 2015-05-27 17:56:45 -07:00
Mitchell Hashimoto
4bb16ac223 fix failing tests 2015-05-27 14:30:59 -07:00
Mitchell Hashimoto
c3b75f4b86 vmware/vmx: interpolation 2015-05-27 14:21:15 -07:00
Mitchell Hashimoto
f5945eeb1b vmware/iso: new interpolation 2015-05-27 14:16:28 -07:00
Mitchell Hashimoto
0dc4226810 builder/virtualbox/ovf: new interpolation 2015-05-27 14:03:56 -07:00
Mitchell Hashimoto
d15bc90453 builder/virtualbox/iso: new interpolation 2015-05-27 14:01:08 -07:00
Mitchell Hashimoto
b2b74431ec builder/parallels/pvm: interpolation 2015-05-27 13:51:24 -07:00
Mitchell Hashimoto
76c2d2cb0e builder/parallels/iso: new interpolation 2015-05-27 13:49:31 -07:00
Mitchell Hashimoto
3e76547bff bulder/qemu: convert interpolation 2015-05-27 13:39:43 -07:00
Mitchell Hashimoto
4cae87645f builder/docker: fix issue where docker might get nil interp context 2015-05-27 13:03:47 -07:00
Mitchell Hashimoto
3b29fa5e40 builder/openstack: convert interpolation 2015-05-27 13:02:57 -07:00
Mitchell Hashimoto
31bdb4853c builder/null: interpolations 2015-05-27 12:59:14 -07:00
Mitchell Hashimoto
5aa30caa64 builder/googlecompute: new interpolation 2015-05-27 12:57:48 -07:00
Mitchell Hashimoto
faf327eed0 builder/docker: convert to new interpolation 2015-05-27 12:55:36 -07:00
Mitchell Hashimoto
7d0f94834e builder/digitalocean: interpolation change 2015-05-27 12:50:43 -07:00
Mitchell Hashimoto
034e4e676c amazon/*: use new interpolation functions 2015-05-27 11:47:45 -07:00
Mitchell Hashimoto
50d7c598e9 amazon/ebs: use new interpolation stuff 2015-05-27 11:35:56 -07:00
Mitchell Hashimoto
fea8bb3566 amazon/ebs: basic acceptance test 2015-05-26 13:47:24 -07:00
lokulin
bda4ef7c65 Retry the AWS API when looking for a newly created instance
Sometimes the AWS API responds that it can't find a newly created
instance if you poll it too soon after creation.  Retry a few times
to be sure it really hasn't been created.
2015-05-22 15:08:51 +10:00
Vasiliy Tolstov
3984f5e6f6 add discard option to qemu builder
Enabling discards for disk can greatly minimize disk size then user
inside vm use fstrim command or trim/discard unneded blocks.

Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2015-05-17 20:48:58 +03:00
Rickard von Essen
1365627e31 Fixes #2080 Add prlctl_post in builder Parallels
This adds config option prlctl_post for builder parallels-iso/pvm. It
allows additional prlctl commands to run after the VM has been shutdown
just before being exported.
2015-05-03 11:18:48 +02:00
duftler
6d28ee931c Delete GCE disk on SIGINT. 2015-04-21 18:02:05 +00:00
FGtatsuro
09f379a928 Support force option for docker-tag. 2015-04-18 13:12:28 +09:00
Mitch Garnaat
fd5f4c61ae Added a call to grep for path in /proc/mounts before attempting to umount. If path is not there, it is already unmounted. 2015-04-17 12:35:26 -07:00
Dave Cunningham
982934dfb9 Use new Google API and OAuth libs, add UserAgent string 2015-04-17 15:12:39 -04:00
Dan Schaffer
03436a3745 builder/amazon/chroot: fix no attachments on volume error.
This adds retry logic to the amazon/chroot builder.  The builder
intermittently fails when ec2conn shows the volume in the attached
state but calling Volumes[0].Attachments return an empty array. The
fix adds a retry logic for when Volumes[0].Attachments has len 0 sleep
for 2 seconds and retry up to 30 times.

When the Volumes[0].Attachments is empty I find within 5 seconds the
Volumes[0].Attachments contains the correct value.

The issue is reported in:
https://github.com/mitchellh/packer/issues/1854
2015-04-16 13:06:48 -04:00
James Nugent
65a9347b1e Fix potential nil pointer errors in ported code
This commit adds extra nil checks for some pointers which were not
necessary when using goamz
2015-04-15 12:17:44 -07:00
James Nugent
33b4f5cc0a Check for EBS being nil before assigning it 2015-04-15 11:49:29 -07:00
Travis Truman
7bd37b1f7a Tests were failing incorrectly when OpenStack environment variables were set in the environment running the tests 2015-04-14 11:14:58 -04:00
James Nugent
e99cd56b6c Migrate from mitchellh/goamz to awslabs/aws-sdk-go
This commit moves the Amazon builders of Packer away from the Hashicorp
fork of the goamz library to the official AWS SDK for Go, in order that
third party plugins may depend on the more complete official library
more easily.
2015-04-12 21:33:09 -04:00
Vilmos Nebehaj
956b9ded0a Try another ssh port if the current one is taken. 2015-04-10 17:55:51 -07:00
Matt Fellows
a973dce7d3 Report error code during Temporary Security Group creation (#2021) 2015-04-07 12:11:34 +10:00
Brian Hourigan
a4cfd921f4 Adding missing hyphen to sudo options 2015-04-04 10:52:17 -04:00
Nevins Bartolomeo
6686b62347 AWS availability zone could be incorrect when using spot instances with no AZ specified 2015-04-03 20:52:54 -04:00
Georg Großberger
8c0169b1c4 Make the Vmware build extract the host IP properly from ifconfig stdout 2015-03-25 14:45:15 +01:00
Donald Guy
a7206aebd7 builder/docker: attempt to satisfy travis for #1993 2015-03-20 12:50:03 -04:00
Donald Guy
df7623d9d8 builder/docker: Run scripts /w exec if -v > 1.4 2015-03-20 12:07:43 -04:00
Marc O'Morain
9b2d219cab MAC address can be upper or lower case 2015-03-18 16:40:05 +00:00
Mojo Talantikite
d174ffe1fa Fix digitalocean provider for private images [fixes mitchellh/packer#1792] 2015-03-12 19:01:51 -04:00
renat-sabitov-sirca
d046e1cc5b Fixing transient AWS errors during EBS builds
Relates to #1539

AWS is eventually consistent and instance can be not visibile for
some time after creation. This fix eliminates describe-instances
call before going to the proper wait loop
2015-03-11 10:34:21 +11:00
Andrew Beresford
a81c8905fb Add 1/10th second delay between key events to VNC 2015-03-09 13:58:46 +00:00
Ash Caire
361e859556 Add EBS snapshot tags 2015-03-01 10:27:30 +11:00
Colin Hebert
a08725f7c5 Add auto discovery of AZ based on the subnet 2015-03-01 00:00:45 +11:00
Emil Hessman
57468b3d1a builder/vmware/iso: fix incorrect printf verb type in test
Fixes the following vet report:

builder/vmware/iso/builder_test.go:178: arg b.config.DiskSize for printf verb %s of wrong type: uint
2015-02-25 05:43:18 +01:00
Emil Hessman
fdb64f6f25 builder/vmware/common: fix missing format argument for Fatalf call in test
Fixes the following vet report:

builder/vmware/common/step_shutdown_test.go:130: missing argument for Fatalf("%s"): format reads arg 1, have only 0 args
2015-02-25 05:43:17 +01:00
Emil Hessman
96b62af551 builder/virtualbox/iso: fix incorrect printf verb type
Fixes the following vet report:

builder/virtualbox/iso/builder_test.go:86: arg b.config.DiskSize for printf verb %s of wrong type: uint
2015-02-25 05:43:17 +01:00
Emil Hessman
cceb4b2868 builder/qemu: fix incorrect printf verb type
Fixes the following vet report:

builder/qemu/builder_test.go:163: arg b.config.DiskSize for printf verb %s of wrong type: uint
2015-02-25 05:43:17 +01:00
Emil Hessman
b19f9b9777 builder/parallels/iso: fix incorrect printf verb type
Fixes the following vet report:

builder/parallels/iso/builder_test.go:78: arg b.config.DiskSize for printf verb %s of wrong type: uint
2015-02-25 05:43:17 +01:00
Emil Hessman
f5782084e5 builder/openstack: address vet reports
Fixes the following vet reports:

builder/openstack/artifact.go:44: arg a.ImageId for printf verb %d of wrong type: string
builder/openstack/step_wait_for_rackconnect.go:24: arg server for printf verb %s of wrong type: *github.com/mitchellh/gophercloud-fork-40444fb.Server
2015-02-25 05:42:19 +01:00
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
Billie H. Cleek
2184892f8a do not request a pty
Change the default behavior from requesting a PTY when executing a
command with the ssh communicator to requesting a PTY only when
configured to do so.

Update the vmware builders to be fully backward compatible with the new
behavior.
2015-02-12 20:18:54 -08: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
Lesko, Matthew (NIH/NLM/NCBI) [C]
43f08b2664 go fmt all the things 2015-01-13 22:58:41 -05:00
Lesko, Matthew (NIH/NLM/NCBI) [C]
62e054c404 simplify output 2015-01-13 21:40:15 -05:00
Sebastian Röder
555b89567f s/VirtualBox/VMware in comment 2015-01-13 22:43:24 +01:00
Lesko, Matthew (NIH/NLM/NCBI) [C]
9d097f9d4e Permit Temp keys and named SSH keypairs
These changes permit the use of pre-created SSH keypairs with AWS. If
so, the configuration for the builder needs to include an
ssh_keypair_name option and a ssh_private_key_file.

If ssh_private_key_file is *not* defined, it'll go through the
rigamarole of creating a temporary keypair. The ssh_keypair_name option
by itself won't make that change, because it doesn't make sense to
specify a keypair but not tell packer where the private key is, but it
does happen that you could have a private key and the public-key is
"baked in", and not part of your EC2 account.
2015-01-13 16:27:33 -05:00
Lesko, Matthew (NIH/NLM/NCBI) [C]
8c87b1cc00 First attempt for re-using a named EC2 keypair
Adds a 'ssh_keypair_name' option to the configuration
for AWS, along with some munging to create the
temporarily keypair if one isn't specific.

NOT YET WORKING.

From a 'make' I get the following errors:

builder/amazon/ebs/builder.go:94: b.config.SSHKeyPairName undefined
(type config has no field or method SSHKeyPairName)

builder/amazon/instance/builder.go:199: b.config.SSHKeyPairName
undefined (type Config has no field or method SSHKeyPairName)
2015-01-13 13:12:04 -05:00
Colin Hebert
42d05368ae Save the generated SSH key as a file in debug mode 2015-01-10 23:52:45 +11: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
pleschev
431647997c Merge pull request #2 from mitchellh/master
Update skip_nat_port to latest master.
2014-11-26 07:52:42 +11: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
Mikhail Zholobov
0cfe58193f builder/parallels: Added driver method 'DeviceAddCdRom' 2014-10-04 22:39:54 +02:00
JessThrysoee
5394ce61fd builder/parallels: Rely on Cleanup functions to detach devices
Remove the redundant StepRemoveDevices and rely on the cleanup to be handled by:
* StepAttachParallelsTools.Cleanup
* StepAttachFloppy.Cleanup
* stepAttachISO.Cleanup
2014-10-04 22:39:54 +02:00
Rickard von Essen
57ad64da30 Merge pull request #1501 from JessThrysoee/current_fdd0_does_not_exist
builder/parallels: Ignore 'The fdd0 device does not exist'
2014-10-04 18:04:08 +02:00
Kent Holloway
6b5a505384 -redir is deprecated and missing on some versions of QEMU, using -netdev instead which is recommended. Removing M letter from Memory flag as QEMU now assumes this value is always in MB and errors out if you pass the M as a part of the command 2014-10-03 10:39:57 -05:00
Kent Holloway
2755ba1751 Changing machinetype default to PC instead of PC-1.0 which seems to be a saner default that works on more platforms. RedHat in particular doesnt have PC-1.0 2014-10-03 10:37:03 -05:00
Kent Holloway
2cf7e694bc Fix for panic when ssh min and max port is the same for qemu builder. Taken directly from a previous patch by mitchellh 8f50d2dd9a 2014-10-03 10:14:02 -05:00
Vasiliy Tolstov
e614a8c3d5 remove debug output
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2014-10-03 01:47:51 +04:00
Vasiliy Tolstov
f4c756a2cb fix copy/paste error
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2014-10-03 00:02:46 +04:00
Mikhail Zholobov
48c64b05cb builder/parallels: Init VM without hdd and attach it later
Avoid the disk resize because it is unsupported for some guests (OS X)
http://kb.parallels.com/en/113653
2014-10-01 16:13:46 +04:00
Shawn Neal
5fd9651982 GH 1508 - Ensure Packer VMX is updated and saved
We need to ensure the VMWare process has exited before attempting to run VMX file cleanup steps, otherwise VMWare may overwrite our changes. While Packer does its best to ensure VMWare has exited, there's still a race condition on some OSs between VMWare flushing the VMX and Packer updating it. The workaround is to artifically wait 5 seconds.

When using the VMX builder its possible for the source machine to have a floppy and/or CD-ROM mounted which gets cloned to the new VM Packer spins up, but have no Packer configuration for those devices. With this change we always attempt to remove the mounted devices regardless of the Packer configuration.
2014-09-24 09:42:10 -07:00
Julian Phillips
60e608dfdb Add support for vagrant with qemu
Once we have produced a qemu VM, we now have the option of using
the vagrant post-processor to create a .box file that can be used with
the vagrant-libvirt plugin.

This uses the new State method of the Artifact API to get necessary
information from the builder.
2014-09-22 11:15:47 +01:00
Julian Phillips
90a57c411f Expand Artifact API to expose build state
In order that something consuming an artifact can have access to extra
builder specific data add the State method which allows the caller to
ask for arbitary values by name.
2014-09-22 11:15:47 +01:00
JessThrysoee
16b82d6d15 builder/parallels: Bundle python version of prltype
Uses the Python API from Parallels Virtualization SDK to write
boot commands.

This eliminates a 3rd party requirement and makes it easier for people
not using homebrew to get started with packer.
2014-09-19 22:19:15 +02:00
JessThrysoee
cf6532ffe2 builder/parallels: Ignore 'The fdd0 device does not exist'
A current floppy disk probably doesn't exist, so the build shouldn't
fail when we try to delete it.
2014-09-18 20:36:05 +02:00
Alexander Kurilo
3592d67093 Fix detecting guest additions URL
When system property exists with empty value, packer treats that
empty value as a URL. The issue has been spotted on Arch
with Virtualbox 4.3.16.
2014-09-18 10:53:13 -04:00
Jason A. Beranek
8689301d68 builder/vmware-esxi: Ignore localhost for VNC lookup [GH-1480]
Adds logic to ESXi driver VNC Address function to ignore listen
  addresses that bind to localhost (127.0.0.1), this allows certain
  default ports to be available on ESXi for VNC connections
2014-09-16 22:00:52 -05:00
Shawn Neal
7d9c252b3a Clean VMX step should always remove floppy.
When using the VMX builder its possible for the source machine to have a floppy configured which gets cloned to the new VM Packer spins up. When the new VM's Packer config doesn't have a floppy_files config entry, the Packer clean VMX step fails to remove the floppy disk from the new VM. This can cause build failures, for example with the vsphere post processor; generating errors like:

* Post-processor failed: Failed: exit status 1
Error: File (/home/teamcity/tmp/buildTmp/packer941120499) could not be found.

Opening the cloned VM's VMX file you can clearly see it has a floppy entry from the source machine's VMX file (exact same path) even though the Packer config contains no floppy_files entry.
2014-09-16 18:27:00 -07:00
John Deatherage
e571a133b0 fixed vmware-vmx step order 2014-09-14 04:28:55 -07:00
Ross Smith II
a7aa20c8c7 Add support for VMware Fusion 7 Pro [GH-1478] 2014-09-10 10:14:50 -07:00
Jason A. Beranek
b6eb3eba1d builder/vmware-esxi: Add configuration options for remote cache path
Add configuration option to explicitly control where Packer uploads
  ISO and floppy files to on ESXi hosts. The `remote_cache_datastore`
  defaults to the `remote_datastore` value. The 'remote_cache_directory'
  defaults to 'packer_cache', similar to the local caching capabilities.

  Addresses issues with [GH-1218] and [GH-1221] where paths for uploaded
  ISO and floppy files are not written to a valid location in the
  datastore.
2014-09-10 00:10:06 -05:00
Mitchell Hashimoto
75395af12d Merge branch '1064-fix-upload-file-permissions' of github.com:rasa/packer into rasa-1064-fix-upload-file-permissions
Conflicts:
	builder/parallels/common/step_upload_parallels_tools.go
	builder/vmware/common/step_upload_tools.go
	provisioner/chef-client/provisioner.go
	provisioner/chef-solo/provisioner.go
2014-09-08 13:20:46 -07:00
Mitchell Hashimoto
812ba35479 fmt 2014-09-08 10:28:21 -07:00
Mitchell Hashimoto
dc0de7da49 builder/amazon-ebs: don't clean up AMI if doesn't exist [GH-1469] 2014-09-08 09:53:20 -07:00
Rickard von Essen
365b44c5af parallels-iso: allow absolute output directory.
Fixes [GH-1466]
2014-09-08 11:00:59 +02:00
Mitchell Hashimoto
db90c16118 builder/amazon: support auto spot price discovery [GH-1465] 2014-09-06 10:44:12 -07:00
Mitchell Hashimoto
a587bd47a1 builder/amazon/ebs: clean up AMI in error [GH-1186] 2014-09-06 10:12:33 -07:00
Mitchell Hashimoto
669f26a108 Merge pull request #1186 from henrysher/ami-cleanup
Add the cleanup when the process of EBS AMI interrupted
2014-09-06 10:10:10 -07:00
Mitchell Hashimoto
7d1db44ca4 builder/amazon: clean up UI output for spot instances a bit 2014-09-05 16:58:17 -07:00
Mitchell Hashimoto
2e5f3da5c1 builder/amazon: fix {{uuid}} default not being replaced 2014-09-05 16:38:05 -07:00
Mitchell Hashimoto
3a69b8c1b8 Merge branch 'add-spot-instance-support' of github.com:henrysher/packer into henrysher-add-spot-instance-support
Conflicts:
	builder/amazon/common/run_config.go
	builder/amazon/ebs/builder.go
	builder/amazon/instance/builder.go
2014-09-05 16:30:22 -07:00
Mitchell Hashimoto
c9cc82d89e builder/amazon-chroot: add description with time created snapshot
[GH-1388]
2014-09-05 16:10:33 -07:00
Mitchell Hashimoto
e4dc5d31d8 builder/docker: support volumes 2014-09-05 15:48:42 -07:00
Mitchell Hashimoto
2e4882f0c3 builder/docker: can login to pull 2014-09-05 15:24:12 -07:00
Mitchell Hashimoto
622b9f459a builder/docker: lock around Login 2014-09-05 15:06:07 -07:00
Mitchell Hashimoto
d32b4b4f84 builder/docker: driver supports login/logout 2014-09-05 14:26:19 -07:00
Mitchell Hashimoto
5db91c84bf builder/amazon: string fields on device mappings can use variables 2014-09-05 12:38:19 -07:00
Mitchell Hashimoto
1a45b96674 builder/vmware: add VNC to vmx 2014-09-05 12:10:40 -07:00
Mitchell Hashimoto
b72605c2f6 builder/vmware: style 2014-09-05 12:01:07 -07:00
Mitchell Hashimoto
759c46487c builder/vmware-vmx: support http files 2014-09-05 11:59:46 -07:00
Mitchell Hashimoto
bfdc6ea6b7 builder/virtualbox: support http server for ovf [GH-1169] 2014-09-05 11:52:55 -07:00
Mitchell Hashimoto
c74f0c7cfe Merge branch '1082-add-boot-commands-to-vmx-and-ovf-builders' of github.com:rasa/packer into rasa-1082-add-boot-commands-to-vmx-and-ovf-builders
Conflicts:
	builder/virtualbox/ovf/config.go
	builder/vmware/vmx/config.go
2014-09-05 11:42:01 -07:00
Mitchell Hashimoto
71d0c39ef9 builder/vmware: better error if clone not supported [GH-787] 2014-09-05 11:28:43 -07:00
Mitchell Hashimoto
ac58773eed builder/vmware: better error output from vmrun 2014-09-05 11:27:33 -07:00
Mitchell Hashimoto
f32d9879dc builder/docker: error if DOCKER_HOST is set 2014-09-05 11:13:54 -07:00
Mitchell Hashimoto
caca50324e Merge pull request #1426 from jasonberanek/vnc-fixes
vmware-iso/esxi: fix multiple issues with VNC address discovery
2014-09-05 10:45:17 -07:00
Mitchell Hashimoto
cf731bf65c builder/vmware: no error if stopping already stopped [GH-1300] 2014-09-05 10:29:35 -07:00
Mitchell Hashimoto
b9f82ef17e fmt 2014-09-05 10:23:49 -07:00
Mitchell Hashimoto
9b2039121f builder/virtualbox-ovf: import_flags [GH-1383] 2014-09-05 10:23:37 -07:00
Mitchell Hashimoto
863e06a614 builder/virtualbox: comment 2014-09-05 09:59:39 -07:00
Mitchell Hashimoto
f54f09d7a3 builder/virtualbox: detect vboxmanage errors with zero code [GH-1119] 2014-09-05 09:57:30 -07:00
Mitchell Hashimoto
b5c0c63ebc builder/googlecompute: use new auth scheme 2014-09-05 09:47:20 -07:00
Mitchell Hashimoto
ed377c9ff0 builder/amazon-instance: --no-filter by default [GH-1137] 2014-09-05 09:32:35 -07:00
Mitchell Hashimoto
ba07866774 Merge pull request #1461 from rickard-von-essen/issue_1404
parallels-pvm: Optionally assign new MAC addresses to imported VMs
2014-09-05 09:27:09 -07:00
Vasiliy Tolstov
6c6f3c24a5 add v2 api support
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2014-09-05 18:49:37 +04:00
Rickard von Essen
5ad7737d55 parallels-pvm: Optionally assign new MAC addresses to imported VMs [GH-1404]
New config option:
reassign_mac (boolean) - If this is "false" the MAC address of the first
NIC will reused when imported else a new MAC address will be generated by
Parallels. Defaults to "false".
2014-09-05 11:33:28 +02:00
Mitchell Hashimoto
0776d9de34 builder/amazon: ssh_private_ip [GH-1229] 2014-09-04 21:48:14 -07:00
Mitchell Hashimoto
bac54a6645 builder/amazon/common: token [GH-1236] 2014-09-04 21:19:20 -07:00
Mitchell Hashimoto
69cd01bbe2 builder/amazon/common: wait for instance ready before tagging [GH-1367] 2014-09-04 18:43:35 -07:00
Mitchell Hashimoto
77bd024079 builder/*: fix flaky tests, get tests passing 2014-09-04 18:11:05 -07:00
Mitchell Hashimoto
5cb7355814 builder/docker: change commit to the opt-in, special case build steps
/cc @andytson - Wanted to CC you in here so you could see some changes I
made.

First, I changed commit to opt-in, so you set "commit": true to get
commit behavior. This simplifies the logic a bit. Then, I removed the
skipping for StepExport and StepCommit and put that into the Builder
itself. This simplifies those steps (limits abstraction leakage).
Otherwise, everything looks great!
2014-09-04 18:03:15 -07:00
Mitchell Hashimoto
cb2c405d88 Merge branch 'feature/docker-image' of github.com:andytson/packer into andytson-feature/docker-image
Conflicts:
	config.go
2014-09-04 17:56:47 -07:00
Mitchell Hashimoto
b267c3eb4a builder/docker: wait for tail to end when running remote command 2014-09-04 17:24:09 -07:00
Mitchell Hashimoto
c139aa3b71 builder/docker: style 2014-09-04 17:07:21 -07:00
Mitchell Hashimoto
74a4f27a16 buidler/docker: remove container [GH-1206] [GH-1095] 2014-09-04 17:03:24 -07:00
Mitchell Hashimoto
67afff5ede fmt 2014-09-03 21:27:54 -07:00
Mitchell Hashimoto
dc74c2bbdd builder/amazon: tests 2014-09-03 21:27:43 -07:00
Mitchell Hashimoto
c0f9dbde41 builder/virtualbox: search VBOX_MSI_INSTALL_PATH [GH-1337] 2014-09-03 21:08:57 -07:00
Mitchell Hashimoto
749baa19c4 builder/virtualbox/iso: append timestamp to name [GH-1365] 2014-09-03 20:54:02 -07:00
Mitchell Hashimoto
28de122579 builder/virtualbox: fix typo 2014-09-03 20:33:22 -07:00
Mitchell Hashimoto
94f385ecf9 builder/virtualbox: error if guest additions URL can't be read [GH-1439] 2014-09-03 20:30:16 -07:00
Mitchell Hashimoto
76a8221636 builder/*: extract key path to ssh.Signer 2014-09-03 20:23:39 -07:00
Mitchell Hashimoto
6bbf64c5ab builder/qemu: use 512M for -m [GH-1444] 2014-09-02 11:19:12 -07:00
Mitchell Hashimoto
90d4bcdbe8 builder/digitalocean: region supports vars [GH-1452] 2014-09-02 11:16:39 -07:00
Mitchell Hashimoto
953fd27a27 Merge pull request #1167 from rasa/1057-add-floppy-files-to-vmware-vmx-v2
builder/vmware-vmx: add floppy_files support
2014-09-02 11:09:25 -07:00
Mitchell Hashimoto
8d88aaf150 Merge pull request #1168 from rasa/972-add-clone-support-for-vmware-player-6-v2
builder/vmware: add VMWare Player 6 support
2014-09-02 11:08:18 -07:00
Mitchell Hashimoto
c185fa42f3 Merge pull request #1200 from zigg/feature/virtualbox-iso-sata
builder/virtualbox: implement `iso_interface` setting
2014-09-02 10:56:57 -07:00
Mitchell Hashimoto
2a9cb50b17 builder/amazon: fix broken build 2014-09-02 10:17:52 -07:00
Mitchell Hashimoto
ba3bae8a65 Merge pull request #1239 from StefanScherer/fix_skip_floppy_in_vmx_data_post_step
builde/vmware: skip adding floppy again in vmx_data_post step
2014-09-02 10:02:17 -07:00
Mitchell Hashimoto
825864a9ea Merge branch 'additional-user-variables' of github.com:nBerg/packer into nBerg-additional-user-variables
Conflicts:
	builder/amazon/common/run_config.go
2014-09-02 09:57:52 -07:00
Mitchell Hashimoto
752162c234 fmt 2014-09-02 09:55:06 -07:00
Mitchell Hashimoto
5d1c1e6716 Merge pull request #1373 from anthonybishopric/debug_bundle_commands
builder/amazon-instance: Debug the evaluated bundle commands
2014-09-02 09:49:12 -07:00
Mitchell Hashimoto
e8889e56ed Merge pull request #1381 from pas256/chroot-hvm
builder/amazonchroot: can build both PV and HVM images
2014-09-02 09:47:53 -07:00
Mitchell Hashimoto
dac078b451 Merge pull request #1360 from jmassara/ee_fix
builder/amazon-chroot: Fix bug with getting ec2 connection instead of source image
2014-09-02 09:46:10 -07:00
Mitchell Hashimoto
4ef3874467 builder/virtualbox-*: seed RNG [GH-1386] 2014-09-02 09:35:59 -07:00
Mitchell Hashimoto
78c534227a Merge branch 'master_add_support_for_tcg_accel_in_qemu_builder_' of github.com:mattthias/packer into mattthias-master_add_support_for_tcg_accel_in_qemu_builder_
Conflicts:
	builder/qemu/builder.go
	website/source/docs/builders/qemu.html.markdown
2014-09-02 09:31:53 -07:00
Mitchell Hashimoto
88c186df39 Merge branch 'master' of github.com:matthbak/packer into matthbak-master
Conflicts:
	builder/qemu/step_run.go
2014-09-02 09:24:31 -07:00
Mitchell Hashimoto
3827c02126 Merge pull request #1396 from ianunruh/feature/vmware-ssh-host-template
builder/vmware: Add templating to VMware SSH host option
2014-09-02 09:19:50 -07:00
Mikhail Zholobov
16cb6f60c8 builder/parallels: "guest_os_distribution" renamed to "guest_os_type".
"guest_os_distribution" become deprecated and is not required anymore.
But if it is defined (in outdated templates),then the value will be copied to "guest_os_type" and warning will be displayed.
2014-09-02 18:14:50 +04:00
Mikhail Zholobov
bed6270288 builder/parallels: Detect path to Parallels Tools ISO automatically.
'parallels_tools_host_path' param is deprecated
'parallels_tools_flavor' is added (mandatory).
2014-09-02 18:14:26 +04:00
Mikhail Zholobov
40c169f757 builder/parallels: Added 'StepPrepareParallelsTools' 2014-09-02 18:14:26 +04:00
Mikhail Zholobov
13b355eaf0 builder/parallels: Added 'ToolsConfig' struct 2014-09-02 18:13:40 +04:00
Mikhail Zholobov
909d5ccb54 builder/parallels: 'ToolsIsoPath' added 2014-09-02 11:02:03 +04:00
Mitchell Hashimoto
668bd51fa2 Merge pull request #1410 from msabramo/openstack_builder_blank_keypair_is_error
builder/openstack: error out when gets blank keypair
2014-09-01 21:44:41 -07:00
Mitchell Hashimoto
18a4a4d5ea Merge pull request #1407 from hiroyuki-sato/patch_for_packer
builder/qemu: add machine_type option for qemu builder.
2014-09-01 21:39:06 -07:00
Mitchell Hashimoto
1c58f8f210 Merge pull request #1418 from msabramo/openstack_builder_region_not_mandatory
builder/openstack: Make region not required if not rackspace
2014-09-01 21:36:05 -07:00
Mitchell Hashimoto
704648896e Merge pull request #1425 from dysinger/1424-amazon-instance-s3-region-not-url
builder/amazon-instance: Use Region not S3Endpoint (see Issue 1424)
2014-09-01 21:31:36 -07:00
Mitchell Hashimoto
5c09afe22c Merge pull request #1448 from vtolstov/simple
builder/digitalocean: add ability to set api url in template
2014-09-01 21:23:41 -07:00
Ulf Mansson
bebca3bfae It's not necessary to use an instance-store image to build an instance-store image, see this example http://sorcery.smugmug.com/2014/01/29/instance-store-hvm-amis-for-amazon-ec2/ so there should be no restriction on the ExpectedRootDevice 2014-08-29 09:22:27 +02:00
Vasiliy Tolstov
e18f0f7f5b fix missing parts
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2014-08-28 22:24:31 +04:00
Vasiliy Tolstov
4166c63732 add ability to set api url in template
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2014-08-28 16:53:07 +04:00
Rickard von Essen
f9cddd2e18 builder/parallels: Added some navigation keys. Fixes [GH-1442] 2014-08-26 01:00:58 +02:00
Mikhail Zholobov
fc2d695b0f builder/parallels: Added compatibility with Parallels Desktop 10 2014-08-24 07:38:24 +04:00
Mikhail Zholobov
10be7e27de builder/parallels: Added platform check 2014-08-24 07:30:29 +04:00
Mikhail Zholobov
9ad2b98673 builder/parallels: Removed config parameter 'ostype'
We have to set either 'ostype' or 'distribution', but not both.
2014-08-24 07:30:29 +04:00
Rickard von Essen
732c767bfd parallels: Support for Parallels Desktop 10 2014-08-23 20:23:13 +02:00
Fabio Rapposelli
d2a9a98eeb Fixed multiple VMware typos. 2014-08-22 10:07:36 +02:00
Jason A. Beranek
ebdfa2bc56 vmware-iso/driver-esxi: Fix VNC detection of used ports
Fixes error in earlier commit that didn't properly detect a port
  was listened to.
2014-08-20 20:42:05 -05:00
Matt Page
8f237b7b94 Allow specifying project for source images in GCE
Within GCE, images may be shared across projects. Prior to this
commit, there was no way to inform the GCE builder that a source
image belonged to a specific project. This adds an optional
'source_image_project_id' key to the GCE builder config.
2014-08-20 10:20:28 -07:00
Jason A. Beranek
93e4475d6a vmware-iso/driver-esxi: Detect VNC in cross-platform way [GH-1372]
Use VMware calls to determine ports being listened to, and determine
  free VNC port
2014-08-18 21:50:48 -05:00
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
Mitchell Hashimoto
54ab8cc520 Merge pull request #378 from justinsb/increase_ssh_timeout
builder/openstack: Increase default SSH timeout from 1m -> 5m
2013-09-01 23:49:13 -07:00
Justin Santa Barbara
4b8a546932 Increase default SSH timeout for OpenStack from 1m -> 5m
Many cloud providers have a minimum charge of 1 hour, and if there are DNS problems we can hit the 1 minute timeout easily.

Waiting five minutes gives more of a margin of error.
2013-09-01 14:36:59 -07:00
Mark Peek
2ca48b4b6d builder/openstack: don't hardcode "DFW" and make region required 2013-09-01 13:22:22 -07:00
Justin Santa Barbara
27dd2aa30f Support IPv6 access address for Openstack
We still prefer the IPv4 address, but if there is an IPv6 address and no IPv4 address, use IPv6.
2013-08-31 22:39:30 -07:00
Mitchell Hashimoto
8abc6dd178 Merge pull request #375 from justinsb/avoid_nil_pointer_if_no_openstack_image
builder/openstack: If no image is generated, just return nil
2013-08-31 22:01:55 -07:00
Justin Santa Barbara
6ebfb9e142 If no image is generated, just return nil for the Openstack provider
This mirrors what is done in other providers e.g. Amazon providers
2013-08-31 21:55:52 -07:00
Mitchell Hashimoto
d8b048662f builder/digitalocean: retry destroy a few times 2013-08-31 21:32:35 -07:00
Mitchell Hashimoto
0231d798e4 builder/amazon/instance: new multistep API 2013-08-31 13:03:13 -07:00
Mitchell Hashimoto
b04cff5a9e builder/amazon/ebs: new multistep API 2013-08-31 13:00:43 -07:00
Mitchell Hashimoto
80ed7eddf4 builder/amazon/chroot: new multistep API 2013-08-31 12:58:55 -07:00
Mitchell Hashimoto
f74ff91166 builder/vmware: new multistep API 2013-08-31 12:50:25 -07:00
Mitchell Hashimoto
1a3620d77a builder/virtualbox: new multistep API 2013-08-31 12:44:58 -07:00
Mitchell Hashimoto
77f7f24990 builder/openstack: new multistep API 2013-08-31 12:37:07 -07:00
Mitchell Hashimoto
94b76036fc builder/digitalocean: new multistep API 2013-08-31 12:25:08 -07:00
Mitchell Hashimoto
8019cd1839 builder/amazon: don't chmod on windows 2013-08-30 15:04:23 -07:00
Mitchell Hashimoto
4bb320d86f builder/amazon: chmod debug key so it is ssh-ready 2013-08-30 15:03:29 -07:00
Mitchell Hashimoto
9186a7f214 builder/amazon: output DNS name if debug mode 2013-08-30 14:55:56 -07:00
Mitchell Hashimoto
57f185451a builder/amazon: drop private key if debug mode [GH-373] 2013-08-30 14:48:50 -07:00
Mitchell Hashimoto
d54b0bd629 builder/vmware: support key based SSH auth [GH-70] 2013-08-27 22:57:42 -07:00
Mitchell Hashimoto
a6735b1d65 builder/virtualbox: support ssh keys as auth mechanism [GH-70] 2013-08-27 22:55:13 -07:00
Mark Peek
30ab6572f7 builder/openstack: return artifacts 2013-08-27 22:37:06 -07:00
Mark Peek
276c023d84 builder/openstack: simplify by passing csp instead of accessor and api 2013-08-27 22:37:06 -07:00
Mitchell Hashimoto
1566b4d858 builder/vmware: support vmx_template_path [GH-270] 2013-08-27 17:23:28 -07:00
Mitchell Hashimoto
c753946c84 builder/vmware: ability to not request a PTY for SSH [GH-270] 2013-08-27 16:51:05 -07:00
Mitchell Hashimoto
2011e09847 Merge pull request #339 from mitchellh/do-soft-shutdown
builder/digitalocean: send a "shutdown" before snapshotting
2013-08-27 16:35:30 -07:00
Mark Peek
4b7da04052 Add base support for openstack [GH-155]
This change adds base support for an openstack builder.
Thank you to Rackspace for providing cloud assets to complete this work
and @sam-falvo for working with us on the perigee/gophercloud changes.
2013-08-26 21:57:23 -07:00
Mitchell Hashimoto
d857c9ccbb builder/amazon/chroot: implement UploadDir for chroot communicator 2013-08-25 20:30:56 -07:00
Jack Pearkes
315d4ce5f5 builder/digitalocean: send a "shutdown" before snapshotting
Instead of pulling the plug on a droplet with the "poweroff" command,
we first send a soft shutdown to the API, then we poweroff to allow
the snapshot to properly complete.

Sending just a shutdown and then snapshotting wasn't as reliable as
sending the poweroff manually, for reasons unknown to me.

This fixes #332.
2013-08-24 13:04:51 +02:00
Mitchell Hashimoto
f76a09fc08 builder/amazon/instance: remove check for AMI tools [GH-330] 2013-08-23 15:53:54 -07:00
Mitchell Hashimoto
251abc3496 builder/amazon: modify attributes before region copy
/cc @jmassara
2013-08-22 15:35:47 -07:00
Mitchell Hashimoto
42beac4516 builder/amazon/common: modify output for AMI copy 2013-08-22 15:32:24 -07:00
Mitchell Hashimoto
e7a50133b6 builder/amazon: support tags in chroot and instance 2013-08-22 15:11:54 -07:00
Mitchell Hashimoto
d03c852ac2 builder/amazon/common: move tags into ami_config 2013-08-22 15:09:21 -07:00
Mitchell Hashimoto
ef142ce886 builder/amazon: region copy must go before modify attributes
/cc @jmassara - This has to go before the modify attributes so that
the attributes are properly modified on all resulting AMIs.
2013-08-22 15:03:30 -07:00
Mitchell Hashimoto
a4f674f8ed builder/amazon/common: remove duplicates from ami_region
/cc @jmassara
2013-08-22 14:58:21 -07:00
Mitchell Hashimoto
71b9b5bfe0 Merge pull request #322 from jmassara/ami_region_copy
amazon/common: Added AMI CopyImage support
2013-08-22 14:44:03 -07:00
Justin Bronn
c6d1c8e9d5 Make it possible to customize the VMware virtual disk type id. 2013-08-22 11:40:56 -07:00
James Massara
c9de4c9644 Make sure ami_regions are valid 2013-08-21 18:44:14 -07:00
James Massara
228d0d593a amazon/common: Added AMI CopyImage support 2013-08-21 13:53:07 -07:00
Mitchell Hashimoto
7647b12eab builder/virtualbox: fmt 2013-08-19 16:24:29 -07:00
Mitchell Hashimoto
1fdaadb08c website: document formats feature 2013-08-19 16:10:49 -07:00
Johan Siebens
a19bd564d3 builder/virtualbox: export to ovf or ova (default ovf) 2013-08-19 20:21:36 +02:00
Mitchell Hashimoto
45f3ca13cb builder/digitalocean: use HTTP proxy if in env 2013-08-18 20:29:54 -06:00
Mitchell Hashimoto
c5823be2e0 builder/amazon: fix crash case if SIGINT while waiting for instance 2013-08-17 09:45:23 -06:00
Jack Pearkes
0dce7086dc builder/digitalocean: better handling of url params in api requests 2013-08-16 19:47:22 +02:00
Mitchell Hashimoto
3fc069c48b builder/vmware: interrupts work during VNC type on VMware 2013-08-16 09:07:27 -07:00
Mitchell Hashimoto
b49fe4971a builder/amazon: modifying more than one AMI attribute type works 2013-08-15 20:28:35 -07:00
Mitchell Hashimoto
64d87bfaf3 *: switch to packer ConfigTemplate 2013-08-15 19:17:23 -07:00
Mitchell Hashimoto
334cf37fbb builder/vmware: support iso_urls for multiple URLs [GH-110] 2013-08-15 17:46:41 -07:00
Mitchell Hashimoto
c0265d108a builder/virtualbox: iso_urls for multiple ISO urls [GH-110] 2013-08-15 17:46:41 -07:00
Mitchell Hashimoto
b872448758 builder/vmware: switch to common download step 2013-08-15 17:46:41 -07:00
Mitchell Hashimoto
0d152f541f builder/virtualbox: remove unused function 2013-08-15 17:46:40 -07:00
Mitchell Hashimoto
562ea28a79 builder/virtualbox: switch download guest additions to use new common 2013-08-15 17:46:40 -07:00
Mitchell Hashimoto
bb352e5011 common: Add new StepDownload to DRY up downloads 2013-08-15 17:46:40 -07:00
Mark Peek
91670cea07 builder/amazon: add block device mappings [GH-90] 2013-08-15 14:05:08 -07:00
Jeremy Carroll
0a0c0c89c6 Was missing sending IAM profile data to instance store builders. 2013-08-14 19:03:41 -07:00
Mitchell Hashimoto
71664cb34e common: return -1 download percent if download hasn't started [GH-288] 2013-08-14 11:15:47 -04:00
Mitchell Hashimoto
0ba17a1a50 builder/virtualbox: Don't validate guest additions URL so early because it requires template 2013-08-14 09:59:09 -04:00
Mitchell Hashimoto
171ecaefa6 builder/virtualbox: guest-additions_url can use Version var [GH-272] 2013-08-13 22:11:15 -04:00
Mitchell Hashimoto
2d2eefcf33 builder/virtualbox: instantiate driver in Run method 2013-08-13 08:55:33 -07:00
Mitchell Hashimoto
b879b17b1c builder/vmware: create driver in Run method 2013-08-13 08:54:12 -07:00
Mitchell Hashimoto
1b2d9c4044 builder/vmware: find files if they exist [GH-279] 2013-08-12 16:13:06 -07:00
Mitchell Hashimoto
c2506e9410 builder/vmware: fix windows builds 2013-08-12 14:01:50 -07:00
Mitchell Hashimoto
7cc9aa36ff builder/amazon/common: correct logic in deleting secutiry group 2013-08-12 13:43:52 -07:00
Mitchell Hashimoto
48b9da2feb builder/amazon/common: retry deleting security group [GH-278] 2013-08-12 13:34:55 -07:00
Mitchell Hashimoto
09fb6ca593 builder/amazon/all: support user data file 2013-08-12 11:53:50 -07:00
Mitchell Hashimoto
3ff3746969 builder/amazon/common: support user_data_file 2013-08-12 11:52:43 -07:00
Mitchell Hashimoto
f69b365f39 Merge pull request #253 from phobos182/master
builder/amazon/common: added passing UserData to goamz.
2013-08-12 11:36:15 -07:00
Mitchell Hashimoto
060ae56b2d builder/vmware: nitpick some styles
/cc @rasa - I changed up quite a bit here. I tried to reduce function
count if possible, renamed some functions, etc. Overall the
functionality was all spot on, but I felt the functions were too
specialized. Thanks!
2013-08-09 17:31:43 -07:00
Ross Smith II
1e18249da9 fixed typo in vmware path on Windows XP, fixes #237/#238 2013-08-09 17:10:05 -07:00
Ross Smith II
d4c45b412e Add support for VMWare Workstation on Windows XP, fixes #237 2013-08-09 17:09:55 -07:00
Mitchell Hashimoto
332bdf6edc builder/*, provisioner/*: set user vars 2013-08-09 15:57:08 -07:00
Jeremy Carroll
6599f5a255 Log error messages from goamz. 2013-08-09 11:55:34 -07:00
Mitchell Hashimoto
b4d18f9d30 builder/amazon/chroot: can modify AMI attributes 2013-08-08 22:52:39 -07:00
Mitchell Hashimoto
fd6dbc42d1 builder/amazon/common: rename StepModifyAttributes to
StepModifyAMIAttributes
2013-08-08 22:51:48 -07:00
Mitchell Hashimoto
bfc2ac1eaa builder/amazon/common: AMIConfig common config
/cc @jmassara - I pulled out the AMI stuff into a common config
struct and also added in the new template stuff (that didn't exist
when you made the pull, so not your fault! :))
2013-08-08 22:50:37 -07:00
Mitchell Hashimoto
96a91e9555 builder/amazon/common: on modify AMI attributes, skip if no work
/cc @jmassara
2013-08-08 22:46:50 -07:00
Mitchell Hashimoto
dcfbef4fc0 builder/amazon/common: use new API for goamz to set AMI attributes
/cc @jmassara
2013-08-08 22:43:29 -07:00
James Massara
2ba59617fc builder/amazon/all: Added support for setting attributes on the AMI 2013-08-08 22:35:21 -07:00
Mitchell Hashimoto
716d68bff3 builder/amazon: more efficient use of templates 2013-08-08 17:25:26 -07:00
Mitchell Hashimoto
c023588614 builder/vmware: error checking on upload path template 2013-08-08 17:25:25 -07:00
Mitchell Hashimoto
8bb5d40537 builder/vmware: use new template stuff 2013-08-08 17:25:25 -07:00
Mitchell Hashimoto
191520bc0b builder/virtualbox: use new template processing stuff 2013-08-08 17:25:25 -07:00
Mitchell Hashimoto
2b86d32675 builder/amazon: remove unnecessary validation 2013-08-08 17:25:25 -07:00
Mitchell Hashimoto
0a31fac749 builder/digitalocean: use new template processing 2013-08-08 17:25:25 -07:00
Mitchell Hashimoto
75ff149ac1 builder/amazon/instance: switch to new template stuff 2013-08-08 17:25:25 -07:00
Mitchell Hashimoto
c8a98683d5 builder/amazon/ebs: get rid of unnecessary template 2013-08-08 17:25:25 -07:00
Mitchell Hashimoto
5f34ec0ebc builder/amazon/chroot: switch to new template stuff 2013-08-08 17:25:25 -07:00
Mitchell Hashimoto
7ab45f8529 builder/amazon/ebs: process templates for config 2013-08-08 17:25:25 -07:00
Mitchell Hashimoto
e6b7a47841 builder/amazon/common: RunConfig to template processing 2013-08-08 17:25:25 -07:00
Mitchell Hashimoto
96cc8a4aee builder/amazon/common: access config uses template processing 2013-08-08 17:25:25 -07:00
Mark Peek
9638a30d35 builder/amazon/all: address feedback for ami tag refactoring change
Use explicit name for Tag field and note tags added in the ui.
2013-08-07 19:37:41 -07:00
Jeremy Carroll
746ac9dee4 Convert string to byte array 2013-08-07 15:20:49 -07:00
Jeremy Carroll
4f02c506e9 Testing adding user-data support to Packer 2013-08-07 14:33:20 -07:00
Mark Peek
8a636519f8 builder/amazon/all: refactor ami tags [GH-233]
Refactor the EBS ami tag into a common step and add support
for instance-store ami tags.
/cc @jmassara
2013-08-06 15:05:03 -07:00
Mark Peek
413fc1b73a Merge pull request #233 from jmassara/tags
builder/amazon/ebs: Added tagging support for amazon/ebs AMIs
2013-08-06 15:01:32 -07:00
James Massara
69aa2d32ac Simplied Tags configuration 2013-08-06 07:33:00 -07:00
Andrei Serdeliuc
fbe648d9e1 fix check for vpcid
check for VpcId was incorrectly checking if VPC is empty, instead of not empty.
2013-08-05 16:19:05 +01:00
James Massara
8bffb4f17b Moved Tags configuration out of common and into ebs. 2013-08-03 20:09:14 -07:00
James Massara
9d0fdacedf removed Tags definition from RunConfig 2013-08-03 17:53:53 -07:00
Mitchell Hashimoto
8286536180 builder/amazon/common: sleep between API calls for SSHAddr 2013-08-03 16:38:21 -07:00
Mitchell Hashimoto
4acdeb2832 builder/amazon/common: be more gentle on AWS API while getting SSHAddr 2013-08-03 16:37:34 -07:00
Mitchell Hashimoto
798b7cb25f builder/amazon/all: use new SSHAddress method [GH-243] 2013-08-03 16:24:49 -07:00
Mitchell Hashimoto
a21997db7f builder/amazon/common: refresh instance while connecting to SSH [GH-243] 2013-08-03 16:23:32 -07:00
James Massara
1ff7cc28fe removed amiId temp variable 2013-08-01 18:35:43 -07:00
James Massara
d6f8411c43 Adds support for adding tags to the AMI 2013-08-01 16:38:22 -07:00
James Massara
096a64ad92 Adds support for adding tags to the AMI 2013-08-01 16:31:07 -07:00
Mitchell Hashimoto
5b7d8fbc74 rename builder/common to common since it is generally useful 2013-08-01 12:11:54 -07:00
Mitchell Hashimoto
6b2c2db77e builder/vmware: slightly nicer error messages 2013-07-31 22:52:36 -07:00
Mitchell Hashimoto
69d6d8f1b6 builder/vmware: error message tweaking for Player driver 2013-07-31 22:15:13 -07:00
Julian Phillips
df180d6146 builder/vmware: We only need one runAndLog function
We shouldn't need a different one for each driver ...

Conflicts:
	builder/vmware/driver_workstation9.go
2013-07-31 22:11:07 -07:00
Julian Phillips
7b65daad37 builder/vmware: Add Support for VMware Player 5 (Linux)
We have two choices for VMware on Linux.  We already support
Workstation, add support for Player too.

VMware Player doesn't come with vmware-vdiskmanager, so fall back to
using qemu-img if we can find that.

Conflicts:
	builder/vmware/driver.go
2013-07-31 22:09:38 -07:00
Mitchell Hashimoto
54adabfd39 builder/vmware: sleep before cleaning files on Windows 2013-07-31 15:36:22 -07:00
Mitchell Hashimoto
d76b7e8c36 fmt 2013-07-31 15:29:03 -07:00
Mitchell Hashimoto
0f39a4451c Merge pull request #228 from markpeek/markpeek-images
builder/amazon/common: handle missing source AMI error
2013-07-31 15:28:37 -07:00
Mitchell Hashimoto
558027465a builder/virtualbox,vmware: retry removing output dir if fails 2013-07-31 15:16:39 -07:00
Mitchell Hashimoto
8ac03e4898 builder/vmware: compile host_ip on every platform 2013-07-31 15:10:28 -07:00
Mitchell Hashimoto
1286f735be builder/vmware: redo host IP stuff for Windows 2013-07-31 14:46:12 -07:00
Mark Peek
1aec0d6a50 Handle missing source AMI error
Specifying a non-existent source AMI will result in an empty array of
images in the response which would cause an "index out of range" panic.
This change handles this case more gracefully with an error message.
2013-07-31 14:20:25 -07:00
Mitchell Hashimoto
f4adb35b9a builder/vmware: more logs for Workstation 2013-07-31 14:02:00 -07:00
Mitchell Hashimoto
6aacf20167 builder/vmware: convert line endings in workstation to Unix-style 2013-07-31 13:58:57 -07:00
Mitchell Hashimoto
8ac86e49d0 builder/vmware: improved logging for various workstation steps 2013-07-31 13:50:49 -07:00
Mitchell Hashimoto
d1e0e955ab builder/vmware: verify various paths exist for Workstation 2013-07-31 12:39:49 -07:00
Mitchell Hashimoto
422f25749e builder/vmware: refactor the platform-specific stuff out
/cc @rasa - This is more idiomatic Go: to share the platform-independent
stuff and make the platform-specific stuff unexported functions
2013-07-31 12:36:17 -07:00
Mitchell Hashimoto
fc89919347 Merge branch 'master' of https://github.com/rasa/packer into rasa-master 2013-07-31 11:52:20 -07:00
Mitchell Hashimoto
92ba998150 fmt 2013-07-31 11:41:07 -07:00
James Massara
13fb00b2c6 Added IAM Instance Profile support
Conflicts:
	builder/amazon/common/run_config.go
2013-07-31 11:40:59 -07:00
Mitchell Hashimoto
006f0440a7 builder/amazon/common: wait for terminated state 2013-07-31 09:37:43 -07:00
Mitchell Hashimoto
f2f69e6f7b builder/amazon/ebs: don't need this variable 2013-07-31 09:35:26 -07:00
Mitchell Hashimoto
a2481f2300 builder/amazon/common: prefer public DNS if possible for SSH 2013-07-31 09:30:52 -07:00
Mitchell Hashimoto
19b6841e64 builder/common: channels instead of unsafe read/write for communicate 2013-07-31 09:23:04 -07:00
Mitchell Hashimoto
818a10e797 builder/amazon/chroot: use set AMI name 2013-07-30 22:33:41 -07:00
Mitchell Hashimoto
743682d352 builder/amazon/chroot: default volumes dir is relative 2013-07-30 22:31:07 -07:00
Mitchell Hashimoto
07ed22b4fa builder/amazon/chroot: validate that chroot_mounts are 3 elements 2013-07-30 22:29:27 -07:00
Mitchell Hashimoto
c0f64f3a1d builder/amazon/chroot: let go of flock earlier for parallelism 2013-07-30 22:25:33 -07:00
Mitchell Hashimoto
3865c33be1 builder/amazon/chroot: fix compilaton on Windows 2013-07-30 21:50:59 -07:00
Mitchell Hashimoto
cf99f85f6d builder/amazon/chroot: flock so that device searching is safe 2013-07-30 21:48:37 -07:00
Mitchell Hashimoto
b75bd29bfd builder/amazon/chroot: find available device 2013-07-30 21:19:57 -07:00
Mitchell Hashimoto
7857406f3e builder/amazon/chroot: get rid of AttachedDevicePath 2013-07-30 20:48:07 -07:00
Mitchell Hashimoto
d23ad907c0 builder/amazon/chroot: register AMI 2013-07-30 18:28:21 -07:00
Mitchell Hashimoto
3667340768 builder/amazon/chroot: switch func type to interface
Was getting weird behavior... see
https://groups.google.com/d/msg/golang-nuts/a1kymwSVt2M/FwcCuBl1_48
2013-07-30 17:56:42 -07:00
Mitchell Hashimoto
668631bd87 builder/amazon/common: correct the log statement 2013-07-30 17:32:41 -07:00
Mitchell Hashimoto
be5fa9ecdb builder/amazon/chroot: log the exit code for the chroot communicator 2013-07-30 17:23:37 -07:00
Mitchell Hashimoto
8bffbb6f44 builder/amazon/chroot: step to snapshot the root image 2013-07-30 16:58:58 -07:00
Mitchell Hashimoto
e418727a09 builder/amazon/chroot: initial len should be 0 so we don't have empty 2013-07-30 16:45:49 -07:00
Mitchell Hashimoto
056292b1dc builder/amazon/chroot: perform early cleanup 2013-07-30 16:41:29 -07:00
Mitchell Hashimoto
2f4bf61f09 builder/amazon/chroot: make sure to remove files before copy 2013-07-30 16:07:50 -07:00
Mitchell Hashimoto
aaaad835f6 builder/amazon/chroot: copyfiles support 2013-07-30 16:07:50 -07:00
Mitchell Hashimoto
7ae0f3bafe builder/amazon/chroot: upload should os.Create, not os.Open 2013-07-30 16:07:50 -07:00
Mitchell Hashimoto
5feb11cbb7 builder/amazon/chroot: enable the chroot provisioner 2013-07-30 16:07:50 -07:00
Mitchell Hashimoto
8d3cf7aa59 builder/amazon/chroot: provision within the chroot 2013-07-30 16:07:50 -07:00
Mitchell Hashimoto
e0adf3b64e builder/amazon/chroot: unmount in reverse 2013-07-30 16:07:50 -07:00
Mitchell Hashimoto
8cc3743daf builder/amazon/chroot: special case bind fstype 2013-07-30 16:07:50 -07:00
Mitchell Hashimoto
af2d314819 builder/amazon/chroot: /bin/sh 2013-07-30 16:07:50 -07:00
Mitchell Hashimoto
d7f932244f builder/amazon/chroot: mount extra paths 2013-07-30 16:07:50 -07:00
Mitchell Hashimoto
618e1b1678 builder/amazon/chroot: process MountPath template 2013-07-30 16:07:49 -07:00
Mitchell Hashimoto
8d5f404fa7 builder/amazon/chroot: use the attached device path 2013-07-30 16:07:49 -07:00
Mitchell Hashimoto
54d020b8c3 builder/amazon/chroot: use mountcommand configs 2013-07-30 16:07:49 -07:00
Mitchell Hashimoto
1c34e35574 builder/amazon/chroot: mount the root device 2013-07-30 16:07:49 -07:00
Mitchell Hashimoto
ec526d97aa builder/amazon/chroot: more settings, validation 2013-07-30 16:07:49 -07:00
Mitchell Hashimoto
cffb35ab33 builder/amazon/chroot: improved logging about what volume created 2013-07-30 16:07:49 -07:00
Mitchell Hashimoto
25eca62986 builder/amazon/chroot: fix types 2013-07-30 16:07:49 -07:00
Mitchell Hashimoto
76071eafc6 builder/amazon/chroot: only let it run on Linux 2013-07-30 16:07:49 -07:00
Mitchell Hashimoto
bbcb2ea46b builder/amazon/chroot: put device in state bag 2013-07-30 16:07:49 -07:00
Mitchell Hashimoto
b4435f6890 builder/amazon/chroot: more valid transition states while detaching 2013-07-30 16:07:49 -07:00
Mitchell Hashimoto
033218df0d builder/amazon/chroot: Attach volume 2013-07-30 16:07:49 -07:00
Mitchell Hashimoto
12e7042c5b builder/amazon/chroot: wait for volume to beecome ready 2013-07-30 16:07:49 -07:00
Mitchell Hashimoto
c7b88d654e builder/amazon/common: generic wait for state to wait for any state 2013-07-30 16:07:48 -07:00
Mitchell Hashimoto
4773b48794 builder/amazon/chroot: delete the EBS volume after we're done 2013-07-30 16:07:48 -07:00
Mitchell Hashimoto
3a416bb105 builder/amazon/chroot: step to gather instance info 2013-07-30 16:07:48 -07:00
Mitchell Hashimoto
fa92377ae5 builder/amazon/chroot: create the volume 2013-07-30 16:07:48 -07:00
Mitchell Hashimoto
e24cbc1870 builder/amazon/chroot: extract the source AMI info 2013-07-30 16:07:48 -07:00
Mitchell Hashimoto
7f854902ec builder/amazon/chroot: verify we're on an EC2 instance 2013-07-30 16:07:48 -07:00
Mitchell Hashimoto
d166433d4a builder/amazon/chroot: rename to builder-amazon-chroot 2013-07-30 16:07:48 -07:00
Mitchell Hashimoto
b645586d58 builder/amazon/chroot: boilerplate 2013-07-30 16:07:48 -07:00
Mitchell Hashimoto
0363a1cdc2 builder/virtualbox,vmware: use DownloadableURL 2013-07-29 00:13:30 -07:00
Mitchell Hashimoto
3ae0b2f0a5 builder/common: Don't prepend slash to URL path if path is empty 2013-07-29 00:13:30 -07:00
Mitchell Hashimoto
c06c1fee45 builder/common: make rel path absolute in DownloadableURL [GH-215] 2013-07-29 00:13:30 -07:00
Mitchell Hashimoto
8db5390553 builder/common: add DownloadableURL to remove duplication parsing URLs 2013-07-29 00:13:30 -07:00
Ross Smith II
cf46148300 added missing fallthru in case statement for linux option, fixes #221, #222 2013-07-28 20:41:09 -07:00
Ross Smith II
56c383cf68 gofmt fixes, improved/added log messages, fixes #221/#222 2013-07-27 14:59:23 -07:00
Ross Smith II
071a6099c8 fixes #221 Add support for VMWare Workstation in Windows 2013-07-27 13:00:21 -07:00
Mitchell Hashimoto
83aca618d8 builder/amazon/common: wait for AMI to be available [GH-207] 2013-07-26 09:38:16 -07:00
Mitchell Hashimoto
ce5849308b fmt 2013-07-25 20:49:39 -05:00
Mitchell Hashimoto
1d0adbf2c2 builder/amazon/*: sigint while waiting for state change works 2013-07-25 20:49:15 -05:00
Jeff Stamerjohn
32eaa39a5f Merge branch 'master' into jstamerj/windows 2013-07-25 09:31:02 -07:00
Jeff Stamerjohn
4ff0185add Windows fixes
Strip carriage returns from end of lines in virtualbox/driver.go, fixing wait for virtualbox host shutdown.
Fix target upload directory path in communicator.go to use forward slashes.  (When running on windows path/filepath returns backslashes...which does not work when the target host is unix).
2013-07-25 09:28:04 -07:00
Mitchell Hashimoto
fc39042283 builder/amazon/instance: default x509_upload_path 2013-07-25 10:51:38 -05:00
Mitchell Hashimoto
d46741e4f7 builder/amazon/*: wait for AMI to be ready in common, use it instance 2013-07-25 00:56:37 -05:00
Mitchell Hashimoto
b5fdab407f builder/amazon/instance: register AMI using API 2013-07-25 00:45:55 -05:00
Mitchell Hashimoto
0552bc7306 builder/amazon/instance: register the AMI 2013-07-25 00:19:04 -05:00
Mitchell Hashimoto
03a2cc8b22 builder/amazon/instance: prefix has CreateTime support 2013-07-24 23:51:46 -05:00
Mitchell Hashimoto
c504beacc6 builder/amazon/instance: upload bundle 2013-07-24 23:29:21 -05:00
Mitchell Hashimoto
877172166b builder/amazon/instance: bundle volume and keep track of dir 2013-07-24 23:22:16 -05:00
Mitchell Hashimoto
63474f47e4 builder/amazon/instance: run ec2-bundle-vol in batch mode 2013-07-24 22:51:59 -05:00
Mitchell Hashimoto
d3d7bfe876 builder/amazon/instance: sudo the ec2-bundle-vol by default 2013-07-24 16:07:33 -05:00
Mitchell Hashimoto
7763411914 builder/amazon/instance: detect error bundling 2013-07-24 15:44:58 -05:00
Mitchell Hashimoto
c1361b0cf5 builder/amazon/instance: ec2-bundle-vol is called 2013-07-24 15:43:35 -05:00
Mitchell Hashimoto
fd43c27de1 builder/amazon/instance: check for the ami tools 2013-07-23 23:19:44 -05:00
Mitchell Hashimoto
110fd0e17f builder/amazon/common: SSH into private IP if in VPC 2013-07-23 22:48:33 -05:00
Mitchell Hashimoto
dd1c4d4d2a fmt 2013-07-23 22:48:33 -05:00
Mitchell Hashimoto
c710323f04 builder/amazon/*: Fix failing tests from rebase of VPC 2013-07-23 22:48:33 -05:00
Mitchell Hashimoto
f94500b324 builder/amazon/instance: boilerplate for bundle volume 2013-07-23 22:48:33 -05:00
Mitchell Hashimoto
2674bdc96d builder/amazon/instance: after upload x509, should continue 2013-07-23 22:48:33 -05:00
Mitchell Hashimoto
39b3b18d81 builder/amazon/instance: upload x509 cert 2013-07-23 22:48:33 -05:00
Mitchell Hashimoto
e85a01d9da fmt 2013-07-23 22:48:32 -05:00
Mitchell Hashimoto
992a9bfb22 builder/amazon/common: extract Artifact 2013-07-23 22:48:32 -05:00
Mitchell Hashimoto
0a76d07363 builder/amazon: provision on instance 2013-07-23 22:48:32 -05:00
Mitchell Hashimoto
2f9840a4cf builder/amazon: extract SSH connect funcs 2013-07-23 22:48:32 -05:00
Mitchell Hashimoto
64ced7ff2c builder/amazon: extract StepRunSourceInstance 2013-07-23 22:48:32 -05:00
Mitchell Hashimoto
30ab70388b builder/amazon/common: panic if SSHPot is 0 2013-07-23 22:48:32 -05:00
Mitchell Hashimoto
4f568f4998 builder/amazon: extract StepSecurityGroup 2013-07-23 22:48:32 -05:00
Mitchell Hashimoto
45096d0768 builder/amazon: extract StepKeyPair for both 2013-07-23 22:48:32 -05:00
Mitchell Hashimoto
b3edb2fba5 fmt 2013-07-23 22:48:32 -05:00
Mitchell Hashimoto
1750b34f70 builder/amazon/*: clean up tests 2013-07-23 22:48:32 -05:00
Mitchell Hashimoto
60ed71b2ff builder/amazon/common: tests for runconfig 2013-07-23 22:48:32 -05:00
Mitchell Hashimoto
56c3cbfb2a builder/common: common config struct for Packer configs 2013-07-23 22:48:31 -05:00
Mitchell Hashimoto
4878cec0e4 builder/amazon/ebs: validate access config 2013-07-23 22:48:31 -05:00
Mitchell Hashimoto
e5e306049c builder/amazon/common: RunConfig for launch info 2013-07-23 22:48:31 -05:00
Mitchell Hashimoto
5aced3f339 builder/amazon/common: AccessConfig for standard access config 2013-07-23 22:48:31 -05:00
Mitchell Hashimoto
980841b6c0 builder/amazon/instance: boilerplate 2013-07-23 22:48:31 -05:00
Mitchell Hashimoto
56cf09f29e builder/virtualbox: shutdown messages go to Ui 2013-07-23 22:42:39 -05:00
Mitchell Hashimoto
665b03a342 fmt 2013-07-23 22:36:09 -05:00
Rafael Garcia
1ad53e1050 builder/amazon/ebs: support launching in VPC
adds `vpc_id` and `subnet_id` to builder config

depends on https://github.com/mitchellh/goamz/pull/4
2013-07-21 00:44:14 -07:00
Mitchell Hashimoto
f6854ae07e builder/vmware: more flexible ISO removing
/cc @timsutton - This is a bit more flexible.
2013-07-20 19:08:20 -07:00
Mitchell Hashimoto
e05e83f9c8 Merge pull request #203 from timsutton/vmware-eject-isos
builder/vmware: Remove ISO from ide1 in stepCleanVMX
2013-07-20 16:59:55 -07:00
Mitchell Hashimoto
91c1bf0b8a Merge pull request #204 from sit/builder-output-directory-error
builder/v*: Include path to output dir in error
2013-07-20 16:58:39 -07:00
Mitchell Hashimoto
d999d1c5dd Merge pull request #205 from sit/preserve-cache-suffix
Preserve suffix of files put in the cache.
2013-07-20 16:40:31 -07:00
Mitchell Hashimoto
e84811e2f8 Update changelog 2013-07-20 16:37:48 -07:00
JD Harrington
dbd45dfd58 Add special keys for backspace, delete and F1-F12 2013-07-20 15:37:01 -04:00
Emil Sit
329266e86e builder/v*: Include path to output dir in error 2013-07-20 00:36:59 -04:00
Emil Sit
e171477e15 Revert "builder/virtualbox: Copy ISO because VirtualBox can't recognize"
This reverts commit 688be43811007d33b9c70dec93b43782a4f71c06; instead
of copying the ISO (which can be huge), we have adjusted the cache path
to include the extension of the source file.

Conflicts:

	builder/virtualbox/step_download_iso.go
2013-07-20 00:26:46 -04:00
Timothy Sutton
0c7efde103 Remove ISO from ide1 in stepCleanVMX 2013-07-19 20:46:26 -04:00
Mitchell Hashimoto
16d102d055 builder/*: switch to MultiErrorAppend 2013-07-19 19:08:25 -04:00
Mitchell Hashimoto
a61f178606 builder/common: CheckUnusedConfig 2013-07-19 15:09:13 -04:00
Mitchell Hashimoto
42059f9b07 builder/*: extract to common the config decoding 2013-07-19 15:00:32 -04:00
Mitchell Hashimoto
e84669aa37 builder/common: extract out decode config 2013-07-19 14:59:04 -04:00
Doug MacEachern
e531af96e1 fix Fusion DhcpLeasesPath 2013-07-17 13:03:05 -07:00
Mitchell Hashimoto
9d31a49fad builder/vmware: look for license for WS9 2013-07-16 14:58:16 -07:00
Mitchell Hashimoto
d126c45d77 builder/vmware: workstation 9 show stderr if command fails 2013-07-16 14:46:34 -07:00
Mitchell Hashimoto
a9252959ba builder/vmware: wording 2013-07-16 14:23:52 -07:00
Mitchell Hashimoto
05e081e07f builder/vmware: split drivers out into individual files 2013-07-16 14:23:01 -07:00
Julian Phillips
4846d252a3 builder/vmware: Add support for Workstation 9 (Linux).
Now the VMware builder should automatically pick between Fusion 5 and
Workstation 9, based on which one is installed.
2013-07-16 14:11:59 -07:00
Mitchell Hashimoto
59c89faaf4 builder/common: only count handshake error if auth tried 2013-07-16 11:15:47 -07:00
Mitchell Hashimoto
29279415d0 builder/vmware: error if guest IP is blank [GH-189] 2013-07-16 11:05:47 -07:00
Mitchell Hashimoto
8e1e40c096 builder/*: convert to common StepProvision 2013-07-16 15:44:41 +09:00
Mitchell Hashimoto
f170c6f564 builder/common: add StepProvision 2013-07-16 15:43:01 +09:00
Mitchell Hashimoto
b358574636 builder/amazon/ebs: rename to amazon/ebs in order to support others 2013-07-15 15:02:18 +09:00
Mitchell Hashimoto
fd58b33b38 builder/vmware: convert to cmmon ssh step 2013-07-15 14:22:13 +09:00
Mitchell Hashimoto
979bfc412e builder/virtualbox: use common SSH connect step 2013-07-15 14:17:09 +09:00
Mitchell Hashimoto
3bf49d1c66 builder/digitalocean: use common connect ssh 2013-07-15 14:14:23 +09:00
Mitchell Hashimoto
ac7807e7e5 builder/common: if cancel during SSH, cancel the attempts 2013-07-15 14:10:30 +09:00
Mitchell Hashimoto
29bfab0631 builder/amazonebs: switch to common SSH connect step 2013-07-15 14:06:41 +09:00
Mitchell Hashimoto
193de1f5d3 builder/common: add common StepConnectSSH for builders 2013-07-15 11:41:48 +09:00
Mitchell Hashimoto
9387ba0fd4 packer: Make builder type available in configs [GH-154] 2013-07-15 09:58:32 +09:00
Mitchell Hashimoto
6b6beae3b8 builder/vmware: unexport calculted config fields 2013-07-14 21:23:46 +09:00
Mitchell Hashimoto
16960a52f2 builder/virtualbox: unexport calculated fields 2013-07-14 21:22:11 +09:00
Mitchell Hashimoto
05acb7b461 builder/digitalocean: unexport calcaulted settings 2013-07-14 21:20:29 +09:00
Mitchell Hashimoto
51206a491b builder/amazonebs: Don't export sshTimeout so it can't be set 2013-07-14 21:18:18 +09:00
Mitchell Hashimoto
a0f1667df1 communicator/ssh: tweakable timeout on retry connection 2013-07-14 21:05:22 +09:00
Mitchell Hashimoto
2fff555e7f fmt 2013-07-14 20:55:27 +09:00
Mitchell Hashimoto
9718a4656c communicator/ssh: have a Connection func so we can re-establish
[GH-152]
2013-07-14 20:22:57 +09:00
Mitchell Hashimoto
186e9509d4 builder/common: support sha1/sha256 hashes 2013-07-14 16:13:07 +09:00
Mitchell Hashimoto
569ec0a2bb builder/vmware: generic checksum types [GH-175] 2013-07-14 15:58:56 +09:00
Mitchell Hashimoto
3007498282 builder/virtualbox: support generic hash types [GH-175] 2013-07-14 15:50:34 +09:00
Mark Peek
86db4eaa57 Move AWS auth decisions to goamz [GH-160]
Currently the passed in AWS auth or AWS environment variables are
interpreted by packer. This change moves that logic into goamz in
order to support both the existing and instance based IAM role
authentication. This requires a corresponding change to goamz.
2013-07-14 12:29:43 +09:00
Mitchell Hashimoto
3b4ef72e47 Unused keys are invalid in templates [GH-104] 2013-07-14 09:28:56 +09:00
Mitchell Hashimoto
245deaf599 buidler/virtualbox,vmware: only stat if not force
/cc @jasonberanek - Swapped this because why even bother doing a stat
if we're forcing anyways.
2013-07-13 14:47:08 +09:00
Jason A. Beranek
9c31c69a7b Remove output directory in a step when "-force" flag step [GH-178] 2013-07-12 21:23:00 -05:00
Mitchell Hashimoto
2981da4eef fmt 2013-07-13 10:01:27 +09:00
Mitchell Hashimoto
2e492fd747 Merge pull request #173 from jasonberanek/force-build
packer, builder/*: Add support for -force flag on builds [GH-119]
2013-07-12 18:00:21 -07:00
Mitchell Hashimoto
2fdcf85510 Merge pull request #162 from brendanhay/persistent-security-group
builder/amazonebs: Ability to specify a pre-existing SecurityGroupId for the AmazonEBS Builder
2013-07-12 01:19:25 -07:00
Mitchell Hashimoto
13182d97b5 Merge pull request #164 from mitchellh/do-env-vars
builder/digitalocean: use detected env variables for credentials
2013-07-12 01:00:50 -07:00
Jack Pearkes
490279c6b9 builder/digitalocean: add tests for credentials via env vars 2013-07-12 09:47:45 +02:00
Jason A. Beranek
13c733a3db Add support for -force flag on builds [GH-119] 2013-07-11 23:43:23 -05:00
Mitchell Hashimoto
e52f8e0486 fmt 2013-07-12 07:01:30 +09:00
Mitchell Hashimoto
bdac2a87ef Update CHANGELOG 2013-07-12 07:01:23 +09:00
Mitchell Hashimoto
7a9109d2a9 Merge pull request #172 from MattSurabian/feature/ebs-builder-bug
builder/amazonebs: Validate that instance exists and is EBS based before trying to launch it
2013-07-11 14:59:02 -07:00
Matt Surabian
0505fb4a0a Validate that instance exists and is EBS based before trying to launch it. 2013-07-11 17:41:17 -04:00
Mark Peek
9d4d854fe1 Add AWS instance id to normal output
The AWS instance id is only output when logging is occurring. If an
error happens it is useful to know the AWS instance id of the instance
spun up by packer in case further cleanup or forensics are needed.
2013-07-11 20:27:44 +00:00
Jack Pearkes
d701adb3e0 builder/digitalocean: use detected env variables for credentials 2013-07-11 11:31:09 +02:00
Brendan Hay
d74125d5d0 Adding the ability to specify a security_group_id for the amazonebs builder 2013-07-10 09:32:50 +02:00
Mitchell Hashimoto
0fdf9b09c9 builder/vmware: error if shutdown command failed 2013-07-09 14:39:02 -07:00
Mitchell Hashimoto
2ad30e1ea1 builder/virtualbox: paused is still running 2013-07-09 12:41:36 -07:00
Mitchell Hashimoto
dbad270d27 builder/virtualbox: remove floppy drive before exporting 2013-07-09 12:41:36 -07:00
Mitchell Hashimoto
45c47e64fa builder/virtualbox: support floppy_files 2013-07-09 12:41:36 -07:00
Mitchell Hashimoto
074d2bf937 builder/common: continue after creating floppy 2013-07-09 12:41:36 -07:00
Mitchell Hashimoto
9ec94fc6a1 builder/vmware: support floppy_files for mounting a floppy disk 2013-07-09 12:41:36 -07:00
Mitchell Hashimoto
c8019f10e6 builder/common: step to create floppy disks 2013-07-09 12:41:36 -07:00
Mitchell Hashimoto
3e8678f76d builder/amazonebs: retry SSH handshakes [GH-130] 2013-07-07 20:37:43 -07:00
Mitchell Hashimoto
019ab13f53 builder/virtualbox: whitespace 2013-07-07 18:04:30 -07:00
Mitchell Hashimoto
5ba5834a7a builder/common: Error on non-200 download responses [GH-141] 2013-07-07 12:16:31 -07:00
Mitchell Hashimoto
f83ec95928 builder/virtualbox: style nitpicks and CHANGELOG 2013-07-07 09:17:27 -07:00
Mitchell Hashimoto
1e7508c828 fmt 2013-07-07 09:14:41 -07:00
Mitchell Hashimoto
f8617b2641 builder/virtualbox: test the configuration
/cc @sgirones
2013-07-07 09:14:16 -07:00
Mitchell Hashimoto
d289a6a850 builder/virtualbox: typo in test 2013-07-07 09:09:22 -07:00
Mitchell Hashimoto
509712c4a4 Merge pull request #145 from sgirones/feature/local-mode-guest-additions
builder/virtualbox: Local mode for VBoxGuestAdditions. Provide local path and SHA256
2013-07-07 09:07:56 -07:00
Salvador Gironès
babd47541b Local mode for VBoxGuestAdditions. Provide local path and SHA256 2013-07-06 11:28:56 +02:00
Mitchell Hashimoto
1a2e4f9d0b fmt 2013-07-05 11:00:18 -07:00
Brandon Liu
6cdc938f46 Virtualbox: clean up port forwarding before exporting OVF. 2013-07-04 14:46:39 -07:00
Geoffrey Bachelet
c5258c5422 Typo 2013-07-03 19:11:37 -04:00
Mitchell Hashimoto
50095283ef builder/virtualbox, builder/vmware: keyboard-interactive [GH-121] 2013-07-02 22:02:58 -07:00
Steven Merrill
58daa1d84e Add a 'skip_compaction' step. 2013-07-02 20:22:11 -04:00
Mitchell Hashimoto
874b4acf1c builder/vmware: output VNC info if headless
/cc @smerrill
2013-07-02 12:23:19 -07:00
Mitchell Hashimoto
2b010269a3 builder/virtualbox: Warning about headless mode
/cc @smerrill
2013-07-02 12:20:26 -07:00
Mitchell Hashimoto
67920da4ec Merge pull request #108 from smerrill/headless-mode
builder/vmware, builder/virtualbox: Headless mode
2013-07-02 12:16:40 -07:00
Mitchell Hashimoto
c7c22bee3c Merge pull request #115 from bdon/wait
builder/virtualbox, builder/vmware: wait5 and wait10 timers
2013-07-02 12:14:17 -07:00
Brandon Liu
471f33d02e Add wait5 and wait10 special keys for boot command. 2013-07-02 10:31:22 -07:00
Mitchell Hashimoto
4d5edcaac0 builder/vmware: Improve check for VMware cleanup 2013-07-02 09:30:24 -07:00
Mitchell Hashimoto
529f72c084 builder/vmware: No redundant errors 2013-07-02 09:10:44 -07:00
Mitchell Hashimoto
32490fb57c builder/vmware: Style nitpick
/cc @smerrill: I prefer to do state changes at the end. :)
2013-07-02 09:09:55 -07:00
Mitchell Hashimoto
c23cd4310b Merge pull request #107 from smerrill/compact-disk
builder/vmware: Compact disk at end of the run
2013-07-02 09:09:15 -07:00
Mitchell Hashimoto
e0881a133b builder/vmware: wait for shutdown to avoid corrupt disk files [GH-111] 2013-07-02 09:05:17 -07:00
Steven Merrill
ba14170f8f Small fix to be sure "full_disk_path" is put into state. 2013-07-02 01:32:50 -04:00
Steven Merrill
0dd6fcfa47 Small doc fixes. 2013-07-02 01:15:03 -04:00
Steven Merrill
bade17edef Integrate code review comments. 2013-07-02 01:12:57 -04:00
Steven Merrill
2aeb756a56 Add VirtualBox headless mode. 2013-07-02 00:13:24 -04:00
Steven Merrill
c4c43b1252 Add VMWare headless mode. 2013-07-02 00:13:13 -04:00
Steven Merrill
c072a56b40 Finish initial compaction feature. 2013-07-01 22:45:46 -04:00
Steven Merrill
3b49f7bd20 First try at a compaction step. 2013-07-01 22:25:33 -04:00
Steven Merrill
c9d0de593e Add a computed FullDiskPath config option. 2013-07-01 22:22:00 -04:00
Mitchell Hashimoto
b4d9a8f4a7 builder/amazonebs: tests for env vars 2013-07-01 15:22:35 -07:00
Mitchell Hashimoto
94e2999b89 Merge pull request #40 from justincampbell/amazon-env-vars
builder/amazonebs: Default to AWS env vars for key and secret
2013-07-01 15:11:19 -07:00
Mitchell Hashimoto
bac976332f builder/virtualbox, builder/vmware: output and VM name based on build
[GH-91]
2013-07-01 11:11:51 -07:00
Mitchell Hashimoto
9cf78edcf0 builder/virtualbox: trim whitespace when getting version 2013-07-01 10:59:04 -07:00
Mitchell Hashimoto
f82aa7c974 builder/vmware: tools_upload_flavor and path
/cc @smerrill
2013-07-01 10:45:50 -07:00
Mitchell Hashimoto
a3f47462f5 fmt 2013-07-01 09:39:34 -07:00
Jack Pearkes
e11fbcdad2 builder/digitalocean: display friendler API error messages
Fixes #85
2013-07-01 09:29:45 +02:00
Steven Merrill
fc06324ca0 Incorporate code review feedback. 2013-06-30 11:10:26 -04:00
Steven Merrill
dbad9a4058 Add a method to get the VMware Tools ISO path. 2013-06-29 23:20:38 -04:00
Steven Merrill
da3b0f54c7 Upload the linux.iso to /tmp/linux.iso. 2013-06-29 23:08:27 -04:00
Mitchell Hashimoto
b317c763ac builder/virtualbox: add more logging to version detection 2013-06-29 13:45:30 -07:00
Mitchell Hashimoto
9dadd1ce8a builder/vmware: delete unnecessary files from artifact 2013-06-29 13:28:08 -07:00
Mitchell Hashimoto
b9fb40b8a5 builder/vmware: populate files properly in artifact [GH-63] 2013-06-29 13:00:34 -07:00
Justin Campbell
d66c3d86ee Add AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY 2013-06-29 09:32:07 -04:00
Jack Pearkes
9751a71ca7 builder/amazonebs: sleep between checks for ami create
fixes #50
2013-06-29 12:35:48 +02:00
Mitchell Hashimoto
e7747b3ef4 builder/vmware: default boot_wait 2013-06-28 22:40:55 -04:00
Mitchell Hashimoto
daac8b959f builder/common: Fix nil deref on race condition [GH-52]
When verifying large files, the checksum would take a long time and
downloader would be nil. When the goroutine asked for progress,
it would raise a nil exception.
2013-06-28 22:34:43 -04:00
Mitchell Hashimoto
8aaadf354a builder/virtualbox,vmware: work if port range for HTTP is 0 [GH-53] 2013-06-28 22:00:01 -04:00
Mitchell Hashimoto
30fadde297 builder/virtualbox: Tests for the defaults [GH-44] 2013-06-28 16:01:50 -04:00
Mitchell Hashimoto
4abd1c22c1 builder/virtualbox: Set the default boot_wait [GH-44] 2013-06-28 16:01:50 -04:00
Justin Campbell
382fcef248 Default to AWS_ env vars for key and secret 2013-06-28 13:45:15 -04:00
Krzysztof Wilczynski
96e8d71b88 Fix a typo.
Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
2013-06-28 17:33:42 +01:00
Mitchell Hashimoto
0eea40bad9 builder/virtualbox: close the input source ISO 2013-06-28 10:30:33 -04:00
Mitchell Hashimoto
620a864c49 builder/virtualbox: check the proper file path 2013-06-28 09:45:30 -04:00
Mitchell Hashimoto
fb4b940c53 builder/vmware: properly test file URLs 2013-06-28 09:43:49 -04:00
Mitchell Hashimoto
2f98ab2018 builder/virtualbox: return if cancelled, to avoid nil deref 2013-06-27 22:24:53 -04:00
Mitchell Hashimoto
98b4761ef1 builder/virtualbox, vmware: delete output dir if cancelled 2013-06-27 22:23:40 -04:00
Mitchell Hashimoto
0486a90738 builder/vmware: error if output directory exists 2013-06-27 22:15:24 -04:00
Mitchell Hashimoto
1400d20bb9 builder/virtualbox: Error if output directory already exists 2013-06-27 22:14:23 -04:00
Mitchell Hashimoto
a7a51f1d8f builder/amazonebs: Wait for instance to terminate during cleanup 2013-06-27 21:42:07 -04:00
Mitchell Hashimoto
8a609b67c1 builder/*: Fail if provisioning fails [GH-33] 2013-06-26 17:54:57 -07:00
Mitchell Hashimoto
5a9a993c32 builder/amazonebs: Artifact ID works 2013-06-26 17:40:21 -07:00
Mitchell Hashimoto
9786986a72 fmt 2013-06-25 14:31:06 -05:00
Mitchell Hashimoto
41f4ce56a5 builder/virtualbox: "stopping" is still running [GH-30] 2013-06-24 09:32:08 -07:00
Mitchell Hashimoto
fd44adf2aa builder/digitalocean: Make tests pass again 2013-06-24 09:25:00 -07:00
Mitchell Hashimoto
1f57d722ff builder/virtualbox: remap versions that don't have guest additions 2013-06-24 09:24:16 -07:00
Jack Pearkes
76c2fcee87 website: update digitalocean state_timeout default 2013-06-24 09:07:33 +02:00
Jack Pearkes
513c8bc4bb builder/digitalocean: raised state_timeout default to 6 minutes [GH-26] 2013-06-24 09:03:25 +02:00
Mitchell Hashimoto
1931c98fff builder/virtualbox: checksum the guest additions 2013-06-23 23:44:03 -07:00
Mitchell Hashimoto
27c9e8cf92 builder/virtualbox: treat guest_additions_path as a template 2013-06-23 23:14:19 -07:00
Mitchell Hashimoto
a599074185 builder/virtualbox: upload guest additions to VM 2013-06-23 23:09:52 -07:00
Mitchell Hashimoto
921770b611 builder/virtualbox: Download guest additions for the VM 2013-06-23 23:05:32 -07:00
Mitchell Hashimoto
e91421b1e1 website: update docs for virtualbox_version_file 2013-06-23 22:46:57 -07:00
Mitchell Hashimoto
85c83cbf58 builder/virtualbox: Upload version to a "virtualbox_version_file" 2013-06-23 22:44:58 -07:00
Mitchell Hashimoto
0f376457e3 builder/virtualbox: only power off the machine if it isrunning 2013-06-23 22:00:40 -07:00
Mitchell Hashimoto
bdd60fe914 builder/virtualbox: Message for vboxmanage command, not say 2013-06-23 21:56:14 -07:00
Mitchell Hashimoto
eacf257d83 builder/virtualbox: recognize <tab> 2013-06-23 21:50:16 -07:00
Mitchell Hashimoto
15f191deb0 builder/virtualbox: Copy ISO because VirtualBox can't recognize 2013-06-23 21:47:56 -07:00
Mitchell Hashimoto
d52cd1ed83 builder/virtualbox: Output VBoxManage stderr in error 2013-06-23 21:19:41 -07:00
Mitchell Hashimoto
a3bd9ecdc3 builder/virtualbox: add "vboxmanage" to run custom commands 2013-06-23 20:58:22 -07:00
Mitchell Hashimoto
53b7b3965f fmt 2013-06-23 20:43:50 -07:00
Mitchell Hashimoto
72741dbe3a builder/virtualbox: Ability to set DiskSize 2013-06-23 20:43:40 -07:00
Mitchell Hashimoto
a3c5fed267 builder/vmware, builder/virtualbox: Don't continue if ISO error 2013-06-23 18:23:00 -07:00
Mitchell Hashimoto
39eb9b7497 builder/vmware: Try SSH handshake multiple times 2013-06-23 18:17:38 -07:00
Mitchell Hashimoto
1a8395baab builder/vmware: support the <tab> special in boot commands 2013-06-23 16:09:12 -07:00
Mitchell Hashimoto
7cdf113eb1 builder/common: set the proper finalPath if downloading 2013-06-23 15:58:47 -07:00
Mitchell Hashimoto
24f852f699 builder/vmware: configurable disk size (default 40 GB) 2013-06-23 15:07:19 -07:00
Mitchell Hashimoto
43085e472b builder/vmware: Ability to specify the SSH port with "ssh_port" 2013-06-23 14:30:52 -07:00
Jack Pearkes
ba8fbc8621 builder/digitalocean: add configurable state_timeout
The state_timeout config allows you to determine the timeout
for "waiting for droplet to become [active, off, etc.]".

This still defaults to 3 minutes.
2013-06-23 12:51:51 +02:00
Mitchell Hashimoto
1da55ab4b6 builder/digitalocean: Reattempt SSH handshake a few times
I ran into a few cases where the droplet was active and a TCP connection
could be made, but SSH wasn't running yet and the handshake failed. A
race condition with the machine boot. This will retry the SSH handshake
a few times.

/cc @pearkes
2013-06-21 23:02:13 -07:00
Mitchell Hashimoto
6b04876e35 builder/vmware: Log the output of various commands 2013-06-20 12:33:01 -07:00
Mitchell Hashimoto
70c4753f77 fmt 2013-06-19 21:20:54 -07:00
Mitchell Hashimoto
6d3b09c542 builder/vmware: properly handle errors 2013-06-19 21:20:48 -07:00
Mitchell Hashimoto
64aed2b34a builder/virtualbox: proper artifact [GH-23] 2013-06-19 21:12:11 -07:00
Mitchell Hashimoto
b8103ff9c0 builder/virtualbox: properly handle errors 2013-06-19 21:07:53 -07:00
Mitchell Hashimoto
da4dfbcd12 builder/digitalocean: Properly return errors 2013-06-19 21:00:51 -07:00
Mitchell Hashimoto
868bb9c6f7 builder/amazonebs: Get rid of TODO since we can specify source states 2013-06-19 20:57:56 -07:00
Mitchell Hashimoto
3503e96894 builder/amazonebs: Return proper errors 2013-06-19 20:54:02 -07:00
Mitchell Hashimoto
867e9d1c8f builder/digitalocean: timeout TCP connections to SSH 2013-06-19 13:26:08 -07:00
Mitchell Hashimoto
b78fd17a0a builder/digitalocean: compile with scrub changes 2013-06-19 13:26:03 -07:00
Mitchell Hashimoto
a775c97907 builder/digitalocean: Scrub sensitive information out of logs
/cc @pearkes
2013-06-19 13:18:53 -07:00
Mitchell Hashimoto
70fa3fbaac builder/digitalocean: fmt 2013-06-18 22:02:09 -07:00
Mitchell Hashimoto
b98df11cbf fmt 2013-06-18 21:54:33 -07:00
Mitchell Hashimoto
264e59d75d builder/digitalocean: Implement Artifact destroy
/cc @pearkes
2013-06-18 21:54:15 -07:00
Mitchell Hashimoto
0ac538dc31 builder/amazonebs: If only one error on destroy, just return it 2013-06-18 16:25:35 -07:00
Mitchell Hashimoto
13a27deea1 builder/amazonebs: Implement Artifact.Destroy 2013-06-18 16:24:35 -07:00
Mitchell Hashimoto
b9fb065d27 packer: Add Destroy method to artifact
[GH-18]
2013-06-18 16:01:14 -07:00
Mitchell Hashimoto
64f9173e8b builder/amazonebs: Tests for invalid AMI name 2013-06-17 15:24:33 -07:00
Jack Pearkes
4236ffc8eb builder/digitalocean: only execute the snapshotname template if parsed 2013-06-18 00:06:59 +02:00
Jack Pearkes
b75daf62ff builder/amazonebs: check for err parsing template for ami name 2013-06-17 23:55:08 +02:00
Jack Pearkes
e62bcefcb8 builder/digitalocean: check for err parsing template for snapshot name 2013-06-17 23:54:28 +02:00
Mitchell Hashimoto
5ecd30a75f Merge pull request #17 from mitchellh/b-digital-ocean-fixup
DigitalOcean Completion
2013-06-17 14:34:59 -07:00
Jack Pearkes
6eb0568f07 builder/digitalocean: print bad status code as string 2013-06-17 14:54:24 +02:00
Jack Pearkes
341cfb2c2d builder/digitalocean: improve error messages from DO api 2013-06-17 14:54:18 +02:00
Jack Pearkes
477ac8cd31 builder/digitalocean: use text/template for the snapshot name 2013-06-17 14:21:15 +02:00
Jack Pearkes
1e17e90acd builder/digitalocean: add configurable "event_delay" for sleeps 2013-06-17 13:28:21 +02:00
Jack Pearkes
c12e9ff9a8 builder/digitalocean: implement artifacts with the snapshot name 2013-06-17 13:01:42 +02:00
Mitchell Hashimoto
dc5d261994 packer: Ui can return an error for Ask, returns one for interrupt 2013-06-15 18:24:38 -07:00
Jack Pearkes
25d5874042 builder/digitalocean: generate temp rsa keypairs for ssh communication 2013-06-15 22:43:18 +02:00
Mitchell Hashimoto
d8cdc88cbe builder/digitalocean: Make tests pass
/cc @pearkes
2013-06-15 11:11:03 -07:00
Mitchell Hashimoto
f289ddce60 builder/digitalocean: Add support for -debug mode
/cc @pearkes
2013-06-15 11:09:26 -07:00
Mitchell Hashimoto
3983edb1a3 fmt 2013-06-15 11:07:30 -07:00
Mitchell Hashimoto
03d7a7f6b5 builder/digitalocean: Adhere to new interface, make default in Packer
@pearkes: I added "digital-ocean" to the default config since it will
be shipping with Packer. :)
2013-06-15 11:06:39 -07:00
Mitchell Hashimoto
a76a9e86fc Merge pull request #15 from pearkes/f-do-builder
DigitalOcean Builder from @pearkes
2013-06-15 11:04:28 -07:00
Mitchell Hashimoto
f754c171e8 builder/*: Add support for debug 2013-06-15 10:51:09 -07:00
Mitchell Hashimoto
21b6d2a435 builder/common: multistep debug fn gracefully exits during an interrupt 2013-06-14 15:47:06 -07:00
Mitchell Hashimoto
ac029d9ed0 builder/vmware: Use proper pausefn 2013-06-14 15:24:53 -07:00
Mitchell Hashimoto
cbd3f59578 builder/vmware: Enable the debug runner 2013-06-14 15:07:34 -07:00
Mitchell Hashimoto
a6194467ac builder/*: Adhere to the new interface 2013-06-14 12:29:48 -07:00
Jack Pearkes
8ba8932552 builder/digitalocean: No need for destroy steps, builder works! 2013-06-14 15:26:03 +02:00
Jack Pearkes
a774e2b444 builder/digitalocean: completed initial pass at all steps. 2013-06-13 19:56:34 +02:00
Mitchell Hashimoto
4daefc2588 fmt 2013-06-13 10:24:10 -07:00
Jack Pearkes
dd6e4e4933 builder/digitalocean: connect_ssh, create_droplet, droplet_info 2013-06-13 18:48:19 +02:00
Jack Pearkes
4e6993909c builder/digitalocean: builder config tests and create_ssh_key step 2013-06-13 17:58:06 +02:00
Jack Pearkes
787a3178b3 builder/digitalocean: WIP commit of api interface and initial config 2013-06-13 16:03:10 +02:00
Mitchell Hashimoto
760995dba1 builder/virtualbox: say when forcefully shutting down 2013-06-12 18:19:29 -07:00
Mitchell Hashimoto
6516e5a627 builder/virtualbox: export 2013-06-12 18:07:08 -07:00
Mitchell Hashimoto
48a3892ce6 builder/virtualbox: graceful shutdown 2013-06-12 18:02:42 -07:00
Mitchell Hashimoto
52391bb1f3 builder/virtualbox: Use the common downloader 2013-06-12 17:42:18 -07:00
Mitchell Hashimoto
a0a78b68e8 builder/common: Create a downloader 2013-06-12 17:41:44 -07:00
Mitchell Hashimoto
521b59a6fa Make everything support the new builder interface 2013-06-12 16:06:56 -07:00
Mitchell Hashimoto
e101b031fc builder/virtualbox: Cancel mid-type if we can 2013-06-12 10:47:55 -07:00
Mitchell Hashimoto
574286bdd6 builder/virtualbox: provision step 2013-06-12 08:47:36 -07:00
Mitchell Hashimoto
c58d5ab3af builder/virtualbox: time out on SSH handshake for retry 2013-06-12 00:54:25 -07:00
Mitchell Hashimoto
5c0d8ecd72 builder/virtualbox: Wait for SSH to become available 2013-06-12 00:41:58 -07:00
Mitchell Hashimoto
e7cc350536 builder/virtualbox: scancode reference 2013-06-12 00:27:31 -07:00
Mitchell Hashimoto
7344d9e52c builder/virtualbox: type boot command 2013-06-12 00:26:08 -07:00
Mitchell Hashimoto
c7071b3bd2 builder/virtualbox: http server for local files 2013-06-11 23:44:40 -07:00
Mitchell Hashimoto
e7aa9b409c builder/virtualbox: add boot_command 2013-06-11 21:08:45 -07:00
Mitchell Hashimoto
9e4a5a227b builder/virtualbox: support boot_wait 2013-06-11 20:56:44 -07:00
Mitchell Hashimoto
4d351edadf builder/virtualbox: improved validation 2013-06-11 20:51:58 -07:00
Mitchell Hashimoto
24895069aa builder/virtualbox: start the VM 2013-06-11 20:46:32 -07:00
Mitchell Hashimoto
70df8c8c8b builder/virtualbox: add the ssh host port to state 2013-06-11 20:30:07 -07:00
Mitchell Hashimoto
ad1c59f34e builder/virtualbox: Create forwarded port mapping 2013-06-11 20:29:39 -07:00
Mitchell Hashimoto
081b0d6853 builder/virtualbox: Attach ISO 2013-06-11 20:07:11 -07:00
Mitchell Hashimoto
54057b7b49 builder/virtualbox: download ISO 2013-06-11 20:00:30 -07:00
Mitchell Hashimoto
c1c9204ee8 builder/virtualbox: actually attach the hard drive 2013-06-11 16:48:01 -07:00
Mitchell Hashimoto
7a9499e1f0 builder/virtualbox: Attach the hard drive, not quite working yet 2013-06-11 16:44:43 -07:00
Mitchell Hashimoto
b9cd48bbc6 builder/virtualbox: Create a virtual disk 2013-06-11 16:34:44 -07:00
Mitchell Hashimoto
7fe40cfce1 builder/virtualbox: Create the VM 2013-06-11 16:12:19 -07:00
Mitchell Hashimoto
07cacb6dda builder/virtualbox: Add GuestOSType config 2013-06-11 15:57:20 -07:00
Mitchell Hashimoto
4c18b0ae5b builder/virtualbox: more comprehensive message suppression 2013-06-11 15:52:46 -07:00
Mitchell Hashimoto
e14b00c818 builder/virtualbox: Look for virtualbox on the path 2013-06-11 15:47:10 -07:00
Mitchell Hashimoto
d31d54366a builder/virtualbox: Suppress some messages 2013-06-11 15:45:52 -07:00
Mitchell Hashimoto
99af93f86a foundation for virtualbox builder 2013-06-11 15:12:45 -07:00
Mitchell Hashimoto
dc641324de builder/amazonebs: Create temporary security group as well 2013-06-11 14:37:10 -07:00
Mitchell Hashimoto
3b3efab805 builder/amazonebs: Tell the user if the termination failed 2013-06-11 14:15:43 -07:00
Mitchell Hashimoto
ccc95e7e5c builder/amazonebs: Slight slepe between connection attempts to SSH 2013-06-11 14:13:33 -07:00
Mitchell Hashimoto
352f875dbf builder/amazonebs: Handle interrupts while waiting for SSH 2013-06-11 14:10:57 -07:00
Mitchell Hashimoto
417f7e7f47 fmt 2013-06-11 14:09:31 -07:00
Mitchell Hashimoto
de9c4ace9e builder/amazonebs: Timeouts while waiting for SSH to connect 2013-06-11 14:09:16 -07:00
Mitchell Hashimoto
cbbc8de8b2 builder/vmware: Properly check MD5 2013-06-09 23:12:37 -07:00
Mitchell Hashimoto
520a2706ea builder/vmware: Validate MD5 2013-06-09 23:00:07 -07:00
Mitchell Hashimoto
4b46181f69 builder/vmware: require an MD5 for ISO 2013-06-09 22:47:58 -07:00
Mitchell Hashimoto
896c727097 builder/vmware: Basic support for downloading an ISO 2013-06-09 22:44:35 -07:00
Mitchell Hashimoto
657c3fd87d builder/vmware: better tests around iso_url, test files 2013-06-09 22:08:53 -07:00
Mitchell Hashimoto
62309cb6de Build/Builder take a Cache object now 2013-06-09 22:00:47 -07:00
Mitchell Hashimoto
a23500e0a4 builder/vmware: downloadIso step, although not functional yet 2013-06-09 21:50:15 -07:00
Mitchell Hashimoto
e39965e32a builder/vmware: validate iso_url more strictly 2013-06-09 21:44:18 -07:00
Mitchell Hashimoto
c29d754fa8 builder/vmware: break out the proper loop 2013-06-08 19:26:07 -07:00
Mitchell Hashimoto
ccfb4664cf builder/vmware: Make vmx path absolute when checking if running 2013-06-08 19:03:51 -07:00
Mitchell Hashimoto
174ae65a12 builder/vmware: Handle interrupts while waiting for SSH 2013-06-08 18:56:28 -07:00
Mitchell Hashimoto
be1e60aa26 builder/amazonebs: Validate region exists 2013-06-08 17:54:18 -07:00
Mitchell Hashimoto
4fa27e6a30 builder/amazonebs: Finish basic validation 2013-06-08 17:49:03 -07:00
Mitchell Hashimoto
4223e5bcca builder/amazonebs: Additional validation 2013-06-08 17:46:34 -07:00
Mitchell Hashimoto
6a23cb726c builder/amazonebs: Config validation, testing 2013-06-08 17:41:56 -07:00
Mitchell Hashimoto
a0664c7ec8 builder/vmware: Ability to set the guest OS type 2013-06-07 21:54:08 -07:00
Mitchell Hashimoto
09db84eb5e builder/vmware: Verify VMware is ready 2013-06-07 21:46:59 -07:00
Mitchell Hashimoto
f73ae4ef71 builder/vmware: seed RNG 2013-06-07 16:23:24 -07:00
Mitchell Hashimoto
fd42a21f48 builder/vmware: support custom vmx data 2013-06-07 16:20:58 -07:00
Mitchell Hashimoto
d3ea7956bc builder/vmware: if no files to serve, don't start http server 2013-06-07 15:50:54 -07:00
Mitchell Hashimoto
85ab8621d4 builder/vmware: Randomize HTTP port to avoid collisions 2013-06-07 15:20:39 -07:00
Mitchell Hashimoto
56108f2b16 fmt 2013-06-07 15:12:24 -07:00
Mitchell Hashimoto
16295dfbf3 builder/vmware: tests for vnc_port_* settings 2013-06-07 15:11:13 -07:00
Mitchell Hashimoto
7a5dce0dc9 builder/vmware: proper port range for VNC 2013-06-07 14:58:49 -07:00
Mitchell Hashimoto
0596266776 builder/vmware: Add better logging 2013-06-07 14:50:07 -07:00
Mitchell Hashimoto
5947d77f05 builder/vmware: configure VNC port randomly 2013-06-07 14:48:59 -07:00
Mitchell Hashimoto
068e94c3ee builder/vmware: Don't step VNC stuff in createVMX 2013-06-07 13:29:27 -07:00
Mitchell Hashimoto
43b8ec3709 builder/vmware: Test the shutdown timeout 2013-06-06 16:31:21 -07:00
Mitchell Hashimoto
03e22c6323 builder/vmware: graceful shutdown 2013-06-06 16:30:37 -07:00
Mitchell Hashimoto
c559ec7d71 builder/vmware: check if running prior to shutting down 2013-06-06 16:14:07 -07:00
Mitchell Hashimoto
f851e56dbd builder/vmware: Artifacts implemented 2013-06-06 15:12:54 -07:00
Mitchell Hashimoto
378a7320a3 builder/vmware: A lot more validation, testing 2013-06-06 14:46:48 -07:00
Mitchell Hashimoto
057d656eda builder/vmware: Don't start HTTP server if we specified no files 2013-06-06 14:42:23 -07:00
Mitchell Hashimoto
1a5c9d300f builder/vmware: Better config validation, testing 2013-06-06 14:38:14 -07:00
Mitchell Hashimoto
275dc6d21f builder/vmware: Driver abstraction 2013-06-06 12:19:38 -07:00
Mitchell Hashimoto
9e9196eab8 builder/vmware: boot_wait is now a duration 2013-06-06 09:21:50 -07:00
Mitchell Hashimoto
fd7d1fde70 builder/vmware: Log the timeout 2013-06-06 09:12:58 -07:00
Mitchell Hashimoto
a3800625ac builder/vmware: Have an overall ssh wait timeout 2013-06-06 09:10:14 -07:00
Mitchell Hashimoto
ca39d23636 builder/vmware: Run the provisioner 2013-06-06 08:42:38 -07:00
Mitchell Hashimoto
c0e6fbd8ae builder/vmware: Connect to SSH 2013-06-05 23:16:40 -07:00
Mitchell Hashimoto
aee611db4f builder/vmware: Support reading guest IP from DHCP 2013-06-05 21:51:16 -07:00
Mitchell Hashimoto
323647e3a6 builder/vmware: functions for parsing VMX 2013-06-05 21:01:22 -07:00
Mitchell Hashimoto
60dba3f8ef builder/vmware: GuestIP lookup interface 2013-06-05 20:53:34 -07:00
Mitchell Hashimoto
dfee3eb8ef builder/vmware: Properly detect host IP 2013-06-05 20:40:39 -07:00
Mitchell Hashimoto
b1bd71c133 builder/vmware: Create WaitForIP step 2013-06-05 20:04:55 -07:00
Mitchell Hashimoto
d5cfa42e05 builder/vmware: Wait a minimum time before shutting down VM 2013-06-05 17:59:33 -07:00
Mitchell Hashimoto
daf076bbd9 builder/vmware: Implement cancel 2013-06-05 17:52:37 -07:00
Mitchell Hashimoto
aefb947fa9 builder/vmware: Support <wait>, send proper keycodes 2013-06-05 17:32:57 -07:00
Mitchell Hashimoto
6d610f1c6e builder/vmware: type the boot sequence 2013-06-05 17:15:16 -07:00
Mitchell Hashimoto
429ff62128 builder/vmware: Add a boot wait in seconds 2013-06-05 15:48:13 -07:00
Mitchell Hashimoto
cd3523fd4f builder/vmware: Stop the run properly 2013-06-05 15:19:25 -07:00
Mitchell Hashimoto
8055e396a0 builder/vmware: Add the run step 2013-06-05 15:12:43 -07:00
Mitchell Hashimoto
9c27f5857b builder/vmware: Better commenting 2013-06-05 15:10:16 -07:00
Mitchell Hashimoto
5d465c2ff3 builder/vmware: comments for stepCreateVMX 2013-06-05 14:47:19 -07:00
Mitchell Hashimoto
eb8278b21c builder/vmware: Start HTTP server to serve files 2013-06-05 14:24:48 -07:00
Mitchell Hashimoto
875951a817 builder/vmware: Enable VNC 2013-06-05 13:17:56 -07:00
Mitchell Hashimoto
dca2795751 builder/vmware: Generate more correct VMX file 2013-06-04 17:00:29 -07:00
Mitchell Hashimoto
05a34d2fb1 builder/vmware: Create disk and create VMX file 2013-06-04 16:52:59 -07:00
Mitchell Hashimoto
2e57496a82 builder/vmware: Start it. Creates disks so far... 2013-06-04 15:00:58 -07:00
Mitchell Hashimoto
ec22477185 builder/amazonebs: Use unix timestamps 2013-06-04 13:12:04 -07:00
Mitchell Hashimoto
a436b91330 builder/amazonebs: interpolate create time into AMI name 2013-06-04 12:52:52 -07:00
Mitchell Hashimoto
04a4d91431 builder/amazonebs: Better checking for states 2013-06-04 11:29:59 -07:00
Mitchell Hashimoto
a099e32df2 builder/amazonebs: Handle case where no AMIs 2013-06-04 11:26:08 -07:00
Mitchell Hashimoto
f67fdecab6 builder/amazonebs: If cancelled, don't return artifact 2013-06-04 10:59:12 -07:00
Mitchell Hashimoto
5aa78cb4aa builder/amazonebs: Properly implement cancel 2013-06-04 10:53:35 -07:00
Mitchell Hashimoto
0df18df40f builder/amazonebs: extract multistep, use that 2013-06-04 10:00:06 -07:00
Mitchell Hashimoto
079d6f4d43 packer: Introduce Cancel() method to Builder 2013-06-03 14:44:34 -07:00
Mitchell Hashimoto
bf296b396e builder/amazonebs: panics in edge cases 2013-06-01 21:50:20 -07:00
Mitchell Hashimoto
33f8d29571 builder/amazonebs, command/build: use new UI interface 2013-05-27 15:15:42 -07:00
Mitchell Hashimoto
35a947e304 builder/amazonebs: Add provisioning step 2013-05-23 22:47:59 -07:00
Mitchell Hashimoto
4bd7db0759 go fmt 2013-05-22 14:36:33 -07:00
Mitchell Hashimoto
8273565255 better comments for TODO 2013-05-22 14:36:21 -07:00
Mitchell Hashimoto
cf6d2218ea builder/amazonebs: Artifact returns AMIs 2013-05-21 22:28:41 -07:00
Mitchell Hashimoto
8dfe78dd19 packer: Log UI output 2013-05-21 11:40:07 -07:00
Mitchell Hashimoto
dfc332f98c builder/amazonebs: Add ssh_* settings 2013-05-21 11:36:26 -07:00
Mitchell Hashimoto
4453fda2e8 go fmt 2013-05-21 00:56:27 -07:00
Mitchell Hashimoto
3a97bae000 builder/amazonebs: Refactor into multiple steps 2013-05-21 00:55:32 -07:00
Mitchell Hashimoto
559777e5b7 packer: Ui automatically appends newline 2013-05-20 23:43:37 -07:00
Mitchell Hashimoto
2ee8859ac0 builder/amazonebs: SSH test. It works! 2013-05-20 23:18:44 -07:00
Mitchell Hashimoto
0ea19cf818 builder/amazonebs: Create a temporary keypair for use 2013-05-20 22:35:16 -07:00
Mitchell Hashimoto
15f215d04f go fmt 2013-05-20 16:50:35 -07:00
Mitchell Hashimoto
2efab467a8 builder/amazonebs: Switch from json to mapstructure for decode 2013-05-20 16:39:43 -07:00
Mitchell Hashimoto
88a018bf5d packer: Work on communicators... WIP 2013-05-12 14:47:55 -07:00
Mitchell Hashimoto
a2bf964f30 packer/rpc: Properly support hooks 2013-05-11 11:11:40 -07:00
Mitchell Hashimoto
d926b98708 Update all packer/rpc, packer/plugin, builders for new builder API 2013-05-11 10:31:30 -07:00
Mitchell Hashimoto
44bd56c3a8 go fmt 2013-05-10 17:01:24 -07:00
Mitchell Hashimoto
4fc764430d builder/amazonebs: Wait for AMI to become ready 2013-05-10 15:47:46 -07:00
Mitchell Hashimoto
e071739cd8 builder/amazonebs: Can make an AMI. WHAT! 2013-05-10 15:21:11 -07:00
Mitchell Hashimoto
185d2765be command/build: Run the builds in parallel 2013-05-10 13:01:54 -07:00
Mitchell Hashimoto
ce6037cca8 builder/amazonebs: Doc for the package 2013-05-09 14:16:39 -07:00
Mitchell Hashimoto
fad5233868 builder/amazonebs: More comments 2013-05-09 14:10:57 -07:00
Mitchell Hashimoto
4c37ce5304 builder/amazonebs: Don't worry about the map[string]interface crap 2013-05-09 14:05:15 -07:00
Mitchell Hashimoto
44c61e537d Some additional logging 2013-05-09 13:26:40 -07:00
Mitchell Hashimoto
6d0fa84e2c builder/amazonebs: Read config 2013-05-09 13:19:38 -07:00
Mitchell Hashimoto
587d359887 packer: Builder.Prepare can return an error 2013-05-09 10:54:42 -07:00
Mitchell Hashimoto
d6efe3c757 builder/amazonebs, plugin/builder-amazon-ebs 2013-05-08 22:34:20 -07:00
Mitchell Hashimoto
db1c11fff5 Lots of stuff, too early for meaningful commit messages
UI, command dispatch
2013-03-24 14:03:53 -07:00
Mitchell Hashimoto
817822abab Amazon builder 2013-03-23 18:40:26 -07:00