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