Christopher Boumenot
f9230aeb95
azure: fix snapshot regression
2018-12-13 13:58:18 -08:00
Megan Marsh
ce71932f95
Merge pull request #7061 from boumenot/pr-6773-caching-type
...
azure: configuration for disk caching
2018-12-06 15:06:21 -08:00
Ali Rizvi-Santiago
1a3c3f2ffc
Replaced all instances of mitchellh/go-homedir with an implementation based on os/user.
2018-12-04 16:53:33 -06:00
Christopher Boumenot
c7d8f4e150
azure: configuration for disk caching
...
Export a configuration knob to change the disk caching setting. The
default value remains ReadWrite. This seems the most appropriate value
given Packer. Certain disk sizes require that disk caching be disable,
and this knob allows the user to do just that.
2018-11-30 14:14:43 -08:00
Christopher Boumenot
06c2c35e4c
Merge pull request #6980 from amydutta/amdut/snapshot
...
Adding options for Managed Image OS Disk and Data Disk(s) snapshot(s)
2018-11-16 15:51:52 -08:00
Amrita Dutta
b8def0b3fb
Added test to check for missing OS disk snapshot name and data disk snapshot prefix
2018-11-15 22:01:16 +00:00
Amrita Dutta
67342750a3
Addressed PR comments
2018-11-14 01:47:48 +00:00
Adrien Delorme
175b6a7971
add test for MSI configuration
2018-11-12 12:04:57 +01:00
Adrien Delorme
1958ef6e81
remove unecessary check
2018-11-12 11:32:49 +01:00
Adrien Delorme
08e8b1850e
remove unnecessary parenthesis
2018-11-12 10:49:39 +01:00
Amrita Dutta
2d6b18e63e
Fix tests after bug fix
2018-11-10 00:05:25 +00:00
Amrita Dutta
213fbbae00
Updated go version and reformatted
2018-11-09 22:41:48 +00:00
Amrita Dutta
a297d73b98
correcting wrong log message
2018-11-09 19:29:57 +00:00
Amrita Dutta
06525dd885
adding logs in the steps
2018-11-09 19:28:37 +00:00
Adrien Delorme
1ab0173e69
azure builder: allow to auth with managed identities ( MSI )
2018-11-09 17:39:03 +01:00
Amrita Dutta
8881bc2d64
Fix bug in snapshot client creation
2018-11-09 03:30:57 +00:00
Mikhail Ushanov
536252683e
builders: reuse private key file reading function
...
Signed-off-by: Mikhail Ushanov <gm.mephisto@gmail.com>
2018-11-08 14:25:50 +03:00
Amrita Dutta
8d8c86366b
Config tests + typo fix
2018-11-07 22:23:22 +00:00
Amrita Dutta
1fa9f1ef11
formatting changes in stateBag.go
2018-11-07 18:11:48 +00:00
Amrita Dutta
8c326dbab7
Formatting changes
2018-11-07 18:08:15 +00:00
Amrita Dutta
b2d1675d39
Added tests
2018-11-07 03:23:17 +00:00
Amrita Dutta
369b2dae5e
Inlining suggested functions
2018-11-06 21:50:53 +00:00
Amrita Dutta
593363c5be
fix typo in last commit
2018-11-06 19:23:15 +00:00
Amrita Dutta
1266d5146d
addressed PR comments + add file for data disk snapshots
2018-11-06 19:17:03 +00:00
Amrita Dutta
d12d23d34b
OS disk snapshot
2018-11-05 23:48:22 +00:00
Josh Soref
b68168807a
Miscellaneous doc improvements
...
backticks, spaces, commas
In general, a list of items should have a space after each comma.
While there are editorial styles that suggest commas inside quotations,
they're horrible advice when the backticks are describing specific
character for a user to enter.
one off indent filters section
singular
backticks...
word wrap long lines...
spelling: macOS
contributing: clarify closing case
contributing: link to changelog
contributing: point to git remote...
contributing: split commands from descriptions
contributing: grammar
spelling: github
grammar: comma after etc.
spelling: macOS
grammar: i.e.
alicloud: use relative link
alicloud: use backticks
alicloud: bits
alicloud: such as
grammar: comma after etc.
avoid linking periods
grammar: period
amazon-chroot: IOPS
amazon-chroot: use backticks
amazon-chroot: link to section
amazon-chroot: whether-or-not; period
amazon-ebs: period
amazon-ebs: use relative link
amazon-ebs: use backticks
amazon-ebs: comma
amazon-ebs: bold
amazon-ebssurrogate: comma after etc.
amazon-ebssurrogate: this builder
amazon-instance: this builder
amazon-ebssurrogate: set this
amazon-ebssurrogate: whether-or-not
amazon-ebssurrogate: period
amazon-ebssurrogate: bold section reference
amazon-ebssurrogate: backticks...
amazon-ebssurrogate: commas around e.g.
spelling: precedence
spelling: i.e.
amazon-ebssurrogate: backticks...
2018-10-18 19:09:49 -04:00
Megan Marsh
cdc6c57b31
Merge pull request #6822 from hashicorp/fix_6774
...
Fix 6774
2018-10-10 13:25:58 -07:00
Megan Marsh
53bce398bb
add Managed Image test to azure artifact
2018-10-10 10:04:19 -07:00
Megan Marsh
5dc4ff95da
fix azure artifact so it works with managed images as well as VHDs
2018-10-10 10:04:11 -07:00
mbearup
de8d30d77c
Update tests for Azure Shared Image Gallery
2018-10-10 09:20:34 -07:00
mbearup
c7180413b0
Fix tests for Shared Image Gallery
2018-10-09 16:38:50 -07:00
mbearup
a3a2a9e970
Fix issue with composite literal in test
2018-10-09 15:35:09 -07:00
mbearup
335feaf89c
Convert shared_image_gallery options to a struct
...
Updates tests and documentation for shared_image_gallery
2018-10-09 13:56:49 -07:00
mbearup
5373b8586d
Update tests for Azure Shared Image Gallery
2018-10-05 16:04:07 -07:00
mbearup
b6bb5d4b4d
Fix format/spacing for config.go
2018-10-05 10:52:02 -07:00
mbearup
c1e0146d33
Dynamically set apiVersion for Shared Image Gallery scenario.
2018-10-03 16:33:28 -07:00
mbearup
d21b13cb85
Modify variable names for Shared Image Gallery.
...
Add checks for Shared Image Gallery options.
2018-10-03 16:10:46 -07:00
mbearup
55be0da5da
Initial changes to support Shared Image Gallery
2018-09-30 13:56:44 -07:00
Megan Marsh
38cc525ec7
new option allowing user to clean up the ephemeral ssh key from the authorized_keys file
2018-09-14 11:06:38 -07:00
Megan Marsh
a0edaf6c46
Going to revert this change for now, becuase of potential issues that arise from calling Prepare() twice
...
Revert "use statebag instead of SetSharedState for winRM password"
This reverts commit b35acbd879
.
2018-09-10 16:48:42 -07:00
Adrien Delorme
4682b3a9d2
refactor possible random strings into common/random
2018-09-05 10:26:52 +02:00
Adrien Delorme
170b2f3383
builder/azure/common.RandomString-> common/random.String
...
* to share them
* also removed unused PassworString func & arm.TempPasswordAlphabet package const
2018-09-05 10:24:28 +02:00
Christopher Boumenot
2e294da82a
Merge pull request #6644 from riezebosch/master
...
[azure-arm] retry cleanup individual resources on error
2018-09-04 11:40:27 -07:00
Manuel Riezebosch
fcfa54fb1d
[azure-arm] retry cleanup individual resources on error
2018-08-31 13:43:38 +02:00
Adrien Delorme
7c358eed2f
removed unused builder/azure/common/lin.StepGeneralizeOS struct
2018-08-29 14:40:33 +02:00
Adrien Delorme
3d46fbd4f2
removed unused builder/azure/common/lin.StepCreateCert struct
2018-08-29 14:40:33 +02:00
Adrien Delorme
b83c72fd54
more private keys in config
2018-08-29 14:40:32 +02:00
Adrien Delorme
336cac29d4
also use config.SSHPrivateKey for azure-arm builds
2018-08-29 14:40:32 +02:00
Adrien Delorme
51d2aac9f6
SSHPrivateKey => SSHPrivateKeyFile
2018-08-29 14:40:32 +02:00
Matthew Hooker
3f1a9766f4
formatting verb fixes for go 1.11
2018-08-24 16:18:21 -07:00
Matthew Hooker
e41e99954d
go 1.11 format rules
2018-08-24 15:56:44 -07:00
Megan Marsh
b35acbd879
use statebag instead of SetSharedState for winRM password
2018-08-24 13:51:16 -07:00
Adrien Delorme
6bbcd3e914
Remove remaining unused ssh config funcs and add missing calls ( #6622 )
...
* Remove duplicate unused SSHConfig funcs
* call to SSHConfigFunc() for azure/arm builder
* ncloud too
* remove empty ncloud file
2018-08-24 16:00:40 +02:00
Megan Marsh
ff6a039d5b
replace scrubconfig with packer.LogSecretFilter.Set
...
filter winrm password from logs
Add new root-level packer template option, sensitive-variables, to tell us what user variables to mark sensitive.
2018-08-20 15:35:55 -07:00
Patrick Double
2868971a9b
Fixes per code review
2018-08-09 07:14:14 -05:00
Patrick Double
d796edc783
Add to vagrant post-processor support for Azure
2018-08-08 10:04:28 -05:00
Christopher Boumenot
a3e6153068
azure: implement clean_image_name
2018-08-01 10:54:45 -07:00
Christopher Boumenot
fa7f54cb55
azure: satisfy Azure password requirements
2018-07-11 15:32:45 -07:00
Mike
5ea6429cd6
managed_image_resource_group_name max length change
2018-07-11 11:31:51 -04:00
Hariharan Jayaraman
b23d6c9589
fixing infinite loop issue deleting existing resources if we have a empty target resource
2018-06-06 15:25:19 -07:00
Hariharan Jayaraman
a13a2511f9
Added additional error message if we failed to parse token
2018-05-21 22:20:36 -07:00
Hariharan Jayaraman
1bd7aa534e
Addressed PR feedback
2018-05-21 21:38:41 -07:00
Hariharan Jayaraman
8a3e599cad
Added text to point out two device auth
2018-05-21 11:05:59 -07:00
Hariharan Jayaraman
da67df6d03
space fix
2018-05-18 21:17:19 -07:00
Hariharan Jayaraman
4992429e8c
Minor comment fixes
2018-05-18 17:34:01 -07:00
Hariharan Jayaraman
00e809cb7e
Refactored the change into a new function
2018-05-18 15:21:49 -07:00
Hariharan Jayaraman
ea9b2a8b5f
review feedback
2018-05-18 12:09:42 -07:00
Hariharan Jayaraman
667113338a
missed formating
2018-05-18 01:41:00 -07:00
Hariharan Jayaraman
7f2277676a
Ensure that Device Login tests dont block general acceptance tests
2018-05-18 01:34:12 -07:00
Hariharan Jayaraman
77fe1bffe4
Ensure that Device Login tests dont block general acceptance tests
2018-05-18 01:25:19 -07:00
Hariharan Jayaraman
de1783240f
Updates to remove space changes
2018-05-18 00:53:44 -07:00
Hariharan Jayaraman
91eed4da52
trim right of the keyvault url
2018-05-18 00:44:25 -07:00
Hariharan Jayaraman
df5cc234fc
updates
2018-05-18 00:39:57 -07:00
Hariharan Jayaraman
1f46271a6b
Ensuring device login works for Windows build
2018-05-18 00:32:01 -07:00
Christopher Boumenot
a5530d4546
Merge pull request #6269 from harijayms/asyncrgdelete
...
Async delete Resource Group
2018-05-16 15:13:09 -07:00
Hariharan Jayaraman
e1b18d594a
Updates based on PR feedback
2018-05-15 11:41:26 -07:00
Hariharan Jayaraman
c8c9bbb22a
Async delete Resource Group
2018-05-14 20:06:23 -07:00
Hariharan Jayaraman
13c0b0b370
Added warning for VHD creation and updated samples
2018-05-10 13:15:35 -07:00
Christopher Boumenot
80a096cadd
azure: device login for US Gov
2018-05-06 20:59:38 -07:00
Paul Meyer
8aee53ebe9
Merge pull request #6224 from paulmey/update-azure-sdk
...
Update Azure SDK
2018-05-04 09:47:28 -07:00
Paul Meyer
169f9d22e6
Update 'the other place' too
2018-05-04 00:32:15 +00:00
Paul Meyer
80f57308d7
Process review feedback
2018-05-04 00:28:34 +00:00
Oskar Wycislak
78d68880c0
Randomize osDisk name for Azure Managed Image builds.
...
This fixes #6115
2018-05-02 22:42:08 +02:00
Paul Meyer
07d8c71a2d
Create and use context for Builder.Run
2018-05-01 23:40:40 +00:00
Paul Meyer
cf94086b5f
Formatting fixes
2018-05-01 19:53:20 +00:00
Paul Meyer
c13965c0ce
Add acceptance tests
2018-05-01 15:39:50 +00:00
Paul Meyer
a3fb24639a
make tests pass again
2018-05-01 15:39:50 +00:00
Paul Meyer
09ce3c9803
Make it compile again
2018-05-01 15:39:50 +00:00
Megan Marsh
3afb243f11
use build name to ensure that winrm password and other shared state is not overwritten if two builders need the password in the same packer run.
2018-04-16 13:41:17 -07:00
Matthew Hooker
d70451f82e
Merge pull request #6106 from sethvargo/sethvargo/useragent
...
Add a common package for specifying useragent and adopt that everywhere
2018-04-05 15:38:11 -07:00
Megan Marsh
d236f26439
allow users to access winrm password in powershell and elevated powershell provisioners
2018-04-05 15:24:54 -07:00
Seth Vargo
5eeac07b63
Include existing azure user agent
2018-04-05 14:28:51 -04:00
Seth Vargo
b17b333e29
Add a common package for specifying useragent and adopt that everywhere
...
There were 5 different formats for the Packer useragent string. This
fixes that and unifies it into a helper package.
I did not touch oracle's user-agent, because it looked kinda special.
2018-04-05 14:28:50 -04:00
Christopher Boumenot
eb201724c1
azure: unit tests for naming temp resources
2018-03-20 16:20:11 -07:00
Megan Marsh
414dd80e61
Merge pull request #6013 from jsoref/spelling
...
Spelling
2018-03-14 09:50:27 -07:00
Josh Soref
33f90d7783
spelling: unmarshalling
2018-03-14 03:27:22 +00:00
Josh Soref
aae5b50dab
spelling: response
2018-03-14 02:19:26 +00:00
Megan Marsh
2de0652eb4
Merge pull request #6003 from boumenot/pr-azure-support-force
...
azure: respect -force for managed image deletion
2018-03-13 09:47:16 -07:00
Josh Soref
e43b8de3b1
spelling: network
2018-03-13 08:14:30 +00:00
Josh Soref
73d3d65b84
spelling: marshal
2018-03-13 08:10:01 +00:00
Josh Soref
1e99dce12b
spelling: inertness
2018-03-13 08:05:14 +00:00
Josh Soref
210f8e8312
spelling: hyphen
2018-03-13 07:59:00 +00:00
Josh Soref
04d6bfc696
spelling: environment
2018-03-13 07:41:21 +00:00
Christopher Boumenot
2a21032964
azure: randomize NIC and Public IP names
2018-03-11 20:47:45 -07:00
Christopher Boumenot
149ce52079
azure: respect -force for managed image deletion
2018-03-10 10:43:28 -08:00
Megan Marsh
b1eaaed6fb
Merge pull request #5970 from boumenot/pr-azure-plan-info
...
azure: support for marketplace plan information
2018-03-09 15:21:03 -08:00
Christopher Boumenot
1ef491d4c8
incorporate reviewer feedback
2018-03-08 22:43:26 -08:00
SwampDragons
585e31e47a
Merge pull request #5974 from boumenot/pr-azure-better-error-message
...
azure: better error message
2018-03-05 17:28:50 -08:00
Christopher Boumenot
d2e593de37
azure: support for marketplace plan information
2018-03-05 09:05:21 -08:00
Christopher Boumenot
8166ba2d8d
azure: better error message
2018-03-04 21:21:02 -08:00
Christopher Boumenot
e0ac07f5db
azure: correct function name spelling
2018-03-03 08:53:10 +00:00
jmajoor
675dc06967
Tests for the optional disk_additional_size configuration.
2018-02-26 17:37:46 -08:00
jmajoor
33c3d2885d
Add the additional disk steps to the Linux build
2018-02-26 17:33:40 -08:00
jmajoor
47947bd0f6
Apply gofmt
2018-02-23 18:43:55 -08:00
jmajoor
efcdbfeab9
Add support for optionally building Azure VMs with additional disks.
2018-02-23 15:34:13 -08:00
Matthew Hooker
8cd403425e
test fixes WIP
2018-01-24 17:09:17 -08:00
Matthew Hooker
7a189a83a1
fix imports
...
`find . -type f -name '*.go' -not -path "./vendor/*" -exec goimports -w {} \;`
2018-01-24 17:09:17 -08:00
Matthew Hooker
a831d522be
change run signatures
...
Run now takes a context as well as a statebag. We'll assign the context
to the blank identifier to prevent namespace collisions. We'll let the
step authors opt-in to using the context.
`find . -iname "step_*.go" -exec gsed -i'' 's/func \(.*\)Run(/func \1Run(_ context.Context, /' {} \;`
2018-01-24 17:09:17 -08:00
Matthew Hooker
366dc3da0a
move multistep imports to helper.
...
gomvpkg -from "github.com/mitchellh/multistep" -to "github.com/hashicorp/packer/helper/multistep"
2018-01-24 17:09:15 -08:00
Matthew Hooker
ebe995c0ff
run goimports
2018-01-22 17:21:10 -08:00
Arjen Schwarz
c2ecdd98c6
5691: Invalid image URLs make Azure builder crash
2017-12-12 20:12:53 +11:00
Jamie Lennox
d043c37ad4
Azure: Don't provide location for build_resource_group_name
...
Location is required by default because you must specify where to create
the resource group containing the packer resources.
When using build_resource_group_name you are specifying that packer
should use an existing resource group and so the location that resources
are in can be determined by fetching the information from the existing
group.
It is forbidden to pass both variables as it is easier and more
intuitive that the location comes from the group rather than ignore a
parameter.
Closes : #5655
2017-12-04 11:22:54 +11:00
Christopher Boumenot
da0c13f622
azure: delete keyvault deployment
2017-11-30 01:19:08 -08:00
Christopher Boumenot
a3c9485062
azure: sanity check resource group names
2017-11-20 15:19:12 -08:00
Christopher Boumenot
8985bd45ba
azure: go fmt
2017-11-16 17:32:35 -08:00
Christopher Boumenot
ee767e55d1
azure: change literal to constant
2017-11-16 16:36:42 -08:00
Christopher Boumenot
2684153cb2
azure: reject bad configuration faster
2017-11-16 16:34:18 -08:00
Christopher Boumenot
787f08f39b
azure: add user message to indicate what is being deleted
2017-11-16 16:31:05 -08:00
Arjen Schwarz
f43f3155d4
Remove breaking debug statement
2017-11-10 11:04:31 +11:00
Arjen Schwarz
0e706320ad
Issue #5045 - Add build_resource_group_name
...
* Created a new parameter for using existing resource groups
* Implemented logic to ensure temp_ and build_ can't both be used
* Implemented logic to ensure they can only be used in correct context
* Implemented tests for this logic
* Updated where required to ensure the process works
2017-11-09 22:20:09 +11:00
Arjen Schwarz
f4600a208f
Azure: Keep temporary resource group. Fixes #5045
...
This changeset will detect if the defined temporary resource group
already exists. If it does, it will not destroy it, but clean up
every resource required for building that is created by Packer
individually, both on success and failure.
Unit tests have been fixed, but more tests should be added for the new
functionalities.
2017-11-06 16:16:58 +11: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
07bb47f793
Replace pkcs12 code with upstream
2017-09-02 16:09:29 -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
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
Joao Albuquerque
d909c702ee
Working PublicPrivate
2017-08-08 15:05:45 +01:00
Luke Farnell
d9a5b69403
clean up ineffectual assignments
2017-08-07 13:20:01 -04:00
Christopher Boumenot
ec96cacdf3
azure: write temporary ssh key to a file
2017-06-27 13:23:04 -07: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
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
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
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