Paul Meyer
cb6db06d11
builder/azure: Delete readme
...
Duplicated in packer.io docs
2016-06-21 09:42:01 -07:00
Paul Meyer
ee441366eb
builder/azure: Remove extra polling code for deployments
2016-06-20 14:22:01 -07:00
Christopher Boumenot
a010f80382
Check for nil when querying a certificate.
2016-06-16 09:45:07 -07:00
Chris Bednarski
ab9621ab7d
Added aws shutdown_behavior to the changelog
2016-06-14 14:34:01 -07:00
Patrick Robinson
f361e1d894
Precompile regex
2016-06-14 14:29:10 -07:00
Patrick Robinson
b1d6d28a90
Add unit tests for shutdown behaviour
2016-06-14 14:29:10 -07:00
Patrick Robinson
a9f914ea97
Add shutdown_behaviour option
...
This means an instance will terminate upon shutdown.
2016-06-14 14:29:10 -07:00
Paul Meyer
a788ea4d43
azure/builder: fix token validity test
2016-06-10 09:58:38 -07:00
Christopher Boumenot
6dda6f77d6
Add resource_group_name to test cases.
2016-06-09 10:17:49 -07:00
Christopher Boumenot
353ce2f2a6
Merge pull request #3575 from mitchellh/pr-custom-image-url
...
Implement support for custom images.
2016-06-09 09:47:18 -07:00
Paul Meyer
0c79293dde
azure-arm: Validate that resource_group_name is being set
2016-06-09 01:00:23 -07:00
owjjh
658fadbc53
changing if conditionals to be ! instead of == false
2016-06-07 09:21:43 -04:00
owjjh
d489ce9904
make fmt run
2016-06-06 14:37:09 -04:00
owjjh
de5b69a8df
Adding ability to skip region validation when using AWS
2016-06-06 14:17:12 -04:00
Christopher Boumenot
5950d3d92b
Implement support for custom images.
2016-05-27 21:18:20 -07:00
Chris Bednarski
d6b9978d0e
Merge pull request #3565 from imduffy15/master
...
Allow configurable VNC bind IP for VMware builders
2016-05-25 11:27:38 -07:00
Chris Bednarski
e13b7fbfcd
Merge pull request #3566 from imduffy15/virtualbox
...
Allow configurable VRDP bind IP for VirtualBox builders
2016-05-25 11:27:29 -07:00
Ian Duffy
fa273f3bea
Allow configurable VNC bind IP for QEMU
...
This commit allows for a user configurable VNC bind IP to be used for
QEMU.
By default this will be 127.0.0.1, alternatively, a user can use
0.0.0.0 which will bind to all interfaces.
This pull request should satisfy concerns of #3570 and #3559 . It is
also in-line with the functionality provided by #3566 and #3565
Signed-off-by: Ian Duffy <ian@ianduffy.ie>
2016-05-25 10:10:12 +01:00
Chris Bednarski
42a9d9d5a1
Merge pull request #3352 from chalfant/disable-stop-instance
...
Disable stop instance
2016-05-24 15:40:54 -07:00
Ian Duffy
9ec319e296
Allow configurable VNC bind IP for VirtualBox builders
...
Signed-off-by: Ian Duffy <ian@ianduffy.ie>
2016-05-23 14:24:16 +01:00
Ian Duffy
0327f6c935
Allow configurable VNC bind IP for VMware builders
...
Signed-off-by: Ian Duffy <ian@ianduffy.ie>
2016-05-23 14:07:03 +01:00
Brian Candler
873760e69e
Clarify how to run with logs if qemu fails to start ( #3561 )
2016-05-20 14:25:52 -07:00
Chris Bednarski
24cf28d4b6
Merge branch 'yoctocloud-accelerator'
2016-05-19 22:54:19 -07:00
Chris Bednarski
bff939b373
Added comment on why we need to open /dev/kvm before using it
2016-05-19 22:53:53 -07:00
Chris Bednarski
45e6a238ff
Merge pull request #3050 from andqui/master
...
vmware-iso-builder: Fix for non consequential if statement (failing ESXi iso builds).
2016-05-19 17:43:49 -07:00
Christopher Boumenot
c1e7caf53c
Validate capture variables to obey Azure's rules. ( #3537 )
2016-05-18 17:25:57 -07:00
Gonzalo Peci
9c9f8cd451
Add winrm functionality to null provisioner ( #2525 )
...
* Add new functions to communicator helper to return the user, password, host, based on the communicator used.
This implementation can help then generalize the provisioeners later on.
* Update null builder checks to utilize the new functions and check for ANY hostname or user or password
* Update builder to user any hostname
2016-05-18 17:22:53 -07:00
Vasiliy Tolstov
0f638f9111
builder/qemu: add simple kvm/tcg autodetection
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2016-05-18 15:38:38 +03:00
Sean Chittenden
ef42021f8f
Fix unit tests, broken in #3549 . ( #3548 )
2016-05-17 15:42:15 -07:00
Chris Bednarski
5a5d59c2bd
Merge pull request #3547 from sean-/f-debug-boot-commands
...
Debug boot commands for QEMU and Parallels
2016-05-17 14:32:09 -07:00
Christopher Boumenot
83e6044595
Documentation for the Azure builder. ( #3518 )
2016-05-17 14:15:24 -07:00
Sean Chittenden
98bae9c98e
Pause between boot_commands when debugging a QEMU build
...
When debugging a build (or maintaining an existing packer template), teach `packer build -debug` how to step through individual `boot_command`s in order to triage the packer template.
2016-05-17 17:14:50 -04:00
Sean Chittenden
d0fd698fb5
Pause between boot_commands when debugging a Parallels build
...
When debugging a build (or maintaining an existing packer file), teach `packer build -debug` how to step through individual `boot_command`s in order to triage the packer template.
2016-05-17 17:10:10 -04:00
Christopher Boumenot
5484b9c7d0
Do not use a communicator for unit tests. ( #3539 )
2016-05-17 13:53:01 -07:00
Sean Chittenden
3ca4782b56
Pause between boot_commands when debugging a Virtualbox build
...
When debugging a build (or maintaining an existing packer file), teach `packer build -debug` how to step through individual `boot_command`s in order to triage the packer file.
2016-05-17 04:03:45 -04:00
Sean Chittenden
9b3f8a4be9
Pause between boot_commands when debugging a VMware build
...
When debugging a build (or maintaining an existing packer file), teach `packer build -debug` how to step through individual `boot_command`s in order to triage the packer file.
```
==> vmware-iso: Typing the boot command over VNC...
==> vmware-iso: Pausing after run of step 'boot_command[0]: <enter><wait>'. Press enter to continue.
==> vmware-iso: Pausing after run of step 'boot_command[1]: <enter><wait>'. Press enter to continue.
==> vmware-iso: Pausing after run of step 'boot_command[2]: freebsd-vagrant<enter><wait>'. Press enter to continue.
==> vmware-iso: Pausing after run of step 'boot_command[3]: <down><spacebar>'. Press enter to continue. ^C
```
2016-05-17 03:50:00 -04:00
Chris Bednarski
2f0e1218dc
Move regexp to package scope so it will be validated by the compiler instead of at runtime
2016-05-13 15:37:25 -07:00
Peter Schultz
a99a417db9
builder/googlecompute: validate image_family
2016-05-13 15:24:02 -07:00
Peter Schultz
8546aafec5
builder/googlecompute: support image family
2016-05-13 15:24:02 -07:00
Christopher Boumenot
d40e115ad7
Only cleanup if necessary. ( #3517 )
...
Do not delete the resource group as part of cleanup unless it exists.
2016-05-09 14:19:55 -07:00
Christopher Boumenot
a91156b134
Dump Azure configuration values.
...
Dump the top level variables in the config object. Any values with
'secret' or 'password' in the name are masked.
2016-05-06 23:14:18 -07:00
Chris Bednarski
5ed3c8d563
Updated license information to reference builder/azure
2016-05-06 20:32:18 -07:00
Christopher Boumenot
c7018a00c8
Add support for Windows to Azure.
...
This is last merge that will happen from the github.com/Azure/packer-Azure
repository. All development is being over to this repository.
The biggest change in this merge is support for Windows. There are a few other
fixes as well.
* If the user cancels the build, clean up any resources.
* Output a reasonable build artifact.
* Log requests and responses with Azure.
* Support for US Government and the China clouds.
* Support interrupting long running tasks.
* Allow the user to set the image version.
* Device login support.
2016-05-05 13:40:17 -07:00
Christopher Boumenot
2d1347c1ec
Insert Packer's version into the User Agent. ( #3465 )
2016-05-05 13:10:55 -07:00
Hao
5139b853fa
privilege enabled docker container ( #3475 )
...
Issue #2724
2016-04-29 19:12:20 -07:00
Christopher Boumenot
bbf286dcbe
Fix go fmt issues. ( #3463 )
2016-04-22 10:44:54 -07:00
Chris Bednarski
d7cfd5d01c
Remove explicit boolean comparison
2016-03-17 14:14:03 -07:00
kopernikus
84bd2ff754
option to keep the VM registered with esxi
2016-03-16 23:17:35 +01:00
Chris Chalfant
601b833aaa
style and documentation changes per PR review comments
2016-03-15 08:01:20 -04:00
Chris Bednarski
133048e86e
Update LICENSE notice
2016-03-14 20:08:36 -07:00
Chris Bednarski
17c365e45f
Added MIT license
2016-03-14 20:08:35 -07:00
Chris Bednarski
5b5888b230
Initial import of Microsoft contributed code
2016-03-14 20:08:35 -07:00
Chris Chalfant
8163e16e02
gofmt code
2016-03-14 13:49:42 -04:00
Chris Chalfant
72a7123a0b
Add option to tell packer not to stop the instance
...
It is sometimes desirable to sysprep a windows machine before creating
an EC2 image. The AWS-approved way to do this is to run
ec2configservice.exe -sysprep and let ec2configservice shut down the instance.
This change adds an option to disable the stop instance call issued by packer
so that the user can control when the machine is stopped.
2016-03-14 12:54:03 -04:00
Chris Bednarski
1b1bbb604e
Merge branch 'googlecompute-disk-type' of https://github.com/meatballhat/packer into f-google-disk-type
2016-03-10 14:51:30 -08:00
Vasiliy Tolstov
e5276b31a3
fix assign to driveArgs
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2016-03-01 21:15:51 +00:00
Chris Bednarski
fee00baf6a
Revert "close #3192"
...
This reverts commit 3b8f0023e5
.
2016-02-29 13:51:47 -08:00
Vasiliy Tolstov
3b8f0023e5
close #3192
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2016-02-26 14:05:43 +00:00
Rickard von Essen
46f74d8347
Parallels: Support relative paths in output_directory
...
Fixes #3238
2016-02-21 16:52:51 +01:00
Rickard von Essen
88a84f5fb2
Merge pull request #3209 from rickard-von-essen/openstack-get-password
...
Get admin password of booted instance when using WinRM
2016-02-20 10:29:38 +01:00
Chris Bednarski
d0ab8658bc
Create a session for EC2RoleProvider; prevents crash; fixes #3123
2016-02-19 17:10:05 -08:00
Nathan Mische
335a2010bf
Moving SSH IP version validation to prepare function.
2016-02-17 10:52:29 +01:00
Nathan Mische
8396a2db1e
Adding ability to select IP version for SSH connections to OpenStack instances. Addresses #3047
2016-02-17 10:28:18 +01:00
Rickard von Essen
32bbe55f2b
Merge pull request #3208 from rickard-von-essen/openstack-messages-ssh
...
OpenStack: Change some log messages about SSH to connect.
2016-02-16 11:17:03 +01:00
Rickard von Essen
5368697413
Get admin password of booted instance when using WinRM
...
Fixes #2663
2016-02-16 11:06:22 +01:00
Rickard von Essen
c3bc87cb71
OpenStack: Change some log messages about SSH to connect.
2016-02-16 10:55:21 +01:00
James Bishopp
bd8fb014c4
Removed ssh_key_path
...
- removed backwards compatibility code
- ensured key usage came from SSHPrivateKey configuration
- changed tests to use private_key
2016-02-12 17:24:42 -08:00
Vasiliy Tolstov
feee19e4ed
file provisioner improvements
...
* allow specify source/destination as dir
* allow specify many files as source
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2016-02-12 11:48:28 -08:00
Dan Sedlacek
279555b8e1
Added ability to see what SSH Port packer generated in template data
2016-02-12 11:39:08 -08:00
Chris Bednarski
4458de4ea0
Reformat
2016-02-11 23:53:40 -08:00
Chris Bednarski
765ec5cf39
Merge pull request #2962 from dave2/postprocess_amazon_ova
...
New post-processor: amazon-import
2016-02-11 23:38:15 -08:00
Ian Duffy
c4b64eb2c7
Closes #2637 - VRDP support for the virtualbox plugin
...
Signed-off-by: Ian Duffy <ian@ianduffy.ie>
2016-02-11 14:38:24 -08:00
Matt Morrison
daf57c7632
Add tests and documentation for subnetwork attribute
2016-02-11 21:54:48 +13:00
Matt Morrison
942aaa7a85
Add support for Google subnetworks. Closes #3062 . Fixes an issue with how packer populates instances metadata. Closes #3181
2016-02-11 17:31:46 +13:00
Andrew Starr-Bochicchio
6d31470757
Look up snapshot ID based by Droplet, not user.
2016-02-09 11:29:06 -05:00
Rickard von Essen
e1c470db80
Merge pull request #3135 from rickard-von-essen/issue-2526
...
OpenStack: convert SSH keys from BER to DER with OpenSSL, work around…
2016-02-09 13:10:04 +01:00
Rickard von Essen
6855c480ad
OpenStack: convert SSH keys from BER to DER with OpenSSL, work around for GH-2526.
...
Try to parse the temporary keypair received from OpenStack, if it fails
try to use OpenSSL to convert it from BER encoding to DER.
2016-02-09 12:50:00 +01:00
Vasiliy Tolstov
ec4e95493d
builder/digitalocean: add ability to specify api url
...
This is useful in case of using DigitalOcean compatibility api hosting.
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2016-02-06 14:15:32 +00:00
Chris Bednarski
6c35f44104
Merge pull request #3129 from vtolstov/wait
...
builder/qemu: allow to specify time.Duration in special <wait> command
2016-02-04 17:16:07 -08:00
Chris Bednarski
358b5c62e2
Merge pull request #3143 from ThatGerber/iam-roles
...
IAM CLI Profile/Assume Role Support
2016-02-04 16:47:09 -08:00
Christopher Gerber
e7711c31ea
Wrong function to convert int to string.
2016-02-04 16:18:57 -06:00
Christopher Gerber
b75d561c56
Fixes more windows testing errors.
...
"constant 9999999999 overflows int" running test on CI server. Replaced with timestamp to unixnano
2016-02-04 16:12:18 -06:00
Christopher Gerber
d25ba245f4
Fixes bytes to string issues in Windows build.
2016-02-04 16:05:49 -06:00
Christopher Gerber
a6aefa859f
Fixes issue in build where multiple processes were trying to access the same file.
2016-02-04 15:39:54 -06:00
Christopher Gerber
6c3e0daf24
Added tests. Updated CLIConfig to pass tests.
2016-02-04 14:56:22 -06:00
Rickard von Essen
2155576fd6
Merge pull request #2751 from rickard-von-essen/prl_deprecations
...
Remove deprecated parallels_tools_host_path and guest_os_distribution
2016-02-04 20:21:59 +01:00
Chris Bednarski
e6b6f0b020
Merge pull request #2539 from fnoeding/amazon-ebs-fix-ec-user-data-encoding
...
amazon builder: always base64 encode ec2 user data
2016-02-03 16:47:01 -08:00
Christopher Gerber
f1ae2a2b5a
Moved assume credentials to CLIConfig. Added new functions and methods to CLIConfig. Ran gofmt.
2016-02-03 15:53:01 -06:00
Chris Bednarski
951a7e8ad3
Merge pull request #2596 from manicai/master
...
Fix for #2496 AWS credentials for instance based AMIs
2016-02-03 12:45:51 -08:00
Christopher Gerber
4cf9e36085
Changes credential/config file opener to use homedir instead of HOME environmental variable.
2016-02-03 10:43:48 -06:00
Chris Bednarski
24dc798cfb
Revert "Prevalidate Hardware Specs on Linux"
...
This reverts commit eda84cb2d3
.
2016-02-02 12:41:43 -08:00
Chris Bednarski
6504f4f777
Revert "Only validate vmware resources on local hosts"
...
This reverts commit f01578c91e
.
2016-02-02 12:41:42 -08:00
Chris Bednarski
7ad2104c7f
Revert "Correctly call prepare function in test"
...
This reverts commit 6e8bfd3ce9
.
2016-02-02 12:41:37 -08:00
Christopher Gerber
7975c5e336
Move CLIConfig instantiation inside of ProfileName check.
2016-02-02 08:36:36 -06:00
Vasiliy Tolstov
2104fcec69
builder/qemu: allow to specify time.Duration in special <wait> command
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2016-02-02 09:13:37 +00:00
Christopher Gerber
883acb18fa
IAM Role Switching
...
Adds initial IAM Role Switching support and support for AWS CLI Credential and Config files.
See: https://github.com/mitchellh/packer/issues/3109
2016-02-01 18:55:59 -06:00
Rickard von Essen
fd6282529c
Remove deprecated parallels_tools_host_path and guest_os_distribution
2016-02-01 12:25:01 +01:00
Chris Bednarski
2dd8ad9449
Merge pull request #2577 from cybercom-finland/os_source_image_name
...
Support source_image_name in OpenStack builder
2016-01-28 15:40:13 -08:00
Chris Bednarski
4490826a17
Merge pull request #3040 from kimor79/3011
...
Add mount_partition option to amazon-chroot builder
2016-01-25 22:08:07 -08:00
Chris Bednarski
ffb85f6ea5
Merge pull request #3096 from grubernaut/f-resource-limits
...
Prevalidate Hardware Specs on Linux
2016-01-25 21:06:14 -08:00