Matthew Hooker
6c4fbe8d87
use correct default region when deregistering AMIs.
2017-10-30 13:07:58 -07:00
Matthew Hooker
faf96b369f
Merge pull request #5510 from hashicorp/fix5216
...
fix hyper-v admin check
2017-10-27 08:49:16 -07:00
Joe Ferguson
5c2f758053
🎨 Fix typo in "copyed" -> "copied" usages.
2017-10-26 07:42:49 -05:00
Matthew Hooker
794e518eb7
use hyper-v admin group, not admin
2017-10-25 13:29:03 -07:00
Matthew Hooker
812fd12a0b
move trimspace to powershell exit check
2017-10-25 13:28:59 -07:00
Matthew Hooker
1901c0385f
remove login_email from docker
...
adds fixer
removes documentation
removes from docker builder and docker-push pp
2017-10-25 10:53:06 -07:00
Matthew Hooker
fb098d045d
builder/virtualbox-ovf retry removing VM.
...
moves behavior from builder/virtualbox-iso into the driver
so it is automatically available to callers.
2017-10-25 10:27:33 -07:00
Matthew Hooker
0be02ab217
hyper-v: Don't error while checking for admin permissions.
2017-10-25 09:18:40 -07:00
Mark Meyer
4c5df79222
Fix regressions introduced in the instance builder
...
Related to #5504
2017-10-24 23:23:18 +02:00
Mark Meyer
309bf61257
Add missing blockdevices to ebsvolume builder
2017-10-23 22:33:16 +02:00
Mark Meyer
1cc9b3f1e3
Bring back volume tagging to ebsvolume
...
Related to #5486
2017-10-23 22:09:04 +02:00
Mark Meyer
7e1646826d
Check if VolumeTags is empty before tagging volumes
...
Related to #5486
2017-10-23 21:10:40 +02:00
Andrew Pryde
f31c2c59c1
Merge pull request #5407 from prydie/fix-5401
...
Fix Oracle OCI builder ignores region value provided in OCI config file
2017-10-23 09:56:49 +01:00
Ben Phegan
12fc928e1d
Initial commit of Hyper-V disk_additional_size capability. Support a
...
maximum of 64 disks added to the SCSI controller. Implement #4823 .
2017-10-23 08:26:35 +11:00
SwampDragons
1563fb97c7
Merge pull request #5463 from atsushi-ishibashi/issue5323
...
Add clean_image_name for gcp
2017-10-20 14:16:11 -07:00
Megan Marsh
4721b48c70
add a couple of extra tests and reword documentation
2017-10-20 14:06:02 -07:00
Atsushi Ishibashi
c3a00993d0
Don't truncate and replace with 'a', update docs
2017-10-19 10:45:48 +09:00
Andrew Pryde
bb497c2453
Fixed incorrect test failure message in oci client
2017-10-18 11:11:14 +01:00
Chris Lundquist
c1a7b3845a
[lxd] allow passing of publish properties
2017-10-18 04:57:13 +00:00
Atsushi Ishibashi
3e68f1c505
Change first and last character when it doesn't match
2017-10-18 11:10:19 +09:00
Aaron Browne
ffc63a8724
Use amazon common AccessConfig for ecr_login
...
Signed-off-by: Aaron Browne <aaron0browne@gmail.com>
2017-10-17 15:00:19 -04:00
Atsushi Ishibashi
210dd08326
Change args of NewConfig
2017-10-17 13:48:15 +09:00
Atsushi Ishibashi
5310d5629b
Modify clean_image_name not defined error
2017-10-17 12:31:50 +09:00
Aaron Browne
8df643c343
Add aws_profile option to docker-push ecr_login
...
An aws_profile option is added to the AWS ECR login credentials
configuration to allow using shared AWS credentials stored in
a non-default profile.
Signed-off-by: Aaron Browne <aaron0browne@gmail.com>
2017-10-16 16:55:34 -04:00
Atsushi Ishibashi
3600924e59
Rename files
2017-10-17 04:55:50 +09:00
Atsushi Ishibashi
2da4e4c31d
Change func name
2017-10-16 11:45:18 +09:00
Atsushi Ishibashi
caa6c9bf22
Add clean_ami_name for gcp
2017-10-16 00:53:18 +09:00
Matthew Hooker
454cb08896
Merge pull request #5336 from SLAZ666/keepregistered-ovf
...
Add option keep_registered to virtualbox-ovf builder
2017-10-13 17:45:07 -07:00
Olivier Bilodeau
820811675d
vmware-iso builder: Logging on network errors on connection refused
2017-10-13 19:00:48 -04:00
Matthew Hooker
f617a678b1
Merge pull request #5422 from localghost/upload_owner_fix
...
Fix owner of files uploaded to docker container run as non-root.
2017-10-13 14:56:16 -07:00
SwampDragons
f3c33240fa
Merge pull request #5444 from vijayinvites/packer-vhdx
...
Hyperv vmcx builder and allow vhd/vhdx instead of ISO
2017-10-13 11:53:27 -07:00
Matthew Hooker
f7e269945e
add cidr validation and rename option
2017-10-12 17:05:56 -07:00
Matthew Hooker
c74be87187
Merge pull request #5384 from dave2/sg-source-cidr
...
[WIP] Allow temporary security group to have source CIDR block explicit
2017-10-12 17:05:45 -07:00
Matthew Hooker
07b013945f
more consistent flag name
2017-10-12 16:38:18 -07:00
Matthew Hooker
106408f6be
add new disable_vnc option
2017-10-12 16:34:40 -07:00
nictrix
6a238a3ef3
add option to skip vnc phase and update docs
2017-10-12 16:28:27 -07:00
SwampDragons
512ac214b4
Merge pull request #5417 from smaato/master
...
Add ability to tag volumes on creation
2017-10-12 12:56:25 -07:00
Mark Meyer
dbb3c76032
Remove redundant step and its usage
...
StepTagEBSVolumes is no longer needed, since this functionality is now
taken over by StepRunSourceInstance and StepRunSpotInstance. So remove
this functionality from the codebase.
2017-10-12 21:40:21 +02:00
Vijaya Bhaskar Reddy Kondreddi
4f6a207441
go fmt
2017-10-11 22:10:39 +05:30
Matthew Hooker
2655cf7493
fix tests
2017-10-11 22:05:53 +05:30
Matthew Hooker
91d66fb67c
use new method of building runner
2017-10-11 22:05:52 +05:30
Matthew Hooker
d8c6e6d4a4
remove duplicate line
2017-10-11 22:05:52 +05:30
Matthew Hooker
7978fd8ec0
make fmt
2017-10-11 22:05:52 +05:30
Taliesin Sisson
5f2c71f7d7
Floppy directories are provided by default with common.floppydrives
2017-10-11 22:05:52 +05:30
Taliesin Sisson
2fbe0b4a7f
Don't try to mount vhd and vhdx files as dvd drive. Hard drives are mounted in the create vm step
2017-10-11 22:05:52 +05:30
Taliesin Sisson
628116f4c4
Test settings for clone from vm and import vmxc from path
2017-10-11 22:05:52 +05:30
Taliesin Sisson
8232759397
If vhd or vhdx extension is specified for ISOUrls, we want to use an existing hard drive which means that we don't need to specify hard drive size
...
Filepath.ext includes the dot
2017-10-11 22:05:51 +05:30
Taliesin Sisson
3d0ac529e0
use common floppy_config instead of builder specific one
...
Add tests for floppy files and comm
2017-10-11 22:05:51 +05:30
Taliesin Sisson
efa62e1550
Can specify an iso, vhd or vhdx for download. If it is a vhd or vhdx it is used as the hard drive for spinning up a new machine, importing an exported virtual machine or cloning a virtual machine.
...
Can import a virtual machine from a folder
Can clone an existing virtual machine
2017-10-11 22:05:45 +05:30
Taliesin Sisson
452fcbd9a1
Only attach dvd drive if there is one
...
Fix debug messages for cloning
Add hyperv-vmcx as a builder from command line
2017-10-11 21:42:32 +05:30
Taliesin Sisson
429e1bc3ad
Adding an ISO is now optional for hyperv vmcx
...
Add documentation for hyperv vmcx
2017-10-11 21:42:32 +05:30
Taliesin Sisson
6fd7f0877d
Initial check in to add a builder that can clone existing hyper v machines
2017-10-11 21:42:32 +05:30
localghost
5866d4ea24
Move container user inspect to StepConnectDocker.
2017-10-10 22:45:47 +02:00
Matthew Hooker
eb64920e80
Merge pull request #5206 from sandersaares/hyperv-second-temp-dir
...
(Hyper-V) Enable a separate directory to be used for temporary VHDs
2017-10-09 10:08:00 -07:00
Matthew Hooker
ae455bff99
add debugging help if ec2-upload-bundle fails
2017-10-05 17:33:07 -07:00
Matthew Hooker
2a326b5172
fix nil ptr exception
2017-10-05 16:34:13 -07:00
Megan Marsh
e8cabc1e83
implemented for LXD
2017-10-04 15:23:36 -07:00
Megan Marsh
93bddb3e65
implement directory fix for lxc file uploads
2017-10-04 13:35:15 -07:00
Mark Meyer
2661fd7869
Move building of spot instances into its own step
2017-10-04 12:38:21 +02:00
Megan Marsh
8452ca898c
implemented for docker communicator
2017-10-03 17:06:33 -07:00
localghost
ba72021274
Fix owner of files uploaded to docker container run as non-root.
2017-10-03 21:49:26 +02:00
Mark Meyer
939b44b4fd
Add logic to handle volumes of spot instances
2017-10-03 01:03:21 +02:00
Mark Meyer
cfd6b6fed5
Change EBS builder to do tag-on-creation
...
The EBS builder will now use the tag-on-creation pattern, so
that it's possible to restrict packer to only create volumes that are
properly tagged by using an AWS policy.
2017-10-03 00:13:02 +02:00
Andrew Pryde
f426ba4660
Do not override region in OCI builder
...
Only default the OCI builder region to us-phoenix-1 when no value is
present in the packer template and the OCI config file.
Fixes : #5401
2017-09-29 10:51:31 +01:00
Matthew Hooker
b3661c1f63
builder/docker: set user during exec.
...
Add `exec_user` option to control what user `docker exec` is run as.
2017-09-28 16:39:23 -07:00
Matthew Hooker
74bf75b71a
Merge pull request #5388 from hashicorp/fix5386
...
cloudstack: check that template was created
2017-09-27 15:34:57 -07:00
Megan Marsh
201e8c05a0
add ami name to output
2017-09-26 16:04:40 -07:00
Matthew Hooker
b42c916f9a
cloudstack: check that template was created
2017-09-26 13:36:53 -07:00
Zanetti, David
8a8b51be97
Allow temporary security group to have source CIDR block explicitly provided
2017-09-26 00:57:56 +00:00
Matthew Hooker
02cd6bc7f0
Merge pull request #5288 from hashicorp/fix3114
...
add token variable to upload bundle command template
2017-09-25 18:36:28 -05:00
Matthew Hooker
4bc8e7de3d
add token variable to upload bundle command template
2017-09-25 16:35:53 -07:00
Matthew Hooker
eabcec6809
Merge pull request #5363 from batzen/patch-1
...
Fixes #4880 by always using EnableDynamicMemory
2017-09-25 18:14:30 -05:00
Zanetti, David
42dc1e4795
In Amazon builders, allow tag names to be interpolated like values
2017-09-25 02:24:23 +00:00
Bastian Schmidt
c1aba87b39
Fixes #4880 by always using EnableDynamicMemory
...
This was needed because the default in Hyper-V on Windows 10 changed from "false" to "true".
2017-09-20 14:53:37 +02:00
Peter Mounce
7cbd57faa6
Filling it back
2017-09-19 11:40:01 +01:00
Peter Mounce
15a456750b
CI as compiler!
2017-09-19 11:34:08 +01:00
Peter Mounce
2239d55fdb
Add test coverage
2017-09-19 11:31:05 +01:00
Peter Mounce
5bcb0644c3
Using CI for compilation errors because am on Windows
2017-09-18 18:13:21 +01:00
Peter Mounce
ac8eedf171
Introduce a new configuration parameter instead
...
... so that one can have a different list compared to instances.
2017-09-18 17:53:40 +01:00
Peter Mounce
e579b947b1
Fix signature that I missed
2017-09-18 17:34:06 +01:00
Peter Mounce
8789ae72e8
Make the googlecompute builder label the resulting image.
...
... so that it's possible to find images matching particular characteristics more easily.
2017-09-18 15:44:01 +01:00
SLAZ666
f6bb79784f
Add option keep_registered to virtualbox-ovf builder
2017-09-13 15:37:26 +02:00
Matthew Hooker
392af507e0
builder/docker: respect rsync semantics when uploading directories.
2017-09-12 14:45:25 -07:00
Matthew Hooker
ab216ec61b
Add license with copyright notice
2017-09-12 12:22:50 -07:00
Andrew Pryde
6fd2f6701d
Rename Oracle BMCS builder to OCI
...
Oracle Bare Metal Cloud Services (BMCS) has been rebranded as Oracle
Cloud Infrastructure (OCI).
2017-09-12 10:40:56 -07:00
Matthew Hooker
624b1e5110
Merge pull request #4554 from prydie/f-oracle-bmcs
...
Oracle Bare Metal Cloud Services (BMCS) builder
2017-09-11 09:42:14 -07:00
Matthew Hooker
322422f235
remove copyright notice header and add COPYRIGHT file
2017-09-08 09:49:06 -07:00
Matthew Hooker
d4895156e5
remove copyright notice
2017-09-07 11:44:38 -07:00
Matthew Hooker
f7c85e36bc
add pkcs12 license
2017-09-07 11:40:14 -07:00
Matthew Hooker
57237c55e6
Merge pull request #5308 from pdecat/f-gce-instance-labels
...
Add support for setting labels on GCE instance
2017-09-06 14:59:40 -07:00
Matthew Hooker
3eeb722897
Merge pull request #5301 from hashicorp/pkcs12redux
...
Replace pkcs12 code with upstream
2017-09-06 10:52:11 -07:00
Megan Marsh
4d89ab3943
Merge pull request #5309 from hashicorp/pr/3523
...
Pr/3523
2017-09-06 09:27:58 -07:00
Patrick Decat
a7283f2281
Add support for setting labels on GCE instance
2017-09-06 10:58:08 +02:00
zhuzhih2017
1861a22c77
Merge pull request #5219 from zhuzhih2017/master
...
update alicloud go sdk and enable multi sites support for alicloud
2017-09-06 09:41:38 +08:00
Megan Marsh
8d24b3930a
cleanup imports and rebase artifacts
2017-09-05 15:23:22 -07:00
Chris Lundquist
cd2a783382
[lxc] update to new conventions, improve docs
2017-09-05 15:19:25 -07:00
Chris Lundquist
5eb1bc9338
[lxc] go fmt our files
2017-09-05 15:18:07 -07:00
Chris Lundquist
9b4a7e935f
[lxc] add basic tests
2017-09-05 15:18:07 -07:00
Chris Lundquist
2d19b4f2d2
Revert "[lxc] only build for linux. Ignore vim swp files."
...
This reverts commit 60409dc678273864dbb29f624a669d00b4cc0134.
2017-09-05 15:17:15 -07:00
Chris Lundquist
8b4e94d9c6
[lxc] remove commented code
2017-09-05 15:17:15 -07:00
Chris Lundquist
e23920a6b9
[lxc] only build for linux. Ignore vim swp files.
2017-09-05 15:17:15 -07:00
Chris Lundquist
15c18c83a9
[lxc] default to target runlevel 3
2017-09-05 15:17:15 -07:00
Chris Lundquist
ddbb584235
[lxc] Ubuntu likes runlevel 5
2017-09-05 15:17:15 -07:00
Chris Lundquist
341ebdd7e8
[lxc] implement interface, add validation
2017-09-05 15:17:15 -07:00
Michele Catalano
659a0da594
Add lxc builder to packer
2017-09-05 15:15:28 -07:00
Megan Marsh
7f0d253dbf
some last minute cleanup
2017-09-05 14:09:15 -07:00
Chris Lundquist
f6bc158a80
[lxd] minor fixups for new styles and docs
2017-09-05 12:46:36 -07:00
Chris Lundquist
29bbe10c1c
[lxd] rework local tar command to avoid chdir
2017-09-05 12:44:39 -07:00
Chris Lundquist
acae8fc2f9
[lxd] implement artifact detroy
2017-09-05 12:44:39 -07:00
Chris Lundquist
68bb72380a
[lxd] avoid extra container start/stop and race
...
Before we couldn't be sure if we were a permanent container or not.
Now we explicitly pass this on the command line so we don't depend on the
extra logic in `lxc publish --force` for ephemeral handling.
This means we avoid restarting the container after we publish
since we tear it down right away anyhow.
Likewise, there was sometimes a race which prevented the deletion
while the container was in a boot stage.
2017-09-05 12:44:39 -07:00
Chris Lundquist
e29f06fe1c
[lxd] refactor commands to dry things up
2017-09-05 12:44:39 -07:00
Chris Lundquist
c79e8ddc8f
[lxd] more cleanup
2017-09-05 12:44:39 -07:00
Chris Lundquist
607da30547
[lxd] remove CheckInit
2017-09-05 12:44:39 -07:00
Chris Lundquist
8326d7b6ac
[lxd] fixup some publish stuff
2017-09-05 12:44:39 -07:00
Chris Lundquist
c62f9a0301
[lxd] cleanup and tweaks
2017-09-05 12:44:39 -07:00
Chris Lundquist
3a0ef7b8b8
[lxd] it 'works'
2017-09-05 12:44:39 -07:00
Chris Lundquist
821cca56a8
[lxd] hack for UploadDir, improve Upload/Download
2017-09-05 12:44:39 -07:00
Chris Lundquist
7366b6c78e
[lxd] first pass
2017-09-05 12:44:39 -07:00
Andrew Pryde
dbbe8665e6
NewRunner -> NewRunnerWithPauseFn in bmcs builder
2017-09-05 11:08:27 +01:00
Rickard von Essen
516bf52115
Merge pull request #5173 from rickard-von-essen/cloudstack-fixes
...
cloudstack: Move ipaddress, host port, and source to statebag
2017-09-05 06:29:22 +02:00
Matthew Hooker
07bb47f793
Replace pkcs12 code with upstream
2017-09-02 16:09:29 -07:00
Sander Saares
2a1a9a55f8
Clean up both VHD and regular temp dir
2017-09-02 14:55:00 +03:00
Sander Saares
028c941b77
Enable use of separate temp path for Hyper-V VHD
2017-09-02 14:55:00 +03:00
Megan Marsh
3974976518
Merge pull request #5137 from vilkaspilkas/f-googlecompute-accelerator
...
Add accelerator api support to googlecompute builder
2017-09-01 14:12:26 -07:00
Rickard von Essen
cad3978e6a
cloudstack: Updated after review
2017-08-31 12:00:29 -07:00
Rickard von Essen
1a1ab3863c
cloudstack: Add support for Security Groups
...
Adds two new options:
- `create_security_group` which automatically creates a temporary SG.
- `security_groups` which takes a list of SGs to attach to the instance.
2017-08-31 12:00:03 -07:00
Matthew Hooker
d843531452
Merge pull request #5297 from vijayinvites/fix5295
...
Fix -on-error issue not working.
2017-08-31 11:52:02 -07:00
Vijaya Bhaskar Reddy Kondreddi
e45223a867
Fix -on-error issue not working.
...
When we supply -on-error flag for Packer with Hyper-v builder, it does not do anything.
2017-09-01 00:14:28 +05:30
Megan Marsh
e93d64e80f
Merge pull request #4592 from jimmythedog/ovfexportpath-localoutputdir
...
Ovfexportpath localoutputdir -- Merging for release with 1.1.0
2017-08-31 09:55:58 -07:00
Megan Marsh
cc104cdf55
Merge pull request #5174 from rickard-von-essen/cloudstack-temp-ssh-key
...
cloudstack: Setup temporary SSH keypair
2017-08-30 16:49:11 -07:00
Matthew Hooker
cd11e4ff33
Merge pull request #5187 from mkuzmin/vmware-artifactid
...
vmware: Publish artifact ID
2017-08-30 13:56:49 -07:00
Megan Marsh
9db2cdc02a
Merge pull request #5273 from StuporHero/master
...
Use docker cp
2017-08-30 13:52:07 -07:00
Jake Champlin
2d3ee06ecd
Remove LGPL dependencies
...
This changeset performs the following:
- Updates `masterzen/winrm` vendor to include change from (https://github.com/masterzen/winrm/pull/73 ).
- Removes `masterzen/xmlpath` dependency, as it is licensed under the LGPL license.
- Updates `dylanmei/winrmtest` vendor to include change from (https://github.com/dylanmei/winrmtest/pull/4 ).
- Updates `packer-community/winrmcp` vendor to include the removal of the `masterzen/winrm/winrm` sub-class as a result of the `winrm` CLI tool being removed from the `masterzen/winrm` repository.
- Updates nested dependencies as a result of the above vendor changes.
- Refactors `parallels/driver_9` to use `goxpath` instead of `xmlpath`, as `xmlpath` is licensed under LGPL.
- Adds a basic unit test for the refactor work in `parallels/driver_9` to confirm functionality.
This should completely remove any LGPL licensed dependencies inside of the Packer project.
```
$ make test
/home/jake/src/go/src/github.com/hashicorp/packer/scripts/gofmtcheck.sh $(find . -not -path "./vendor/*" -name "*.go")
==> Checking that code complies with gofmt requirements...
Check passed.
ok github.com/hashicorp/packer 0.044s
ok github.com/hashicorp/packer/builder/alicloud/ecs 0.055s
ok github.com/hashicorp/packer/builder/amazon/chroot 0.040s
ok github.com/hashicorp/packer/builder/amazon/common 0.021s
ok github.com/hashicorp/packer/builder/amazon/ebs 0.016s
ok github.com/hashicorp/packer/builder/amazon/ebssurrogate 0.015s
ok github.com/hashicorp/packer/builder/amazon/ebsvolume 0.014s
ok github.com/hashicorp/packer/builder/amazon/instance 0.058s
ok github.com/hashicorp/packer/builder/azure/arm 2.833s
ok github.com/hashicorp/packer/builder/azure/common 0.018s
? github.com/hashicorp/packer/builder/azure/common/constants [no test files]
? github.com/hashicorp/packer/builder/azure/common/lin [no test files]
? github.com/hashicorp/packer/builder/azure/common/logutil [no test files]
ok github.com/hashicorp/packer/builder/azure/common/template 0.038s
ok github.com/hashicorp/packer/builder/azure/pkcs12 0.120s
ok github.com/hashicorp/packer/builder/azure/pkcs12/rc2 0.020s
ok github.com/hashicorp/packer/builder/cloudstack 0.038s
ok github.com/hashicorp/packer/builder/digitalocean 0.015s
ok github.com/hashicorp/packer/builder/docker 0.028s
ok github.com/hashicorp/packer/builder/file 0.029s
ok github.com/hashicorp/packer/builder/googlecompute 3.162s
ok github.com/hashicorp/packer/builder/hyperv/common 0.006s
ok github.com/hashicorp/packer/builder/hyperv/iso 0.042s
ok github.com/hashicorp/packer/builder/null 0.018s
ok github.com/hashicorp/packer/builder/oneandone 0.022s
ok github.com/hashicorp/packer/builder/openstack 0.052s
ok github.com/hashicorp/packer/builder/parallels/common 2.549s
ok github.com/hashicorp/packer/builder/parallels/iso 0.050s
ok github.com/hashicorp/packer/builder/parallels/pvm 0.033s
ok github.com/hashicorp/packer/builder/profitbricks 0.023s
ok github.com/hashicorp/packer/builder/qemu 0.039s
ok github.com/hashicorp/packer/builder/triton 0.018s
ok github.com/hashicorp/packer/builder/virtualbox/common 5.533s
ok github.com/hashicorp/packer/builder/virtualbox/iso 0.044s
ok github.com/hashicorp/packer/builder/virtualbox/ovf 0.012s
ok github.com/hashicorp/packer/builder/vmware/common 5.325s
ok github.com/hashicorp/packer/builder/vmware/iso 0.076s
ok github.com/hashicorp/packer/builder/vmware/vmx 0.010s
ok github.com/hashicorp/packer/command 0.062s
ok github.com/hashicorp/packer/common 0.053s
ok github.com/hashicorp/packer/common/json 0.003s [no tests to run]
ok github.com/hashicorp/packer/common/powershell 0.015s
? github.com/hashicorp/packer/common/powershell/hyperv [no test files]
? github.com/hashicorp/packer/common/ssh [no test files]
ok github.com/hashicorp/packer/common/uuid 0.010s
ok github.com/hashicorp/packer/communicator/none 0.008s
ok github.com/hashicorp/packer/communicator/ssh 0.068s
ok github.com/hashicorp/packer/communicator/winrm 0.046s
ok github.com/hashicorp/packer/fix 0.005s
ok github.com/hashicorp/packer/helper/builder/testing 0.007s
ok github.com/hashicorp/packer/helper/communicator 0.013s
ok github.com/hashicorp/packer/helper/config 0.004s
? github.com/hashicorp/packer/helper/enumflag [no test files]
ok github.com/hashicorp/packer/helper/flag-kv 0.009s
ok github.com/hashicorp/packer/helper/flag-slice 0.006s
ok github.com/hashicorp/packer/packer 0.219s
ok github.com/hashicorp/packer/packer/plugin 0.233s
ok github.com/hashicorp/packer/packer/rpc 0.141s
ok github.com/hashicorp/packer/plugin/example 0.008s [no tests to run]
? github.com/hashicorp/packer/post-processor/alicloud-import [no test files]
? github.com/hashicorp/packer/post-processor/amazon-import [no test files]
ok github.com/hashicorp/packer/post-processor/artifice 0.003s [no tests to run]
ok github.com/hashicorp/packer/post-processor/atlas 0.018s
ok github.com/hashicorp/packer/post-processor/checksum 0.015s
ok github.com/hashicorp/packer/post-processor/compress 0.047s
ok github.com/hashicorp/packer/post-processor/docker-import 0.012s
ok github.com/hashicorp/packer/post-processor/docker-push 0.012s
ok github.com/hashicorp/packer/post-processor/docker-save 0.008s
ok github.com/hashicorp/packer/post-processor/docker-tag 0.008s
ok github.com/hashicorp/packer/post-processor/googlecompute-export 0.015s [no tests to run]
? github.com/hashicorp/packer/post-processor/manifest [no test files]
ok github.com/hashicorp/packer/post-processor/shell-local 0.028s
ok github.com/hashicorp/packer/post-processor/vagrant 0.030s
ok github.com/hashicorp/packer/post-processor/vagrant-cloud 0.028s
ok github.com/hashicorp/packer/post-processor/vsphere 0.014s
ok github.com/hashicorp/packer/provisioner 0.011s
ok github.com/hashicorp/packer/provisioner/ansible 0.140s
ok github.com/hashicorp/packer/provisioner/ansible-local 0.056s
ok github.com/hashicorp/packer/provisioner/chef-client 0.050s
ok github.com/hashicorp/packer/provisioner/chef-solo 0.061s
ok github.com/hashicorp/packer/provisioner/converge 0.018s
ok github.com/hashicorp/packer/provisioner/file 0.015s
ok github.com/hashicorp/packer/provisioner/powershell 0.168s
ok github.com/hashicorp/packer/provisioner/puppet-masterless 0.008s
ok github.com/hashicorp/packer/provisioner/puppet-server 0.031s
ok github.com/hashicorp/packer/provisioner/salt-masterless 0.010s
ok github.com/hashicorp/packer/provisioner/shell 0.010s
ok github.com/hashicorp/packer/provisioner/shell-local 0.037s
ok github.com/hashicorp/packer/provisioner/windows-restart 0.180s
ok github.com/hashicorp/packer/provisioner/windows-shell 0.159s
? github.com/hashicorp/packer/scripts [no test files]
ok github.com/hashicorp/packer/template 0.008s
ok github.com/hashicorp/packer/template/interpolate 0.004s
? github.com/hashicorp/packer/version [no test files]
```
2017-08-30 12:10:12 -07:00
Megan Marsh
1adcce6046
Merge pull request #5284 from hashicorp/fix_5093
...
Allow granular modification of sriov and ena enhanced networking opti…
2017-08-29 14:28:42 -07:00
Megan Marsh
85ad1f58fb
include ena_support and sriov_support in chroot and instance docs
2017-08-29 09:36:06 -07:00
Megan Marsh
f19040f3aa
Merge pull request #5196 from cstuntz/aws-add-tags
...
Upgrade aws-sdk-go to 1.10.14, add tags at instance run time
2017-08-28 13:17:29 -07:00
Megan Marsh
2d4bc70d7b
use ami prefix to make it clear that these variables are amazon specific
...
add fixer, fixer tests
2017-08-28 11:21:27 -07:00
Megan Marsh
9e2e467b31
Allow granular modification of sriov and ena enhanced networking options in amazon amis. Maintain old functionality.
2017-08-25 14:49:53 -07:00
Christopher Boumenot
9a34fd15ca
azure: improve docs and validation
...
Closes #5186
2017-08-24 15:23:13 -07:00
Christopher Boumenot
0780667b4d
azure: support storage account for managed images
...
Closes #5202
2017-08-24 15:10:49 -07:00
Megan Marsh
7da52e1f77
Merge pull request #5250 from hashicorp/repro_3399
...
make force_deregister work in all regions, not just original region.
2017-08-24 14:41:02 -07:00
Matthew Hooker
4edbd5322c
docker: stream uploads over stdin
...
Only write to a tempfile if we don't have a stat struct
2017-08-24 13:29:38 -07:00
Michael Juliano
c8db128dc5
Modified func Upload to use docker cp
2017-08-24 13:29:37 -07:00
Łukasz Kostka
bbaf15ef2e
Merge remote-tracking branch 'fork/master'
2017-08-24 20:57:44 +02:00
Łukasz Kostka
8703937cde
Natural order of AMI artifacts
2017-08-24 20:57:12 +02:00
Matthew Hooker
28894fb418
Merge pull request #5274 from mmerdes/master
...
Fix timestamp interpolation in created file name
2017-08-23 14:08:27 -07:00
Victor Ronin
cb75796389
Show a message why VM export was skipped while building on VMWare Fusion/Workstation
2017-08-23 12:44:46 -07:00
Matthias Merdes
c8d09b5152
Fix timestamp interpolation in created file name
...
This commit attempts to fix the timestamp-related part of #4885 by using the logic found in the analogous virtualbox implementation. In essence, it applies the solution from commit 93bb0d8
to the vmx case.
2017-08-23 13:04:42 +02:00
Jasmin Gacic
fce08fce73
Merge pull request #5233 from StackPointCloud/packer-builder-profitbricks-updates
...
Packer builder ProfitBricks Cloud API V4 updates
2017-08-22 17:50:31 +02:00
Matthew Hooker
e5345b5c78
Merge pull request #5248 from sean-/b-fix-illumos-build
...
Fix build on GOOS=solaris
2017-08-21 12:24:53 -07:00
Megan Marsh
ef858857e4
fix bug introduced by 5221
2017-08-14 14:07:21 -07:00
Megan Marsh
14b2d04332
make force_deregister work in all regions, not just original region.
2017-08-14 12:31:58 -07:00
Sean Chittenden
cd84b17923
Fix building packer on GOOS=solaris
...
Update to golang/x/sys/unix is coming in the subsequent commit.
2017-08-14 10:34:06 -07:00
Sergei A Mamonov
07f7183b64
Add docker container dir to template
2017-08-14 09:26:05 -07:00
Matthew Hooker
754c80d217
create default tags as well
2017-08-11 12:31:05 -07:00
cstuntz
db7f860d91
Adding tagging back to spot instances, after they're created
2017-08-11 10:43:05 -07:00
Ali Bazlamit
c67d118523
Update packer to Use ProfitBricks Image Alias feature
2017-08-10 16:15:53 +03:00
Megan Marsh
199b9062b0
fix file copy script to prevent error when encountering empty directory
2017-08-09 15:19:17 -07:00
Megan Marsh
a924db9a79
Merge pull request #5228 from hashicorp/4653_dont_delete_snapshots
...
continue, not break
2017-08-08 15:07:01 -07:00
Christopher Boumenot
216317c49d
Merge pull request #5222 from Trip09/NO-TICKET-azure-allow-build-inside-vpc
...
[Azure] allow build inside vpc access via public IP
2017-08-08 15:02:53 -07:00
Megan Marsh
ef0a091720
continue, not break
2017-08-08 14:53:56 -07:00
Matthew Hooker
968eb94b80
Merge pull request #5211 from hashicorp/4653_dont_delete_snapshots
...
use block device mappings to know whether a snapshot existed before p…
2017-08-08 14:31:38 -07:00
Megan Marsh
2d6028eb9a
use named loops instead of doDelete flag
2017-08-08 14:28:01 -07:00
Megan Marsh
e9ec705497
use block device mappings to know whether a snapshot existed before packer's current run. If yes, don't delete the unencrypted snapshot.
2017-08-08 13:59:55 -07:00
Matthew Hooker
9b88ec975a
Merge pull request #5227 from hashicorp/fix-flaky-test
...
fix test that flaked in a travis build recently
2017-08-08 12:28:33 -07:00
Megan Marsh
3f7c090f3b
fix test that flaked in a travis build recently
2017-08-08 12:25:12 -07:00
Joao Albuquerque
d909c702ee
Working PublicPrivate
2017-08-08 15:05:45 +01:00
Tobias
8a9c2b6959
Merge branch 'master' of https://github.com/hashicorp/packer into patch-1
2017-08-08 13:27:45 +00:00
Tobias
ada8902721
fix formatting
2017-08-08 13:21:53 +00:00
Matthew Hooker
72deffc3d8
Merge pull request #5192 from danisla/patch-1
...
Update to how zone is extracted from metadata
2017-08-07 16:03:44 -07:00
Luke Farnell
7c3eb33cda
Fixed spelling mistakes
2017-08-07 13:45:50 -04:00
Luke Farnell
d9a5b69403
clean up ineffectual assignments
2017-08-07 13:20:01 -04:00
zhuzhih2017
096a0cd4fb
update aliyun go sdk and enable multi sites support for alicloud
2017-08-04 09:56:04 +08:00
Megan Marsh
c760e1323f
don't panic if the communicator is none and the port is 0
2017-08-03 13:54:57 -07:00
cstuntz
c717765154
Removing tagging post instance launch
2017-08-02 09:29:47 -07:00
Andrew Pryde
e8e0e8c948
Add ssh_private_key_file support to BMCS builder
2017-08-02 17:18:53 +01:00
Andrew Pryde
8c81bb5dac
Fix BMCS builder step error reporting style
...
See: https://github.com/hashicorp/packer/pull/4554#discussion_r130214247
2017-08-02 12:44:44 +01:00
Andrew Pryde
fc17f69bad
Set default BMCS builder image name
...
Set the default image name to "packer-{{timestamp}}".
2017-08-02 12:43:53 +01:00
Andrew Pryde
630ee5d650
Change imports mitchelh/packer -> hashicorp/packer
2017-08-02 09:53:48 +01:00
Andrew Pryde
3c4ec2dc3e
Allow override signing key pass in oracle-bmcs
...
Adds pass_phrase property to the oracle-bmcs builder to allow users to
specify/override a pass phrase for the private key used to sign requests
to the BMCS API.
2017-08-02 09:53:48 +01:00
Andrew Pryde
25e4843a6f
BMCS password protected keys via config file
...
Implements support for signing requests with encrypted private keys in
the BMCS SDK.
The pass_phrase property in the SDK config file is now supported. See
https://docs.us-phoenix-1.oraclecloud.com/Content/API/Concepts/sdkconfig.htm
for more information.
2017-08-02 09:53:48 +01:00
Andrew Pryde
3473162234
Add pass and interactive auth to bmcs ssh conf
...
Adds password and keyboard interactive authentication to the oracle-bmcs
builder.
2017-08-02 09:53:48 +01:00
Andrew Pryde
7eb3f30d50
Fix oracle-bmcs tests panicing instead of failing
...
Replace use of t.Errorf with t.Fatalf to prevent subsequent panic on nil
pointer access.
2017-08-02 09:53:48 +01:00
Andrew Pryde
7dcd7cac47
Remove default SSHUsername in oracle-bmcs config
2017-08-02 09:53:48 +01:00
Andrew Pryde
9728f890cf
Implemented and documented oracle-bmcs builder
...
Implements a new Packer builder (oracle-bmcs) which adds support for
building custom images for Oracle Bare Metal Cloud Services (BMCS)
https://cloud.oracle.com/en_US/bare-metal .
Additionally includes documentation for the oracle-bmcs builder.
2017-08-02 09:53:48 +01:00
cstuntz
42444e58e6
Updating step_run_source_instance to add tags at instance start instead of adding them to running instance
2017-07-31 11:38:30 -07:00
Dan Isla
00797cc23b
Update to how zone is extracted from metadata
2017-07-29 08:20:58 -07:00
Michael Kuzmin
9876a28ea7
vmware: publish vm_name as artifact ID
2017-07-28 11:16:46 +03:00
Matthew Hooker
b99e2c4b96
Merge pull request #5148 from zhuzhih2017/master
...
fix keypair error for debug mode and increase the wait time to avoid …
2017-07-27 13:02:09 -07:00
Rickard von Essen
858f1227af
cloudstack: Updated after review (2)
2017-07-27 21:32:47 +02:00
Tobias
eafaaa881f
builder/hyperv/iso: missing InterpolateContext
2017-07-27 16:57:02 +02:00
Rickard von Essen
26cd27dc7c
cloudstack: Updated after review
2017-07-26 21:34:11 +02:00
Rickard von Essen
2fea167294
cloudstack: Updated after review
2017-07-26 19:01:12 +02:00
Rickard von Essen
89dcc93f1c
cloudstack: Print instance password if debug mode
2017-07-26 07:38:05 +02:00
Rickard von Essen
fc964bfab2
cloudstack: Setup temporary SSH keypair
2017-07-26 07:38:05 +02:00
Rickard von Essen
8a035ddb8a
parallels: Remove soon to be removed --vmtype flag
...
In the next release of Parallels Desktop for Mac Pro Ed. the prlctl createvm
command doen't support the --vmtype flag anymore.
2017-07-26 07:27:08 +02:00
bugbuilder
15eb338596
Cleaning refactoring name errors x2
2017-07-24 00:30:55 -04:00
bugbuilder
f31f154237
Cleaning refactoring name errors
2017-07-24 00:17:18 -04:00
bugbuilder
b50e279d8a
Making visible verify cache step
2017-07-24 00:11:30 -04:00
bugbuilder
d4e0847a74
remove unnecessary initialization
2017-07-23 14:16:03 -04:00
bugbuilder
22aa89db27
file scheme has prioriry as remote targetPath
2017-07-23 14:11:48 -04:00
bugbuilder
84ad413e23
Set remote iso path
2017-07-23 03:20:06 -04:00
bugbuilder
4023b618b4
Verify remote cache for ESXi
2017-07-23 01:31:46 -04:00
Saulius Grusnys
5ebc96744d
Accelerator api is now GA, switching back to v1 from v0.beta
2017-07-21 15:05:24 +01:00
zhuzhih2017
8cf8079cad
rename variable name to avoid misunderstanding
2017-07-21 09:47:21 +08:00
zhuzhih2017
62da0e7607
fix keypair error for debug mode and increate the wait time to avoid the timeout failure, add the more example
2017-07-20 11:13:59 +08:00
Saulius Grusnys
b6783a1180
Adding sanity checks in Prepare when adding accelerators and tests for accelerator configuration
2017-07-19 11:28:49 +01:00
Rickard von Essen
1bf8a0c6a1
cloudstack: Move ipaddress and host port to state
2017-07-18 21:40:36 +02:00
Rickard von Essen
07fffd7cd5
cloudstack: moved instanceSource to statebag
2017-07-18 16:39:28 +02:00
Rickard von Essen
ef5c7936f2
Merge pull request #5130 from rickard-von-essen/cloudstack-ssh-agent
...
cloudstack: Add support for ssh_agent_auth
2017-07-17 18:41:24 +02:00
Saulius Grusnys
200113b8c1
Switch googlecompute builder to use compute/v0.beta and add support for accelerator api
2017-07-17 15:39:41 +01:00
Megan Marsh
a2f7a65e35
fix communicator tests
2017-07-14 13:58:28 -07:00
Rickard von Essen
f47c41372e
cloudstack: Add support for ssh_agent_auth
2017-07-14 21:25:20 +02:00
Rickard von Essen
285b1391ae
Merge pull request #5123 from rickard-von-essen/cloudstack-err
...
cloudstack: Improved error reporting
2017-07-14 13:22:18 +02:00
Rickard von Essen
4a6d029554
Merge pull request #5125 from rickard-von-essen/cloudstack-cidr
...
cloudstack: Add default cidr_list [ 0.0.0.0/0 ]
2017-07-14 11:14:51 +02:00
Rickard von Essen
89b9b4c456
cloudstack: Add default cidr_list [ 0.0.0.0/0 ]
2017-07-14 11:12:41 +02:00
Rickard von Essen
62dac4a168
cloudstack: some updates after review
2017-07-14 11:09:21 +02:00
Rickard von Essen
0d7c3ac171
cloudstack: Allow reading api_url, api_key, and secret_key from env vars
...
If unset reads:
- `api_url` from `CLOUDSTACK_API_URL`
- `api_key` from `CLOUDSTACK_API_KEY`
- `secret_key` from `CLOUDSTACK_SECRET_KEY`
2017-07-14 07:34:11 +02:00
Rickard von Essen
44089b2f55
cloudstack: Improved error reporting
...
Ensure that errors are shown when they happens.
2017-07-14 07:11:37 +02:00
Megan Marsh
938840782f
Merge pull request #5059 from hashicorp/5053_fix
...
fix panic that occurs when ami_block_device_mappings and does not exp…
2017-07-07 10:32:48 -07:00
Sander van Harmelen
3f444997b2
Make expunge optional and improve logging output ( #5099 )
2017-07-07 10:54:58 +02:00
Sander van Harmelen
c4ef9bcd3f
Make sure we always print and return any errors
2017-07-06 23:31:13 +02:00
Lars Tobias Skjong-Børsting
c01f6d8708
builder/cloudstack: Support http server ( #5017 )
...
builder/cloudstack: Added docs for http server
Closes hashicorp/packer#4949
2017-07-06 11:59:02 +02:00
Taliesin Sisson
2325c1ee58
Merge pull request #5085 from Lee303/builder-hyperv-temppath
...
Hyper-V Builder - Add support for temp_path directive to override system %temp%
2017-07-01 06:58:01 +01:00
Taliesin Sisson
d569a1b879
Merge pull request #5014 from Lee303/builder-hyperv-floppydirs
...
Add support for floppy_dirs with hyperv-iso builder
2017-07-01 06:52:36 +01:00
Lee
0680cb08e5
Add support for temp_path directive to override systemp %temp%
2017-07-01 00:19:27 +01:00
Megan Marsh
0b0fd408c4
Merge pull request #5048 from hashicorp/4887_patch
...
Fix windows filepath in docker-toolbox call.
2017-06-28 16:44:42 -07:00
Megan Marsh
c0e271ba9c
Merge pull request #5076 from it-praktyk/Group_membership_by_SID
...
Verify membership in the group Hyper-V Administrators by SID not name
2017-06-28 09:20:48 -07:00
Wojciech Sciesinski
7bacc22825
Verify membership in the group Hyper-V Administrators by SID not name - fix #5022
2017-06-28 01:44:04 +02:00
Megan Marsh
12d43c98f7
test the deduplication code
2017-06-27 16:12:22 -07:00
Christopher Boumenot
ec96cacdf3
azure: write temporary ssh key to a file
2017-06-27 13:23:04 -07:00
Megan Marsh
5f92de6a39
fix panic that occurs when ami_block_device_mappings and does not explicitly contain the root volume
2017-06-27 13:17:45 -07:00
Rickard von Essen
46ec8ccb97
Merge pull request #5035 from rickard-von-essen/issue-5018
...
googlecompute: Allow using URL's for network and subnetwork
2017-06-27 22:03:09 +02:00
Rickard von Essen
f230f00726
googlecompute: Allow using URL's for network and subnetwork
...
If full server URL's is used in subnetwork we can skip reading from the network
API. This is usefull when you can launch instances in a shared network but don't
have access to do GET on the network resources.
Closes : #5018
2017-06-27 21:58:21 +02:00
Rickard von Essen
f1d2ae42d8
Merge pull request #5058 from ncdc/parallels/fix-new-artifact-visit-when-file-not-found
...
Parallels: skip missing paths when looking for unnecessary files
2017-06-27 07:09:23 +02:00
Christopher Boumenot
06ea433104
azure: private SSH private key for debug
2017-06-26 13:44:34 -07:00
Christopher Boumenot
0d427939bc
azure: Fix custom managed images
...
I missed a change in my SDK update, and when I integrated this missing
change I broke custom images.
2017-06-26 11:13:41 -07:00
Christopher Boumenot
1874514e4f
azure: go vet ./...
2017-06-26 11:13:40 -07:00
Christopher Boumenot
027db82862
azure: go fmt ./...
2017-06-26 11:13:40 -07:00
Christopher Boumenot
9425ece680
azure: Handle SDK changes
...
There are two types for storage profile, but they use the same
serialization name (storageProfile). This creates problems, so I worked
around it by taking the union of this type as well as OS Disk.
2017-06-26 11:13:40 -07:00
Christopher Boumenot
841f54fc1e
azure: unit test fixes
2017-06-26 11:13:39 -07:00
Christopher Boumenot
b7e32cb10a
azure: best error message possible
2017-06-26 11:13:39 -07:00
Christopher Boumenot
c09f8b84b9
azure: fit and finish
...
* More unit testing to assert customer's configuration.
* Further reduce the options that are needed to power an Azure build.
This seems like a much more manageable level.
* Update all of the examples to use a more current VM sku.
* Add an example for RHEL.
* Move from OpenSuSE to SuSE.
* Update the docs.
2017-06-26 11:13:39 -07:00
Christopher Boumenot
d782ad99f8
azure: pick better names
...
Use custom_managed_image_name to represent managed images use to build Packer VMs.
Use managed_image_name to represent the image produced by Packer.
2017-06-26 11:13:38 -07:00
Christopher Boumenot
9f4fb56041
Support managed disk for platform images
2017-06-26 11:13:38 -07:00
Christopher Boumenot
c6ff4aae59
Support for building from custom managed images
2017-06-26 11:13:38 -07:00
Christopher Boumenot
8cea6f5be5
azure: Update to SDK 10.0.3
...
The OAuth code was moved to the adal package.
Authorizers now ues an interface instead of a simple token.
Long running operations return a channel for the operation, and the
error.
2017-06-26 11:13:37 -07:00
Andy Goldstein
c6dba6c051
Parallels: skip missing paths when looking for unnecessary files
2017-06-23 14:29:07 -04:00
Matthew Hooker
d35eeecf46
vnc port discovery timeout is 15 seconds
2017-06-22 17:58:18 -07:00
Megan Marsh
a281e60e15
de-mangle windows filepath to something docker can handle
2017-06-22 10:21:30 -07:00
Matthew Hooker
6581e0b7d6
add hostkeycallback everywhere else
2017-06-21 12:00:34 -07:00
Megan Marsh
2a6f5f1b13
specify HostKeyCallback for vmware esx5 driver
2017-06-21 10:09:11 -07:00
Megan Marsh
ac15b33d2b
Merge pull request #5029 from hashicorp/5007_instance_stop
...
add exponential backoff retry for stopping instance in amazon
2017-06-20 12:08:52 -07:00
Megan Marsh
f7a703dfb2
add pending to allowable states while waiting for ebs instance to stop
2017-06-20 10:55:23 -07:00
Megan Marsh
d706147423
add exponential backoff retry for stopping instance in amazon
...
retry only if the error is instancenotfound
2017-06-20 10:50:57 -07:00
Lee Spottiswood
4d394033d2
add tests
2017-06-20 12:21:07 +01:00
Lee Spottiswood
f95093ef63
Add support for floppy_dirs with hyperv-iso builder
2017-06-15 13:12:39 +01:00
Matthew Hooker
febc65aa7c
try again to get region from metadata
2017-06-14 16:30:18 -07:00
Matthew Hooker
8dae6b60c1
Merge pull request #4996 from hashicorp/mwhooker/4613
...
builder/amazon: Support Assume Role with MFA and ECS Task Roles
2017-06-13 17:40:09 -07:00
Matthew Hooker
350e8bfe0d
we don't need to look for region in metadata.
...
Closes #4615'
2017-06-13 17:35:48 -07:00
Matthew Hooker
94d7a4ce8d
post-processor/vagrant-cloud: try upload once
...
* fixes multiple uploads mentioned in #4973
* removed unused token code
2017-06-12 17:34:32 -07:00
Kent Wang
e59678a033
Fix alicloud-ecs typo
...
* Fix typo: internet_max_bandwith_out -> internet_max_bandwidth_out
2017-06-11 16:03:28 +08:00
Kent Wang
6da9802a33
builder/alicloud-ecs: Fix chooseNetworkType
...
* Choose VpcNet when KeyPairName is set
* Code cleanup
2017-06-11 16:01:09 +08:00
Kent Wang
a40bb9af99
Fix ssh config must specify HostKeyCallback
...
Fixes : #5001
2017-06-11 15:58:45 +08:00
Matthew Hooker
4860d7179d
remove redundant log line
2017-06-09 13:00:08 -07:00
Matthew Hooker
6231ec3569
Merge pull request #4997 from Constantin07/add-sg-name-to-output
...
Print in the output the temporary security group name too.
2017-06-09 12:59:03 -07:00
Yamashita, Yuu
ab4636ae0f
Explicitly specify `zoneid` in CloudStack's `associateIpAddress` call ( #4995 )
...
Generally speaking, this must be harmless since the IP address
and the virtual machine need to be deployed to the same zone.
2017-06-09 21:11:52 +02:00
Constantin Bugneac
ae03dab920
Print in the output the security group name too.
2017-06-09 20:05:59 +01:00
Matthew Hooker
a619759bf7
add support for profile
2017-06-09 11:24:30 -07:00
Matthew Hooker
3fb4162660
remove code from bad merge
2017-06-09 11:07:29 -07:00
Matthew Hooker
624aaa2067
bugfix
2017-06-09 11:01:27 -07:00
Matthew Hooker
3ed7572525
remove cli_config
2017-06-09 10:59:50 -07:00
Matthew Hooker
f637878822
with wrapping
2017-06-09 10:46:01 -07:00
Matthew Hooker
23084fe171
dedupe
2017-06-09 10:41:58 -07:00
Matthew Hooker
58e386827a
fix typo
2017-06-09 10:40:50 -07:00
Rickard von Essen
15f80dc5ab
aws: Drop undocumented option `profile`
...
This was added in 883acb18fa
to support
assume role and shared configuration file. This was never completed.
2017-06-09 10:37:54 -07:00
Matthew Hooker
56c513088b
I think this was the intention
2017-06-09 10:34:49 -07:00
Matthew Hooker
94854a26d9
fix go vet issue
2017-06-09 10:30:07 -07:00
Matthew Hooker
d7e39b72b2
remove dead code
2017-06-09 10:30:07 -07:00
Rickard von Essen
f106e60a7e
builder/amazon: Added MFA support
2017-06-09 10:28:31 -07:00
Rickard von Essen
f55c3b9d34
builder/amazon: Support assume role with assume_role_arn
...
This supports assuming a role when using profile or static credentials.
2017-06-09 10:27:56 -07:00
Rickard von Essen
3833d34829
builder/amazon: Cleaned up credential handeling
...
This properly handles:
- Preference between types of credential
- Assume role via ECS Task Role
2017-06-09 10:26:22 -07:00
Anish Bhatt
ff39827733
Make null builder actually have the ability to do nothing
2017-06-07 17:11:42 -07:00
Pavel Vasilevich
547cfa3602
Add information about artifact in manifest post-processor in azure-arm builder
2017-06-07 14:12:03 +07:00
Matthew Hooker
769ff28e03
builder/ebssurrogate: Use correct devices for AMI.
2017-06-06 12:33:08 -07:00
Matthew Hooker
ab81b3ef7d
Merge pull request #4699 from BenPhegan/virtualbox_sata_port_count
...
Add configuration to virtualbox-iso to allow sata port count configuration
2017-06-05 15:21:12 -07:00
Matthew Hooker
bf830e393d
Merge pull request #4810 from bryonr/fix_vmware_shutdown_cleanup_osx
...
Help ensure VMX builder properly removes mounted CDs on OS X
2017-06-05 15:17:08 -07:00
Matthew Hooker
39a2b9c50e
Merge pull request #4953 from hashicorp/azure-artifact
...
builder/azure: set artifact metadata
2017-06-05 11:44:36 -07:00
Matthew Hooker
11ba986abc
Merge pull request #4930 from hashicorp/fix4925
...
builder/amazon: don't try to delete extra volumes during clean up
2017-06-02 14:08:49 -07:00
Matthew Hooker
b1bcf62ae1
Merge pull request #4619 from zhuzhih2017/master
...
Add packer plugin which support to create alicloud ecs image
2017-06-02 13:33:10 -07:00
Matthew Hooker
0c116981ab
Merge pull request #4960 from rickard-von-essen/issue-4959
...
virtualbox: Don't add portforwarding if comm = none
2017-06-02 13:15:43 -07:00
Rickard von Essen
31b93a3026
virtualbox: Don't add portforwarding if comm = none
...
Closes : #4959
2017-06-02 21:58:34 +02:00
Rickard von Essen
2f8b02a6e1
builder/null: Support SSH Agent Auth
2017-06-02 12:55:31 +02:00
zhuzhih2017
2de00f2ff8
add check rule for image_name
2017-06-02 16:47:50 +08:00
zhuzhih2017
7bc0f17ce5
fix the wrong number args in step_create_instance
2017-06-02 11:37:16 +08:00
zhuzhih2017
b9eee0805e
Merge branch 'master' of https://github.com/zhuzhih2017/packer
2017-06-02 11:28:53 +08:00
zhuzhih2017
7f91069c2c
add rule to prevent the source_image name include spaces and fix the step_run_instance report wrong message problem
2017-06-02 11:28:41 +08:00
Matthew Hooker
2fd41f4707
grammar fixes.
2017-06-01 19:33:12 -07:00
Matthew Hooker
fdfd01eaea
formatting
2017-06-01 17:14:51 -07:00
Matthew Hooker
0348b2d3da
don't need alicloud in file name
2017-06-01 15:52:57 -07:00
Matthew Hooker
e72163264b
spelling and grammar fixes
2017-06-01 15:49:45 -07:00
Matthew Hooker
66bd707f7c
spell fix
2017-06-01 15:47:47 -07:00
Matthew Hooker
8bc038d8b8
remove alicloud_ prefix
2017-06-01 15:47:47 -07:00
Matthew Hooker
8db397765c
spelling and formatting
2017-06-01 15:47:46 -07:00
Matthew Hooker
5ed3be9a8c
set azure metadata
2017-06-01 14:11:40 -07:00
Matthew Hooker
1f4b532ed5
Merge pull request #4948 from hashicorp/kms_key_regions
...
Kms key regions
2017-06-01 13:30:31 -07:00
Megan Marsh
b8c2a5fd43
fix step initializer everywhere StepAMIRegionCopy is called
2017-06-01 09:28:17 -07:00
Megan Marsh
875745ab9b
one more test
2017-05-31 14:16:02 -07:00
Megan Marsh
1944f38985
update docs and clean up
2017-05-31 13:41:32 -07:00
Megan Marsh
5b35d199da
golang has different style than python
2017-05-31 12:27:45 -07:00
Megan Marsh
f9d7292566
builder/amazon regional KMS keys
2017-05-31 11:23:18 -07:00
Matthew Hooker
730cc0889e
Merge pull request #4919 from hashicorp/fix4798
...
builder/vmware: make vnc probe timeout configurable
2017-05-30 12:59:22 -07:00
Matthew Hooker
f801c507fc
builder/vmware: make vnc probe timeout configurable
2017-05-30 12:51:45 -07:00
Jason Ramey
cc309c0e5f
spelling fix
2017-05-26 01:03:11 -04:00
zhuzhih2017
b2aa40655b
fix long line format
2017-05-26 10:59:53 +08:00
zhuzhih2017
5e7e5a419d
format the code as CI required
2017-05-26 10:23:36 +08:00
zhuzhih2017
7b9f93c75f
add retry logic when attach keypair failed
2017-05-26 09:57:00 +08:00
Matthew Hooker
0e3469e913
spell fix
2017-05-25 18:49:45 -07:00
Megan Marsh
7174a7a3d5
New map: region_kms_key_ids, allowing custom encryption keys on a per-region basis. Also new tests.
2017-05-25 14:42:03 -07:00
Matthew Hooker
77b4d47409
only delete snapshots which exist
2017-05-25 14:16:20 -07:00
Matthew Hooker
c0b27dfa6f
don't try to delete extra volumes during clean up
2017-05-25 13:48:32 -07:00
Matthew Hooker
1cf4754d80
correct ami_name error reporting
2017-05-25 13:02:36 -07:00
zhuzhih2017
a26c72f38e
fix the comments about root and apply the keypair with latest dependence
2017-05-25 18:27:54 +08:00
James Nugent
c4439aba82
builder/vmware: Add vmx_remove_ethernet_interfaces
...
This commit adds a new option, `vmx_remove_ethernet_interfaces`, to both
of the VMWare builders. This is useful when building Vagrant boxes,
since Vagrant now produces output such as:
```
WARNING: The VMX file for this box contains a setting that is
automatically overwritten by Vagrant when started. Vagrant will stop
overwriting this setting in an upcoming release which may pre vent
proper networking setup. Below is the detected VMX setting:
ethernet0.pcislotnumber = "33"
If networking fails to properly configure, it may require this VMX
setting. It can be manually applied via the Vagrantfile:
Vagrant.configure(2) do |config|
config.vm.provider :vmware_fusion do |vmware|
vmware.vmx["ethernet0.pcislotnumber"] = "33"
end
end
```
This can be avoided entirely by removing the ethernet adapters from the
VMX file prior to packaging as a Vagrant box, in which case adapters are
created as expected according to the Vagrantfile specification.
2017-05-24 18:53:25 -05:00
Megan Marsh
4abb541468
fix logging to clarify that encrypt_boot needs to be set, not encrypt, and fix typo
2017-05-24 16:39:36 -07:00
Matthew Hooker
f6eb4e1b40
use cleanhttp to get a default transport.
2017-05-24 11:05:59 -07:00
r_takaishi
4fc0616bc9
fix go vet fail
2017-05-24 17:57:21 +09:00
r_takaishi
db58854b0b
make fmt
2017-05-24 16:28:13 +09:00
r_takaishi
37e6539bff
use DefaultTransport
2017-05-24 16:19:30 +09:00
r_takaishi
67ce2da59e
add cacert config to specify custom CA certificate file
2017-05-24 14:21:16 +09:00
r_takaishi
1de9eb2cfd
support client certificate file
...
When AUTH_URL and each endpoints need SSL client authentication, we
have to specify cert file and private key file.
So, add optional config, cert and key.
2017-05-24 10:23:12 +09:00
JD Friedrikson
a0052fdb68
Specify InsecureIgnoreHostKey for HostKeyCallback
...
[A recent breaking change upstream in Golang's crypto
library](e4e2799dd7
)
has broken SSH connectivity for a few builders:
```
==> qemu: Waiting for SSH to become available...
2017/05/20 16:23:58 ui: ==> qemu: Waiting for SSH to become available...
2017/05/20 16:23:58 packer: 2017/05/20 16:23:58 [INFO] Attempting SSH connection...
2017/05/20 16:23:58 packer: 2017/05/20 16:23:58 reconnecting to TCP connection for SSH
2017/05/20 16:23:58 packer: 2017/05/20 16:23:58 handshaking with SSH
2017/05/20 16:23:58 packer: 2017/05/20 16:23:58 handshake error: ssh: must specify HostKeyCallback
2017/05/20 16:23:58 packer: 2017/05/20 16:23:58 [DEBUG] SSH handshake err: ssh: must specify HostKeyCallback
2017/05/20 16:24:05 packer: 2017/05/20 16:24:05 [INFO] Attempting SSH connection...
2017/05/20 16:24:05 packer: 2017/05/20 16:24:05 reconnecting to TCP connection for SSH
2017/05/20 16:24:05 packer: 2017/05/20 16:24:05 handshaking with SSH
2017/05/20 16:24:05 packer: 2017/05/20 16:24:05 handshake error: ssh: must specify HostKeyCallback
2017/05/20 16:24:05 packer: 2017/05/20 16:24:05 [DEBUG] SSH handshake err: ssh: must specify HostKeyCallback
```
Specifying HostKeyCallback as insecure should make things work again
and would make sense for packer's use case.
2017-05-20 16:17:04 -04:00
Matthew Hooker
4137660b7a
fix ami name validation
2017-05-19 02:11:43 -07:00
Matthew Hooker
e67d1fd676
Merge pull request #4900 from rogers0/PR/crypto-CVE-ABI-change
...
handle ABI change of golang-golang-x-crypto-dev
2017-05-18 12:06:08 -07:00
Matthew Hooker
ee5d13611f
update ssh client usage for new crypto/ssh version
2017-05-18 12:01:44 -07:00
numa
b15c3a5c92
Fix error message
...
I've matched the error message to the document
2017-05-18 18:40:16 +09:00
Rémi Jouannet
45143bb6f4
add an option custom_endpoint_ec2 for amazon builder, add a condition if vpc_id is empty don't add the parameter to the aws call
2017-05-17 18:45:20 +02:00
Matthew Hooker
06c7136e30
compare regions against valid regions
2017-05-16 21:00:13 -07:00
Luke Farnell
3afd77a5e4
fixed logic error and fixed suggestion
2017-05-16 21:00:13 -07:00
Luke Farnell
078c139ef1
Fix tests and add more
2017-05-16 21:00:13 -07:00
Luke Farnell
0f354614c0
Region Validation
2017-05-16 21:00:13 -07:00
Luke Farnell
abf2e618b5
Wait for snapshot transfer and change artifact output
2017-05-16 21:00:13 -07:00
Luke Farnell
4f5d3face2
remove duplicates
2017-05-16 21:00:12 -07:00
Luke Farnell
8ed50608b1
add image transfer for DigitalOcean
2017-05-16 21:00:12 -07:00
Paul Thrasher
0be5a28080
Fix issue 4693 - Derive vpc_id from subnet_id
...
In AWS we can derive the `VpcId` and AZ from the `SubnetId`, so now we do. In the config you can now only specify the `SubnetId`.
This fixes issue #4693 .
2017-05-15 13:46:05 -07:00
Ben Fagin
6f63881020
fixes a typo introduced in a previous change
2017-05-11 13:34:48 -07:00
luis-silva
a269bbc6fa
Fix issue 4875 - use retry logic when creating instance tags
2017-05-11 16:25:28 +01:00
Sean Chittenden
eece75a7a6
Wait for a 410 before returning success on a machine delete.
2017-05-10 09:12:24 -07:00
Justin Reagor
bd12c17bb0
Update triton client calls to pass along context
2017-05-05 11:20:21 -04:00
Matthew Hooker
80d6cd91fd
remove unneeded keypair var
2017-05-01 10:17:21 -07:00
Ben Phegan
c4b8e8e5df
Merge branch 'master' into virtualbox_sata_port_count
2017-05-01 09:23:05 +10:00
Matthew Hooker
602fd64c5d
builder/amazon: set flag to delete temporary keypair
2017-04-30 14:24:22 -07:00
Matthew Hooker
7aca9b7f71
builder/azure: replace panics with error returns
2017-04-27 11:04:57 -07:00
James Nugent
d2ae36214a
builder/triton: Reconcile #4829 and #4838 docs
...
This changes the default region to match the default from Joyent
documentation.
2017-04-26 15:47:04 -07:00
James Nugent
c1cad8726b
builder/triton: Better AccessConfig tests
...
This commit adds an actual public/private key pair for testing since
these are now validated.
2017-04-26 14:08:29 -07:00
James Nugent
d9ba951929
builder/triton: Switch to joyent/triton-go library
...
This commit substitutes the now-deprecated gosdc library for the newer
triton-go library. This is transparent from a user perspective, except
for the fact that key material can now be ommitted and requests can be
signed with an SSH agent. This allows for both encrypted keys and ECDSA
keys to be used.
In addition, a fix is made to not pass in an empty array of networks if
none are specified in configuration, thus honouring the API default of
putting instances with no explicit networks specified on the Joyent
public and internal shared networks.
2017-04-26 14:02:03 -07:00
Matthew Hooker
9f992b8f80
go files are 0644
2017-04-25 12:50:58 -07:00
Christopher Boumenot
f0e5f75b06
Update TODO.md
2017-04-24 14:19:24 -07:00
Bryon Ross
d092044834
Help ensure VMX builder properly removes mounted CDs on OS X
...
Pull request 1504 describes a workaround for a potential race condition in which the VMX builder can fail to remove mounted floppies or CDs. This workaround was enabled for all operating systems except OS X. Since this issue can also occur on OS X, also apply the workaround on it.
2017-04-19 16:27:16 -07:00
zhuzhih2017
d646e1d035
refactor the code according hashicorp rename the repository
2017-04-18 15:14:45 +08:00
Rickard von Essen
a3f70b874b
Spelling (context)
2017-04-09 20:38:19 +02:00
Rickard von Essen
5ee212c85f
Inlined ctx
2017-04-09 20:33:05 +02:00
Luke Farnell
5b7ec545c5
Added monitoring and updated godo
2017-04-08 15:52:57 -04:00
Matthew Hooker
da8c4004f0
builder/amazon: numbers are valid in ami name
2017-04-05 12:39:16 -07:00
Matthew Hooker
bc3510b473
fix spelling
...
closes #4767
2017-04-05 12:01:02 -07:00
Matthew Hooker
3f6b5165f2
add affirmative test case for #4762
2017-04-04 22:08:09 -07:00
Craig Barr
d9041bda0c
Improved the test for special character so that it doesn't get halted by less than 3 character check
2017-04-05 11:06:59 +10:00
Craig Barr
7911cfa94b
Formatting as per make fmt
2017-04-05 11:02:23 +10:00
Craig Barr
fdae6858c8
conforming to the standard for imports
2017-04-05 10:53:58 +10:00
Craig Barr
df6337e8ab
Added AMIName validation (issue 4761)
2017-04-05 10:46:44 +10:00
Matthew Hooker
81522dced0
move packer to hashicorp
2017-04-04 13:39:01 -07:00
Matthew Hooker
bce03492d9
remove references to ServiceAccountEmail
2017-04-03 11:22:00 -07:00
Rickard von Essen
77dc8b84c1
builder/googlecompute: Revert to using default service account
...
Fixes issue with cross Project builds.
Closes #4608
Regression introduced in PR #3639
2017-04-02 17:52:14 +02:00
Matthew Hooker
6f27f67346
more fixes from errcheck
2017-03-29 13:38:31 -07:00
Matthew Hooker
4fcbf75da9
s/non existent/nonexistent/
2017-03-29 12:38:33 -07:00
Matthew Hooker
cc11ec3566
check for a couple errors
2017-03-28 20:36:21 -07:00
Matthew Hooker
35578d9ed1
remove unnecessary type conversions
2017-03-28 20:36:21 -07:00
Matthew Hooker
bf64d7bdc2
automagic simplification
2017-03-28 20:36:20 -07:00
Matthew Hooker
79287d7e47
simplify some code
2017-03-28 20:36:20 -07:00
Matthew Hooker
0149f679de
Print instead of Printf with no dynamic first variable.
2017-03-28 20:36:20 -07:00
Matthew Hooker
d1b20b3d9c
remove a bunch of dead code.
...
https://github.com/dominikh/go-tools/tree/master/cmd/unused
2017-03-28 20:36:20 -07:00
Matthew Hooker
230079f73a
spell fixes
2017-03-28 20:36:19 -07:00
Matthew Hooker
e4aa2a34ca
builder/amazon-chroot: nullable copy_files
...
Allow users to specify that they don't want any
files copied into the chroot by setting an empty
copy_files list
2017-03-24 13:51:47 -07:00
Matthew Hooker
35480e21b2
fix typo
2017-03-24 11:56:49 -07:00
Matthew Hooker
0ad6b169bc
builder/virtualbox: retry removing floppy controller
2017-03-23 23:58:23 -07:00
Matthew Hooker
74c8c585f5
builder/amazon: report tag creation
2017-03-23 16:12:59 -07:00
Ben Phegan
0c777a1d63
Fix for DriverMock not implementing Driver
2017-03-23 12:11:19 +11:00
Ben Phegan
67eb600c08
Add sata_port_count so that a SATA controller can be created with more than 1 port. The default of prevents additional drives being added. Default preserved if not overridden.
2017-03-22 23:09:25 +11:00
Matthew Hooker
8b763032ce
builder/hyper-v don't wait for shutdown to return.
...
Mirrors work done in #4436
2017-03-20 15:32:42 -07:00
Matthew Hooker
68e2b150cd
builder/virtualbox: allow skipping upload of version file
2017-03-16 18:14:11 -07:00
Rickard von Essen
8c2a8f5f81
Merge pull request #4655 from lbordowitz/ostk-sshca
...
OpenStack: Add ssh agent support
2017-03-14 21:07:03 +01:00
Rickard von Essen
6cd3cb18da
builder/openstack: validate ssh key name/file
...
This is a port for OpenStack of PR #4665
2017-03-14 20:47:40 +01:00
Matthew Hooker
bd76b7bb6f
builder/amazon: validate ssh key name/file
...
When using ssh_key_name, ssh_private_key file must be given,
or ssh_agent_auth enabled.
When automatically retrieving the winrm password, if ssh_key_name is
given, ssh_private_key_file must also be given.
2017-03-13 13:14:18 -07:00
Rickard von Essen
4c5461102a
amazon: Added (more) support for SSH Agent and temporary keypair names
2017-03-13 07:29:59 +01:00
zhuzhih2017
0400ebae95
Fix the code according PR review
2017-03-12 10:22:25 +08:00
Rickard von Essen
a047916944
Merge pull request #4621 from hui-yang/disk-type
...
builder/parallels-iso: Configuration of disk type, plain or expanding
2017-03-10 19:32:41 +01:00
Larry Bordowitz
c5b8a1069a
Add ssh agent to enable SSH-CA authentication.
2017-03-10 08:45:50 -08:00
Jimmy The Dog
1e9b0f7b8f
Replace export output dir in state bag with params
...
step_export now has the OutputDir as a param instead of getting it from
the state bag, on the advice of @mwhooker in PR comment
2017-03-10 10:43:45 +00:00
Jimmy The Dog
e851efb1b6
Set export_dir to the output_dir property
2017-03-10 08:20:48 +00:00
Jimmy The Dog
9eb9abdce9
Merge branch 'master' into ovfexportpath-localoutputdir
2017-03-10 08:12:26 +00:00
Matthew Hooker
50d9546658
builder/amazon: set force_deregister to true on -force
2017-03-09 14:24:49 -08:00
Matthew Hooker
597b7ad8c5
builder/hyper-v: validate output dir in step, not in config
...
essentially same work as #2233
2017-03-08 23:52:34 -08:00
Matthew Hooker
c5ddbacb62
Merge pull request #4318 from Tadas/fix-hyperv-admin
...
Check for 'Hyper-V Administrators' security group
2017-03-08 23:35:17 -08:00
Matthew Hooker
9e8b602f28
Merge pull request #4643 from rickard-von-essen/issue-4620
...
googlecompute: Correct values for on_host_maintenance
2017-03-08 14:17:51 -08:00
Rickard von Essen
eac5b6392d
googlecompute: Correct values for on_host_maintenance
...
If preemptible is true then on_host_maintenance must be TERMINATE.
Also corrected order in docs.
Closes #4620
2017-03-08 19:44:07 +01:00
Rickard von Essen
2300b102b7
amazon: Step Region Copy crashing on device mapping
...
Closes #4635
2017-03-08 18:12:37 +01:00
huiyang
b3c6ef9f6b
Skip disk compaction for plain disks
2017-03-07 18:22:23 -08:00
huiyang
52d4514d6a
builder/parallels-iso: Configuration of disk type, plain or expanding
2017-03-03 15:32:51 -08:00
zhuzhih2017
5e44a28a42
fix the missing access key for testcase
2017-03-03 17:56:48 +08:00
zhuzhih2017
fadfb696dd
Add packer plugin which support alicloud ecs images
2017-03-03 16:56:17 +08:00
Matthew Hooker
8cc2ed7d6e
vmware/esx: try for longer to connect to vnc port
2017-02-28 22:21:19 -08:00
Matthew Hooker
9c027aa70b
Merge pull request #4601 from mitchellh/ebssurrogate-copy-ami
...
build/amazon-ebssurrogate: Add region copy, attributes, tags steps
2017-02-27 10:47:34 -08:00
James Nugent
e856339309
build/amazon-ebssurrogate: Add region copy, attributes, tags steps
...
As pointed out in the initial code review of #4351 , some of the steps
from the standard EBS builder were (intetionally) omitted. It turns out
that these actually are useful, and the original rationale for the
omission was wrong. Consequently, this commit adds in the following
steps:
- `StepPrevalidate`
- `StepTagEBSVolumes`
- `StepDeregisterAMI`
- `StepCreateEncryptedAMICopy`
- `StepAMIRegionCopy`
- `StepModifyAMIAttribute`
- `StepCreateTags`
We also fix the interpolation filter and documentation to reflect these
additions, though the majority were already documented and just not
functional.
2017-02-27 09:05:39 -06:00
James Nugent
1eec5bf058
builder/amazon-ebssurrogate: Exclude duplicate root volume
...
This commit removes the root volume from the list of launch block device
mappings passed to the image, since it is already passed in the form of
a snapshot (which is then configured to be the root device). Without
this commit, AMIs created using this builder have two root volumes
attached on launch.
2017-02-27 06:57:35 -06:00
Matthew Hooker
fd1b00a0d1
use aws helper method
2017-02-26 19:33:34 -08:00
Matthew Hooker
61976dfd86
Merge pull request #4578 from life360/enable_ena
...
Always set both SRIOV and ENA when Enhanced Networking is enabled
2017-02-26 19:31:22 -08:00
Matthew Hooker
ed92055372
Merge pull request #4532 from mitchellh/vmipgetagain
...
builder/vmware: don't cache ip address so we know if it changes
2017-02-26 18:46:46 -08:00
Matthew Hooker
1f2df5c174
Merge pull request #4536 from mitchellh/vmwareextraopts
...
builder/vmware: allow extra options for ovftool
2017-02-26 18:45:40 -08:00
Matthew Hooker
6a7c37beb6
builder/amazon-chroot: support encrypted boot volume
2017-02-26 17:48:13 -08:00
Matthew Hooker
f62d0abf4e
Merge pull request #4560 from guessi/deprecated_option_tag
...
Conditional ignore `force` flag for `docker-tag`
2017-02-26 17:43:25 -08:00
Matthew Hooker
2cb9b32acf
don't attempt to delete non-existant key when using agent auth
2017-02-26 17:38:22 -08:00
Matthew Hooker
f95514c120
fix ssh agent authentication
...
treat key name to empty string if it's not been set
by prior step.
2017-02-26 17:17:49 -08:00
Aaron Stone
1cc3cdf7b5
Always set both SRIOV and ENA when Enhanced Networking is enabled
...
Set SriovNetSupport to "simple". As of February 2017, this applies to C3, C4,
D2, I2, R3, and M4 (excluding m4.16xlarge).
Set EnaSupport to true. As of February 2017, this applies to C5, I3, P2, R4,
X1, and m4.16xlarge.
2017-02-25 07:16:35 -08:00
Jimmy The Dog
ce41055ac6
builder/vmware-iso: do not append to output dir, as ovftool does that
2017-02-24 14:49:40 +00:00
Jimmy The Dog
14810523b8
builder/vmware-iso: get artifact files from local dir
2017-02-24 14:48:38 +00:00
Jimmy The Dog
7a2b30dcc4
builder/vmware-iso: need to always set local output dir, or non-remote build exports will fail
2017-02-24 13:18:28 +00:00
Jimmy The Dog
f8df5f81db
builder/vmware-iso: set local output dir
2017-02-24 12:46:00 +00:00
Richard Owen
33a4c2e13b
Change EC2 WindowsPasswordTimeout to 20 minutes
...
10 minutes is often exceeded when using a custom source AMI
which has been sysprepped.
2017-02-24 11:08:17 +00:00
James Nugent
635aeb765b
amazon/ebssurrogate: Add New Builder
...
This commit adds a new type of builder which builds an AMI based on a
snapshot of an EBS volume which is provisioned on a "surrogate"
instance. This can be used to build operating system images from
scratch, but unlike the `chroot` builder does not require running from
an AWS EC2 instance.
2017-02-21 18:38:19 -06:00
Matthew Hooker
3409ea76ee
Merge pull request #4564 from wtsi-hgi/fix/4551-openstack-builder-reuse-ips
...
add reuse_ips option for openstack builder
2017-02-21 15:20:10 -08:00
Matthew Hooker
2381bfa8ad
Merge pull request #4518 from AlexLov/bugfix_image_family
...
[googlecompute] fix bug of creating image from custom image_family
2017-02-21 10:58:23 -08:00
Joshua Randall
e9cfaa2730
add reuse_ips option for openstack builder
...
add reuse_ips option and use it to control whether openstack builder
will attempt to reuse existing unassigned floating ips rather than
allocating a new one.
fix #4551
2017-02-16 12:44:03 +00:00
guessi
66615e3f56
reuse the func DockerDriver.Version()
2017-02-16 08:26:44 +08:00
Marc Carmier
5c11a2e594
Add test for empty remote_type value
2017-02-15 22:11:27 +01:00
Marc Carmier
86c0c859c5
Validate the remote_type value for builder/vmware-iso
2017-02-15 22:04:28 +01:00
guessi
5eae809b0c
improve description
2017-02-16 01:14:21 +08:00
guessi
c5e01da3c6
Conditional ignore `force` flag for `docker-tag`
...
`docker tag -f` will now become an error, since it was removed after
upgrading docker daemon to 1.12.0 (or later)
this PR is to bypass `force` flag if docker >= 1.12.0 was detected
reference:
- https://docs.docker.com/engine/deprecated/#/f-flag-on-docker-tag
Signed-off-by: guessi <guessi@gmail.com>
2017-02-16 00:50:46 +08:00
Matthew Hooker
4f92b9fb61
Merge branch 'pr/4544'
2017-02-10 12:11:43 -08:00
Dimitri Rudnev
2009fcd9df
OnHostMaintenance, googlecompute updating documenation , additional option for validation and setting defaults
2017-02-10 11:57:15 -08:00
Dimitri Rudnev
bab590c177
Adding OnHostMaintenance option for googlecompue builder
2017-02-10 10:58:57 -08:00
Matthew Hooker
0ed84f843e
builder/vmware: allow extra options for ovftool
2017-02-10 00:22:20 -08:00
Matthew Hooker
29dd20da68
builder/vmware: don't cache ip address so we know if it changes
2017-02-09 23:16:40 -08:00
Matthew Hooker
c41e32dbc1
print stderr on docker import failure
2017-02-09 20:41:29 -08:00
Alex Lov
cfa8f8c215
fix bug of creating image from custom image_family
2017-02-08 22:50:19 +03:00
Matthew Hooker
84fc62f6b2
Merge pull request #4496 from mitchellh/vmrmguest2
...
builder/virtualbox: remove guest additions
2017-02-03 23:14:35 -08:00
Matthew Hooker
1fa643e88d
Merge pull request #4498 from mitchellh/f-simple-passwords
...
Reduce character set for passwords
2017-02-02 15:04:02 -08:00
Matthew Hooker
70af3d8148
Merge pull request #4497 from mitchellh/f-clickable-links
...
Make rdp and vnc links clickable by adding the protocol
2017-02-02 12:41:59 -08:00
Chris Bednarski
dcb4b50dbf
Reduce character set for passwords
...
At the beginning of each VMware build packer generates a random VNC password and prints it to the terminal / log. When copying a password from a terminal emulator with double-click, the text selection uses word boundaries to attempt to automatically detect where the password string is located. When the password contains weird characers like %^&# this parsing fails and you only get half the password. The reduction in characters does not significantly reduce the entropy of the password but improves user-friendliness when you actually want to use it.
Also deletedsome unused files
2017-02-02 04:03:46 -08:00
Chris Bednarski
facf27ceeb
Make rdp and vnc links clickable by adding the protocol
2017-02-02 01:55:28 -08:00
Matthew Hooker
e9e3215c38
builder/virtualbox: remove guest additions
2017-02-02 00:47:56 -08:00
Matthew Hooker
228bc9cfd3
use driver delete method
2017-02-01 23:57:45 -08:00
Jelle Hissink
6973e752d2
Vmware vsphere vnc port timeout increased
2017-01-29 14:41:14 +01:00
Thomas Conte
d294d2c576
gofmt
2017-01-28 10:29:35 +01:00
Thomas Conte
1ec6578c02
Add two new variables to Azure builder config
2017-01-27 12:26:28 +01:00
Matthew Hooker
22d1322bd9
always check for an error first when walking a path
2017-01-26 16:32:21 -08:00
Rickard von Essen
c9259d116f
builder/amazon-ebsvolume: Fix interpolation of block_device
2017-01-26 21:27:36 +01:00
Matthew Hooker
76f897077d
Merge pull request #4399 from rickard-von-essen/aws-interpolate
...
WIP: builder/amazon: Interpolate {{ .BuildRegion }} and {{ .SourceAMI }}
2017-01-26 11:41:16 -08:00
Matthew Hooker
485fa58b43
Merge pull request #4443 from mitchellh/preservedockermode
...
communicator/docker: preserve file mode.
2017-01-26 11:22:00 -08:00
Rickard von Essen
de7388fa0a
builder/amazon-ebsvolume: Fixed interpolation of tags
2017-01-25 19:40:43 +01:00
Matthew Hooker
2a7c84e9ff
Merge pull request #4343 from vtolstov/qemu_convert
...
builder/qemu: allow to convert from any supported format
2017-01-24 01:12:31 -08:00
Matthew Hooker
56c5628205
builder/vmware-iso: set ovftool output path
2017-01-23 17:47:35 -08:00
Matthew Hooker
a51f492558
communicator/docker: preserve file mode.
2017-01-23 13:47:22 -08:00
Rickard von Essen
6e891cf682
Fixed botched merge and review comments
2017-01-22 21:57:23 +01:00
Matthew Hooker
9e2d69fb97
builder/docker: create export dir if needed
2017-01-21 23:51:08 -08:00
Rickard von Essen
ba9cae5078
builder/amazon: Add SourceAMI and BuildRegion template
...
Added {{ .SourceAMI }} and {{ .BuildRegion }} template values availible
in `ami_description`, `run_tags`, `run_volume_tags`, `tags`, and
`snapshot_tags`.
2017-01-21 20:39:58 +01:00
Matthew Hooker
f1175c1921
parallels/vmware: don't wait for shutdown command.
...
Resolves #4134
replaces/ closes #4379
Leaving Hyper-V builder alone for now until we can get a case that reproduces.
2017-01-20 01:44:18 -08:00
Matthew Hooker
fc30f6cc0a
log tag creation.
...
closes #4427
2017-01-19 12:00:41 -08:00
Matthew Hooker
56b5e97bf4
verify given security group
2017-01-18 15:25:31 -08:00
Matthew Hooker
b265d2614f
builder/amazon: fix when using security_group_id
...
If `security_group_id` was specified with a group that didn't exist, packer
would go into an infinite loop waiting for it. We shouldn't make assumptions
about the status of explicitely set security groups, so let's just error out
right away if we can't find it.
2017-01-18 15:11:52 -08:00
Eike Verdenhalven
7ad77b9e93
integrate new winrm transport interface
2017-01-18 22:11:48 +01:00
Matthew Hooker
0a46d883df
Merge pull request #4409 from mitchellh/httpenvvar
...
set PACKER_HTTP_ADDR env var when available.
2017-01-18 12:35:14 -08:00
Matthew Hooker
f5bf588393
tag all volumes
2017-01-18 11:34:46 -08:00
Matthew Hooker
800351b7ca
fix panic and don't print each tag we add.
2017-01-18 11:34:36 -08:00
Roman Zhuzha
d9186dc8cf
add proper error handling for tagging source instance
2017-01-18 14:02:10 +01:00
Roman Zhuzha
ae016a1f25
simplify code flow: skip the step if no run_volume_tags provided
2017-01-18 13:03:05 +01:00
Roman Zhuzha
a65af51a4b
apply source instance default "Name" tag only if it's not provided in run_tags
2017-01-18 12:55:18 +01:00
Roman Zhuzha
36d8a1df1d
use common.ConvertToEC2Tags to apply tags to source EBS volumes, change Say message
2017-01-18 12:52:59 +01:00
Roman Zhuzha
aa70c82ec8
use ConvertToEC2Tags to apply tags to source instance, add Say message
2017-01-18 12:50:20 +01:00
Matthew Hooker
26dd3af9ec
Merge pull request #4411 from rickard-von-essen/issue-4406
...
builder/vmware: Try to use `ip address` to find host IP
2017-01-17 22:02:59 -08:00
Matthew Hooker
d4b043451f
Merge pull request #4357 from dave2/gh-4215
...
Openstack builder should use existing floating IPs before allocating them
2017-01-17 11:14:59 -08:00
Matthew Hooker
94a2aae749
Merge pull request #4361 from Tom-Byrne/openstack-instance-metadata
...
support OpenStack instance (not image) metadata
2017-01-17 11:05:20 -08:00
Rickard von Essen
81ad800fb6
builder/vmware: Try to use `ip address` to find host IP
...
Closes #4406
2017-01-17 10:33:48 +01:00
Matthew Hooker
d2e59e4e92
set PACKER_HTTP_ADDR env var when available.
...
If using a builder that has an http server set up for file transfer,
expose the connection info to the shell provisioner through the environment
variable PACKER_HTTP_ADDR.
Closes #2869
2017-01-16 23:19:52 -08:00
Chris Bednarski
6ad702ad74
Update comments to reflect current implementation
2017-01-14 20:11:51 -08:00
Chris Bednarski
ee2d636840
Improve delay between key events
...
- Can now tune delay using PACKER_KEY_INTERVAL
- Added implementation to all of VMware and QEMU
- Removed double delay for QEMU
- Default key delay of 100ms (as before)
- Added docs to QEMU and VMware pages
2017-01-14 17:56:04 -08:00
Chris Bednarski
d0c64f90d5
Read key interval from ENV; default to 100ms
2017-01-14 16:52:37 -08:00
Chris Bednarski
da083506f1
Reduce key delay to 10ms to boot times are a lot faster
2017-01-14 16:52:24 -08:00
Matthew Hooker
c1f5545986
compress pr #4395
2017-01-13 11:42:20 -08:00
Richard Moore
9435fa62e3
Output error causing ebs volume deletion failure
...
When an ebs volume fails to delete, Packer reports that there
was an error deleting the volume and the volume id. But it doesn't
give you the details of what that error is. This commit adds the
error reported back to the standard output.
2017-01-13 15:33:47 +00:00
Matthew Hooker
b9d08e9d56
Merge pull request #4385 from rickard-von-essen/issue-4383
...
docker: Fix crash when performing log in to ECR with an invalid URL.
2017-01-11 11:37:37 -08:00
Rickard von Essen
112f5abdae
docker: Fix crash when performing log in to ECR with an invalid URL.
...
Closes #4383
2017-01-11 20:23:24 +01:00
Matthew Hooker
98b0f018fa
Merge pull request #4378 from DanHam/skip-export-vmware
...
Add option to skip export of installed VM for VMware ISO builder
2017-01-10 15:24:58 -08:00
Matthew Hooker
a3da92dc97
Merge pull request #4339 from DanHam/gh-4131
...
Add option to skip export of installed VM for vbox ISO & OVF builders
2017-01-10 15:08:15 -08:00
DanHam
c7e8d671a9
Add option to skip export of installed VM for VMware iso builder
2017-01-10 11:44:11 +00:00
Rickard von Essen
26fe9cf339
builder/amazon: Fix crash in amazon-instance
...
Closes #4360
2017-01-06 15:17:02 +01:00
Matthew Hooker
377f451a9e
it's InvalidGroup
2017-01-05 16:56:49 -08:00
Matthew Hooker
e54605c120
Properly wait for security group to exist.
...
Adds check for `InvalidGroupID.NotFound` in addition to
`InvalidSecurityGroupID.NotFound`.
Uses aws's `waiter` for clarity.
2017-01-05 15:20:28 -08:00
Tom-Byrne
d7545c4ba0
support OpenStack instance metadata
2017-01-05 14:42:32 +00:00
Zanetti, David
08ef89f032
Openstack builder should use existing floating IPs before allocating them
...
Rather than always creating a new floating IP, search the provided pool
for an unallocated address and use this instead. Only allocate a temporary
address if there is no spare address in the pool.
Closes #4215
2017-01-05 08:59:49 +13:00
Matthew Hooker
aef6e0e93f
Merge pull request #4304 from dave2/gh-4277
...
Querying EC2 security groups should report unexpected errors
2017-01-04 10:53:28 -08:00
Rickard von Essen
85cf00069f
Merge pull request #4294 from legal90/iso-target-extension
...
Add "iso_target_extension" option for all local *-iso builders
2017-01-04 13:48:28 +01:00
James Nugent
01c09aa7f7
Merge pull request #4325 from siepkes/f-triton-builder-2
...
Add Joyent Triton Builder
2017-01-01 15:40:11 -06:00
Rickard von Essen
ae2e59634c
Merge pull request #4341 from rahart/f-chroot-snapshots-crash
...
amazon-chroot builder snapshot interface panic
2017-01-01 22:13:11 +01:00
DanHam
ac769be49a
Pause between each boot command element rather than each char with -debug
...
Fixes #4332
2016-12-31 11:57:11 +00:00
Vasiliy Tolstov
20349f750d
builder/qemu: allow to convert from any supported format
...
In case of disk_image: true user can have raw image, but in packer
template specify qcow2 image format.
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2016-12-30 17:19:14 +03:00
Jasper Siepkes
690302a6a3
Minor cleanup and style fix.
2016-12-29 18:58:56 +01:00
Travis Harrington
e31d75eca8
Quick fix for issue #4340
2016-12-29 09:16:52 -07:00
DanHam
0ac071b6e7
Add option to skip export of installed VM for Virtualbox ISO & OVF builders
...
Closes #4131
2016-12-29 13:19:59 +00:00
Jasper Siepkes
0c9b576c05
* Unentagled SSH communication with VM's from the Cloud API SSH private
...
key.
* Improved documentation.
2016-12-29 13:24:56 +01:00
Jasper Siepkes
24786aeece
Processed code review feedback.
...
* Removed unneeded if statements.
* Made source machine name optional.
2016-12-28 16:03:11 +01:00
Jasper Siepkes
7606dd541b
* Contains the SSH fix by @watters of #3840 .
...
* Fixed minor lint error.
* Added documentation for this builder in `triton.html.md`.
* Added (and updated) the needed Joyent Triton Cloud API Go libraries
to `vendor.json`.
2016-12-27 17:05:27 +01:00
James Nugent
e15be036d7
builder: add Triton builder
...
This is a builder for Joyent's Triton system. It was originally at
jen20/packer-builder-triton, and subsequently at
joyent/packer-builder-triton on GitHub. The following commit vendors the
dependencies.
2016-12-24 10:25:31 +01:00
DanHam
13bb4d153a
qemu builder now needs to explicitly set WinRMPort for StepConnect
...
Same as vbox builders, aligns qemu with changes to
helper/communicator/step_connect.go introduced by PR #2576
2016-12-23 23:15:51 +00:00
DanHam
686ec1866e
vbox builders now need to explicitly set WinRMPort for StepConnect
...
Aligns vbox builders with changes to helper/communicator/step_connect.go
introduced by PR #2576
Fixes #4310
2016-12-23 15:55:10 +00:00
Tadas Medisauskas
4939ea1a3b
Add support for Hyper-V admins security group
2016-12-22 14:59:25 +00:00
Matthew Hooker
2e358ae4a1
Revert "builder/virtualbox: group keyboard codes"
2016-12-21 15:12:17 -08:00
Rickard von Essen
4b1e014be8
builder/amazon: Crashes when multiple EBS vols are used
...
If you use a new EBS vol (which hasn't any snapshot) Packer crashes when
creating the AMI.
Closes #4303
2016-12-21 15:37:08 +01:00
Matthew Hooker
308a01795c
Merge pull request #4305 from mitchellh/replace4247
...
builder/virtualbox: group keyboard codes
2016-12-20 18:15:38 -08:00
Matthew Hooker
ee86dc87fd
fix broken test
2016-12-20 18:10:58 -08:00
Matthew Hooker
aa177de54b
add test for #4247
2016-12-20 17:51:47 -08:00
Zanetti, David
ae5730c5a5
Querying EC2 security groups should report unexpected errors
...
As noted in #4277 , we don't report any errors from the loop waiting for
a security group to exist. Instead, we should accept 'errors' which result
from the group not yet existing, and report errors which are actual issues
the user needs to resolve (eg, IAM permissions are incorrect).
Closes #4277
2016-12-21 11:45:12 +13:00
Matthew Hooker
f1dd0811d8
builders/openstack: fix for finding resource by ID.
...
Pass server serviceClient to create params so it can look up resources by ID.
Resolves #4299
2016-12-19 13:47:09 -08:00
Matthew Hooker
9801e67fdc
Merge pull request #4293 from mitchellh/usedefaultdisplay
...
builder/qemu: add use_default_display option for osx compatibility
2016-12-19 11:41:36 -08:00
Matthew Hooker
e4f6eaae9b
Merge pull request #4231 from artburkart/force-delete-snapshot-patch
...
Fixes acceptance test for PR #4223
2016-12-17 11:43:26 -08:00
Mikhail Zholobov
57d07f227a
Add "iso_target_extension" option for all local *-iso builders
...
This option allows to set the extension of the ISO file after download.
Defaults to "iso". It makes sense for building Mac OS X guests, where the
bootable image is actually a DMG, not an ISO.
In particular, it is important for "parallels-iso" builder to set the right extension.
2016-12-17 12:50:30 +02:00
Matthew Hooker
0339fcc442
builder/qemu: add use_default_display option
...
If set, won't set `-display dsl` as a default argument. Useful for osx
compatibility.
2016-12-16 17:44:54 -08:00
Mikhail Zholobov
aa623e22a3
golint: Add comments for exported methods
2016-12-17 00:37:04 +02:00
Mikhail Zholobov
73d87b07de
golint: Fix lint offences
2016-12-17 00:37:03 +02:00
Mikhail Zholobov
00a90e622b
Remove unused constant "KeyLeftShift"
2016-12-17 00:37:03 +02:00
Mikhail Zholobov
1ca841b499
Fix shadowed declarations
...
Performed by "go vet" tool
2016-12-17 00:37:03 +02:00
Mikhail Zholobov
dde445bd0d
Fix style: Organize imports in groups
...
Performed by "goimports" tool
Style conventions: https://github.com/golang/go/wiki/CodeReviewComments#imports
2016-12-17 00:37:03 +02:00
Mikhail Zholobov
319b85cb7a
Fix style: Use a consistent case for initialisms
...
https://github.com/golang/go/wiki/CodeReviewComments#initialisms
2016-12-17 00:36:56 +02:00
Matthew Hooker
c61c7765ec
Merge pull request #4288 from troytoman/gce-network-uri
...
enable support for Google Compute XPN
2016-12-15 12:03:46 -08:00
Matthew Hooker
88841cb0e4
Merge pull request #4283 from mitchellh/openstackhacks
...
builder/openstack: Add image visibility & members
2016-12-14 16:13:21 -08:00
Matthew Hooker
754ed931e9
be nice if user gets the image visibility case wrong
2016-12-14 16:08:36 -08:00
Rickard von Essen
d3c2239b9e
builder/amazon: Change shutdown_behaviour to shutdown_behavior
2016-12-14 21:59:16 +01:00
Rickard von Essen
c24b4423b2
builder/amazon: Added new region London - eu-west-2
2016-12-14 10:55:19 +01:00
Matthew Hooker
1408c3fde8
bugfix
2016-12-14 01:01:57 -08:00
Matthew Hooker
00e4585ce5
first pass at adding new members
2016-12-13 16:32:30 -08:00
Matthew Hooker
cbe7e9113a
return early if no set visibility
2016-12-13 16:32:15 -08:00
Matthew Hooker
99667df17e
update image visibility own step
2016-12-13 16:28:54 -08:00
Matthew Hooker
7bd211cf61
first attempt at modifying visibility
2016-12-13 15:21:20 -08:00
Matthew Hooker
6a6e735d16
use 404 error type
2016-12-13 14:20:39 -08:00
Zanetti, David
01e3e7f7a3
Second part of resync of gophercloud
2016-12-13 14:06:01 -08:00
Alexander Krasnukhin
ac98aad1df
Fix log statement
2016-12-13 12:53:03 +01:00
Matthew Hooker
45d4cf8b36
move powershell module to common
2016-12-12 18:34:15 -08:00
Matthew Hooker
5e324d6bb4
apply #4041 to hyperV builder
2016-12-12 18:34:15 -08:00
Taliesin Sisson
e50fe9fd54
Porting over paulmey changes to license and copyright headers. Good guy Microsoft have changed the licensing to MPL2 and removed the copyright headers so that we can include it in the official Packer release.
...
1ce6ba91f7
?diff=unified#diff-5d60887f0940c9f8d6724e59843ac1fb
2016-12-12 22:45:24 +00:00
Taliesin Sisson
e357c56186
Builders don't need to set this up anymore
2016-12-12 22:45:23 +00:00
Taliesin Sisson
74255c553b
Be smarter about loading guest additions iso. Windows 10 and Windows Server 2016 no longer come with iso. So default to not loading guest additions when the iso is missing
2016-12-12 22:45:22 +00:00
Taliesin Sisson
335615408a
Run go fmt on files
2016-12-12 22:45:19 +00:00
Taliesin Sisson
44f73fa75f
Changed ram_size_mb to ram_size
2016-12-12 22:45:18 +00:00
Taliesin Sisson
fb192ce6d6
Remove unused import
2016-12-12 22:45:17 +00:00
Taliesin Sisson
04a6880361
Remove unused import
2016-12-12 22:45:17 +00:00
Taliesin Sisson
3f0835aab2
Remove headless option as it is not used.
2016-12-12 22:45:16 +00:00
Taliesin Sisson
3c1df5a791
Remove inconsistent "_mb" from ram size
2016-12-12 22:45:14 +00:00
Taliesin Sisson
0515487062
Configuration settings are no longer used
2016-12-12 22:45:13 +00:00
Taliesin Sisson
20643e35a8
Do not specify a default username or password
2016-12-12 22:45:13 +00:00
Taliesin Sisson
d7117560cf
We are using powershell and Msvm to send keys to virtual keyboard so update comment
2016-12-12 22:45:12 +00:00
Taliesin Sisson
a27d75ff89
Fix comment left over from initial import
2016-12-12 22:45:11 +00:00
Taliesin Sisson
501845cb4f
SSHKeyPath and SSHWaitTimeout have been deprecated in favor of communicator configuration
2016-12-12 22:45:10 +00:00
Taliesin Sisson
c2d1f6b617
Added the ability to independently configure switch vlan. This will people to leave the switch in trunk mode and set a vlan for the vm.
2016-12-12 22:45:06 +00:00
James Johnson
48b6cc0650
Enable VlanID
2016-12-12 22:45:05 +00:00
Taliesin Sisson
9fbd1e472a
Add support for mac spoofing and dynamic memory.
...
To enable nested virtualization, mac spoofing, no dynamic memory and at least 4gb of ram should be set for the vm. Set warning if this has not been done.
Detected Virtualization Extensions are supported by the machine your are running on, as it only works for Windows 10 and Windows Server 2016 onwards.
2016-12-12 22:45:04 +00:00
Patrick Lang
6d391fc34a
Adding support for nested Hyper-V
2016-12-12 22:45:02 +00:00
Patrick Lang
f94c2cd2f7
Adding nested virtualization support
2016-12-12 22:45:01 +00:00
Patrick Lang
6342e1525d
s/EnabeSecureBoot/EnableSecureBoot/g
2016-12-12 22:45:01 +00:00
Taliesin Sisson
9c53df1e0e
Add special key modifiers to log output when used.
...
Update documentation to include new key modifiers.
2016-12-12 22:44:59 +00:00
Taliesin Sisson
5f7290c6f8
Add type scan support for ctrl, shift, alt.
...
<leftAlt>
<leftCtrl>
<leftShift>
<rightAlt>
<rightCtrl>
<rightShift>
Add type support for combinations of ctr, alt, shift with (only use lower case characters with this):
<leftAltOn>
<leftCtrlOn>
<leftShiftOn>
<leftAltOff>
<leftCtrlOff>
<leftShiftOff>
<rightAltOn>
<rightCtrlOn>
<rightShiftOn>
<rightAltOff>
<rightCtrlOff>
<rightShiftOff>
2016-12-12 22:44:58 +00:00
Taliesin Sisson
c1538c59c9
Builds in AppVeyor are failing as they do not have enough free memory. Drop the thresh hold a little more.
2016-12-12 22:44:57 +00:00
Taliesin Sisson
52c6cd5fc1
Test should run and pass even when run on an environment that does not have Powershel.
2016-12-12 22:44:53 +00:00
Taliesin Sisson
4d22bd1d4a
Generate switch name using uuid v1
2016-12-12 22:44:49 +00:00
Taliesin Sisson
7c754bf791
Try to match style of other builders
2016-12-12 22:44:48 +00:00
Taliesin Sisson
fb098fcbf0
http server has moved to common step
2016-12-12 22:44:47 +00:00
Taliesin Sisson
d878f4dd8e
A workaround for bug in Windows 10 and Windows 2016 where you have to specify a path when creating a dvd drive
2016-12-12 22:44:44 +00:00
Taliesin Sisson
bda2468404
removed unused reference
2016-12-12 22:44:40 +00:00
Taliesin Sisson
d1961b7c8e
Echo output when its used
2016-12-12 22:44:40 +00:00
Taliesin Sisson
18241e5215
Setting boot drive is generation specific
2016-12-12 22:44:37 +00:00
Taliesin Sisson
8477a0b748
Accidentally included bracket
2016-12-12 22:44:35 +00:00
Taliesin Sisson
e0c10dec12
If exit code = 1 and the length of the stderr is 0, then we can assume that the exit code was not set, so assume success
2016-12-12 22:44:34 +00:00
Taliesin Sisson
fe8d99fd8a
If we are not getting the exit code assigned then default to it being successful
...
Useful to know what the exit code is if there is an error
2016-12-12 22:44:31 +00:00
Taliesin Sisson
3cb621f890
Get rid of mount and unmount that does not specify controller location exactly
...
Handle cleanup if unmount step has not already done so
2016-12-12 22:44:30 +00:00
Taliesin Sisson
31ac1da28d
Setting boot drive message
2016-12-12 22:44:30 +00:00
Taliesin Sisson
4b6ce3da60
Build agents might not have guest additions
2016-12-12 22:44:29 +00:00
Taliesin Sisson
aaf9007249
Include cache in the state bag.
2016-12-12 22:44:28 +00:00
Taliesin Sisson
50a8d1b6b4
Forgot to check in these files.
2016-12-12 22:44:27 +00:00
Taliesin Sisson
010d171bec
GuestAdditionsMode and GuestAdditionsPath can be set in config. If GuestAdditionsMode == "attach" it will mount the HyperV Integration Services ISO. If GuestAdditionsPath is set, then it will be used as an alternative to where the HyperV Integration Service ISO is.
...
Included the build step to download ISO, so iso_urls works properly now.
Online activation should be done via provisioner
Installation of integration services should be done via provisioner
Cleaned up the way dvd drives are mounted and unmounted (still need to implement feature to find unused drives before adding a new one)
Cleaned up the way floppies are mounted and unmounted
2016-12-12 22:44:27 +00:00
Taliesin Sisson
422efeeaf6
Make use of driver instead of directly referencing hyper
...
Move inline powershell to hyperv
2016-12-12 22:44:26 +00:00
Taliesin Sisson
730c6217ad
Fix disk size test
...
Default minimum and maximum sizes were geared towards spinning up windows server instances. Linux instances are far more efficient and make do with lower requirements. Set the minimum sizes to match this.
2016-12-12 22:44:21 +00:00
Taliesin Sisson
9f94834826
Use correct formatting for printf
2016-12-12 22:44:19 +00:00
Taliesin Sisson
54733323a8
Should only default to first controller if its not 1 of the 2 controllers available
2016-12-12 22:44:18 +00:00
Taliesin Sisson
c24c882b84
Use simple naming convention for now
2016-12-12 22:44:16 +00:00
Taliesin Sisson
5f2c12324c
No need to remove floppy controller for 2nd generation vms
...
Don't want to be prompted for confirmation from powershell commandlets
2016-12-12 22:44:14 +00:00
Taliesin Sisson
837f9addd0
Check the floppy files and not the dvd files attached
2016-12-12 22:44:13 +00:00
Taliesin Sisson
4e8074d7e5
Need to expose generation as a public property
2016-12-12 22:44:13 +00:00
Taliesin Sisson
e18594f404
Hyperv generation 2 machines use scsi for dvd drives. Allow gen 1 machines to have at least 1 iso image attached
2016-12-12 22:44:12 +00:00
Taliesin Sisson
ef507c7bd7
Pass in any iso images to add as dvd drives during boot
2016-12-12 22:44:11 +00:00
Taliesin Sisson
3051ea6633
Quote powershell so that it does not try to interpret command to be run
...
Get VName out of state. This allows template replacement to be run on vmname
2016-12-12 22:44:10 +00:00
Taliesin Sisson
f3cc413bbb
Set the dvd to the first boot device
2016-12-12 22:44:08 +00:00
Taliesin Sisson
02db768018
With generation 2 machine by default a dvd drive is not created. So create a dvd drive for os if it does not exist.
...
Allow secure boot mode to be configured from config.
2016-12-12 22:44:07 +00:00
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