207 Commits

Author SHA1 Message Date
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
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
5ed3be9a8c
set azure metadata 2017-06-01 14:11:40 -07:00
Matthew Hooker
ee5d13611f
update ssh client usage for new crypto/ssh version 2017-05-18 12:01:44 -07:00
Matthew Hooker
7aca9b7f71
builder/azure: replace panics with error returns 2017-04-27 11:04:57 -07:00
Christopher Boumenot
f0e5f75b06 Update TODO.md 2017-04-24 14:19:24 -07:00
Matthew Hooker
81522dced0
move packer to hashicorp 2017-04-04 13:39:01 -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
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
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
Eike Verdenhalven
7ad77b9e93 integrate new winrm transport interface 2017-01-18 22:11:48 +01: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
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
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
Christopher Boumenot
ece0a78990 azure: tag all resources 2016-08-02 11:25:03 -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
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
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
Christopher Boumenot
16c1abf1d4 Fix slow unit tests. 2016-07-06 11:06:52 -07: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
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
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
Christopher Boumenot
5950d3d92b Implement support for custom images. 2016-05-27 21:18:20 -07:00
Christopher Boumenot
c1e7caf53c Validate capture variables to obey Azure's rules. (#3537) 2016-05-18 17:25:57 -07:00
Christopher Boumenot
83e6044595 Documentation for the Azure builder. (#3518) 2016-05-17 14:15:24 -07:00
Christopher Boumenot
5484b9c7d0 Do not use a communicator for unit tests. (#3539) 2016-05-17 13:53:01 -07:00