Commit Graph

469 Commits (ba767d1663db82d02fa18c087e4d99043d141fd3)

Author SHA1 Message Date
Paul Meyer b54a2ee09d Set correct user agent for Azure clientset
7 years ago
Megan Marsh 5614f307fb regerate code
7 years ago
Megan Marsh d15f43e4eb
Merge pull request #8232 from hashicorp/artifact-tree
7 years ago
Megan Marsh 836aaafaa3
Merge pull request #8203 from sumit-kalra/master
7 years ago
Adrien Delorme 8b76453e7f make generate
7 years ago
Adrien Delorme 4542666e25 fix func calls after master merge
7 years ago
Adrien Delorme cf1555bf17 Merge remote-tracking branch 'origin/master' into artifact-tree
7 years ago
Paul Meyer 575de8659e
Merge pull request #8226 from larohra/IncreasePollingDuration
7 years ago
Paul Meyer b716299d8e PR comment
7 years ago
Paul Meyer d3dc1be71c Doc updates
7 years ago
Paul Meyer 9b724d4ca0 Add artifact
7 years ago
Paul Meyer 0866cb3714 Reorganize client/common packages
7 years ago
Paul Meyer fe584f4448 Format updates
7 years ago
Paul Meyer 19a3502b36 Add 'vm' template function
7 years ago
Paul Meyer f72c4ec7a3 Update example and docs
7 years ago
Paul Meyer b5c0742951 Add test that verifies disksize bug (2/2)
7 years ago
Paul Meyer 98175c06d5 Add test that verifies disksize bug (1/2)
7 years ago
Paul Meyer eb5dc9326d Adding more tests
7 years ago
Paul Meyer 5943881051 Default for Gen 1 VMs
7 years ago
Paul Meyer 716f19a457 make fmt
7 years ago
Paul Meyer 8c73450f3d fixup! Add documentation to config struct
7 years ago
Paul Meyer 11ef06b94d Add StepVerifySourceDisk
7 years ago
Paul Meyer cb729e5a38 Add documentation to config struct
7 years ago
Paul Meyer 27a5bfe11c Add implementation for disk as source
7 years ago
Paul Meyer eff3f2bdcf Add test for disk input validation
7 years ago
Paul Meyer 57cff8961a Allow skipping OSDisk cleanup
7 years ago
Paul Meyer 6dee4d2d32 Wait for detach optimization
7 years ago
Paul Meyer bbac79f0a4 Make PIR images work
7 years ago
Paul Meyer b5401d552a Make from_scratch work
7 years ago
Paul Meyer b9b5bb2951 Use DiskStorageAccountTypes
7 years ago
Paul Meyer b4d0865548 Update azure-chroot builder
7 years ago
Paul Meyer e11a5bdb40 Put os disk id in state
7 years ago
Paul Meyer 77b782c5b5 Add StepEarlyCleanup
7 years ago
Paul Meyer 977ca5be1c Add StepCopyFiles and StepChrootProvision
7 years ago
Paul Meyer 9a3e6661b1 Add StepMountExtra
7 years ago
Paul Meyer addbdedea9 Add StepPostMountCommands
7 years ago
Paul Meyer d1f8b8545d Add StepAttachDisk
7 years ago
Paul Meyer 4d750ddefa Reuse amazon/chroot/step_pre_mount_commands.go
7 years ago
Paul Meyer 45d3f28c67 Add StepCreateNewDisk
7 years ago
Paul Meyer 3d329cf87d Add chroot builder framework
7 years ago
Paul Meyer 369ec9a84c Create disk attacher component
7 years ago
Paul Meyer 3c33aa4fc5 Add metadata client
7 years ago
Paul Meyer 113dc12346 Add function to detect whether Packer is running on Azure
7 years ago
Paul Meyer f106adbd12 Add Azure client set for chroot builder
7 years ago
Paul Meyer 2ded8f25ec Add metadata client
7 years ago
Paul Meyer 72fdce09ba Allow GetServicePrincipalToken to be called independently
7 years ago
Adrien Delorme 078ba7c8c3 commit old code generation tool
7 years ago
Adrien Delorme f8402f1b91 builder.azure.common: make CloudEnvironment private so it doesn't temper with hcl2 code generation
7 years ago
Adrien Delorme d2f5daf98f
Merge pull request #8209 from dvrkps/patch-3
7 years ago
Megan Marsh 0e70e0e5a4 fix template imports
7 years ago
Megan Marsh 44f91c9afc Revert "remove clean_ami_name and clean_image_name; complete the deprecation for these functions in favor of clean_resource_name"
7 years ago
larohra 936ae42b00 Added a new parameter in config to override the default Azure Go SDK PollingDuration timeout
7 years ago
Davor Kapsa 29a6938de6
clean and return nil for retry.Config
7 years ago
Sumit Kalra 4bd09f381e
Fixing documentation (#6)
7 years ago
Davor Kapsa 4c615341ef
Ignore retry.Config var
7 years ago
Davor Kapsa fb267dd1dc
Add error check
7 years ago
Sumit Kalra 595b103bbe
Adding NSG to the ARM deployment template when needed (#3)
7 years ago
Adrien Delorme d4600a7716 fix go imports
7 years ago
Megan Marsh 0026792d2f remove clean_ami_name and clean_image_name; complete the deprecation for these functions in favor of clean_resource_name
7 years ago
larohra 23c320d59e Increased the default polling duration to 60mins
7 years ago
Sumit Kalra 91d19adcd7 Ensuring that specifying allowed inbound IP and VNet are mutually exclusive (#2)
7 years ago
Sumit Kalra 132779c343 Adding config to specify allowed inbound IP addresses and CIDR blocks (#1)
7 years ago
Paul Meyer c72a612b44 Re-added tests for FillParamters
7 years ago
Paul Meyer 094a8840d8 Improve comments for FillParameters
7 years ago
Paul Meyer feeae1514e Refactor client config
7 years ago
Adrien Delorme a841da960d Merge branch 'master' of ssh://github.com/hashicorp/packer into scrape_doc_to_builder_struct_config
7 years ago
Adrien Delorme f11341c0b4 azure builder: avoid a panic in getObjectIdFromToken
7 years ago
Adrien Delorme f66ca58a46 Update azure docs for config.go
7 years ago
Adrien Delorme 783b02bd15 Update config.go
7 years ago
Adrien Delorme 4cb7c30987 Merge remote-tracking branch 'origin/master' into scrape_doc_to_builder_struct_config
7 years ago
Megan Marsh 6a201211a9 fix polling issues in azure
7 years ago
Christian Muehlhaeuser 216afbaa8b
Fixed various typos
7 years ago
Amrita Dutta 4c09dfde87 Fix bug while publishing SIG destination id for every managed image
7 years ago
Amrita Dutta 78be7ab4e4 fix typo
7 years ago
Amrita Dutta ba76d86cab remove comment
7 years ago
Amrita Dutta 85036231c4 Final commit
7 years ago
Amrita Dutta 78f001431e add example config file
7 years ago
Amrita Dutta 994dca5f78 fix bug in step_publish w.r.t managed image RG
7 years ago
Amrita Dutta 963336d421 Remove un-intended import
7 years ago
Amrita Dutta 76dbf4fb3b Remove subscription id from SIG destination input
7 years ago
Amrita Dutta 1d6de7167f Another update to replication logic
7 years ago
Amrita Dutta de591cff77 Fix append in builder.go
7 years ago
Amrita Dutta f7e08a097a Replication region changes
7 years ago
Amrita Dutta c9cdb34589 Update validation logic for missing replication region
7 years ago
Amrita Dutta f1f93f0665 normalize replication regions
7 years ago
Amrita Dutta 59a0f7f6e6 add validation checks for replication regions + formatting
7 years ago
Amrita Dutta d13b9574d6 Use user - provided version number instead of generating timestamp on our own
7 years ago
Amrita Dutta 34dac69112 pass subscription id via state bag
7 years ago
Amrita Dutta 540c904fd4 add missing check to not publish to SIG if config.SharedGalleryDestination.SigDestinationGalleryName is null
7 years ago
Ubuntu 6504d3ae5c Changes to ARM builder for publishing to SIG
7 years ago
Ubuntu fb9fd58dfb Imports for publishing to SIG
7 years ago
Adrien Delorme d81ca5728d azure-arm: rewrap struct comments for documentation generation
7 years ago
Adrien Delorme 4399684372 make fmt autogenerated docs
7 years ago
Adrien Delorme e6cbb013ba add // go:generate struct-markdown to all previously edited files
7 years ago
Adrien Delorme f1917edd34 generate the comments for config struct of builders scraping doc website
7 years ago
Amrita Dutta 1438e2e449 SIG as destination validation changes
7 years ago
Amrita Dutta 700c95c613 Update Azure SDK for Go to v30.0.0
7 years ago
Megan Marsh 3e73abc93a refresh line endings
7 years ago
Adrien Delorme d72040f4fa move retry code into the common/retry pkg and make retry context aware
7 years ago
Adrien Delorme a81abd297b Merge remote-tracking branch 'origin/master' into context_provisioner
7 years ago
Megan Marsh 3e72e65a6c
Merge pull request #7456 from hashicorp/do_5770
7 years ago
Adrien Delorme c4f3dccc14 rename interpolation context from ctx to ictx and contexts to ctx to avoid conflicts
7 years ago
Adrien Delorme a4bf94dd3c change Builder to be passed a context for cancellation
7 years ago
Adrien Delorme 9836dad0c9 introduce the clean_resource_name to clean image names and deprecate the old ones
7 years ago
Paul Meyer eb274c4e87 Power off before shapshotting
7 years ago
Paul Meyer e4bea87a20
Merge pull request #7211 from riezebosch/master
7 years ago
Adrien Delorme 9f82b75e57 Use the hashicorp/go-getter to download files
7 years ago
Joel Lopes c8a60c77d1 Add comments
7 years ago
Joel Lopes 1c030cb54b Use IMDS to get subscription for Azure MSI
7 years ago
Manuel Riezebosch d79b54e46a feat(arm-builder): print warning on zone resiliency for currently not supported locations
7 years ago
Manuel Riezebosch f31031f6b1 feat(arm-builder): zone resilient from config
7 years ago
Paul Meyer 68516fc05c Fix Azure interactive authentication
8 years ago
Paul Meyer e189db97d4 [azure] deallocate instead of just power-off
8 years ago
Paul Meyer aa29facdae Allow certificate bearer JWT client authentication
8 years ago
Paul Meyer 7e34579b7e Factor out Azure client credential config
8 years ago
Christopher Boumenot f9230aeb95 azure: fix snapshot regression
8 years ago
Megan Marsh ce71932f95
Merge pull request #7061 from boumenot/pr-6773-caching-type
8 years ago
Ali Rizvi-Santiago 1a3c3f2ffc Replaced all instances of mitchellh/go-homedir with an implementation based on os/user.
8 years ago
Christopher Boumenot c7d8f4e150 azure: configuration for disk caching
8 years ago
Christopher Boumenot 06c2c35e4c
Merge pull request #6980 from amydutta/amdut/snapshot
8 years ago
Amrita Dutta b8def0b3fb Added test to check for missing OS disk snapshot name and data disk snapshot prefix
8 years ago
Amrita Dutta 67342750a3 Addressed PR comments
8 years ago
Adrien Delorme 175b6a7971 add test for MSI configuration
8 years ago
Adrien Delorme 1958ef6e81 remove unecessary check
8 years ago
Adrien Delorme 08e8b1850e
remove unnecessary parenthesis
8 years ago
Amrita Dutta 2d6b18e63e Fix tests after bug fix
8 years ago
Amrita Dutta 213fbbae00 Updated go version and reformatted
8 years ago
Amrita Dutta a297d73b98 correcting wrong log message
8 years ago
Amrita Dutta 06525dd885 adding logs in the steps
8 years ago
Adrien Delorme 1ab0173e69 azure builder: allow to auth with managed identities ( MSI )
8 years ago
Amrita Dutta 8881bc2d64 Fix bug in snapshot client creation
8 years ago
Mikhail Ushanov 536252683e builders: reuse private key file reading function
8 years ago
Amrita Dutta 8d8c86366b Config tests + typo fix
8 years ago
Amrita Dutta 1fa9f1ef11 formatting changes in stateBag.go
8 years ago
Amrita Dutta 8c326dbab7 Formatting changes
8 years ago
Amrita Dutta b2d1675d39 Added tests
8 years ago
Amrita Dutta 369b2dae5e Inlining suggested functions
8 years ago
Amrita Dutta 593363c5be fix typo in last commit
8 years ago
Amrita Dutta 1266d5146d addressed PR comments + add file for data disk snapshots
8 years ago
Amrita Dutta d12d23d34b OS disk snapshot
8 years ago
Josh Soref b68168807a Miscellaneous doc improvements
8 years ago
Megan Marsh cdc6c57b31
Merge pull request #6822 from hashicorp/fix_6774
8 years ago
Megan Marsh 53bce398bb add Managed Image test to azure artifact
8 years ago
Megan Marsh 5dc4ff95da fix azure artifact so it works with managed images as well as VHDs
8 years ago
mbearup de8d30d77c Update tests for Azure Shared Image Gallery
8 years ago
mbearup c7180413b0 Fix tests for Shared Image Gallery
8 years ago
mbearup a3a2a9e970 Fix issue with composite literal in test
8 years ago
mbearup 335feaf89c Convert shared_image_gallery options to a struct
8 years ago
mbearup 5373b8586d Update tests for Azure Shared Image Gallery
8 years ago
mbearup b6bb5d4b4d Fix format/spacing for config.go
8 years ago
mbearup c1e0146d33 Dynamically set apiVersion for Shared Image Gallery scenario.
8 years ago
mbearup d21b13cb85 Modify variable names for Shared Image Gallery.
8 years ago
mbearup 55be0da5da Initial changes to support Shared Image Gallery
8 years ago
Megan Marsh 38cc525ec7 new option allowing user to clean up the ephemeral ssh key from the authorized_keys file
8 years ago
Megan Marsh a0edaf6c46 Going to revert this change for now, becuase of potential issues that arise from calling Prepare() twice
8 years ago
Adrien Delorme 4682b3a9d2 refactor possible random strings into common/random
8 years ago
Adrien Delorme 170b2f3383 builder/azure/common.RandomString-> common/random.String
8 years ago
Christopher Boumenot 2e294da82a
Merge pull request #6644 from riezebosch/master
8 years ago
Manuel Riezebosch fcfa54fb1d [azure-arm] retry cleanup individual resources on error
8 years ago
Adrien Delorme 7c358eed2f removed unused builder/azure/common/lin.StepGeneralizeOS struct
8 years ago
Adrien Delorme 3d46fbd4f2 removed unused builder/azure/common/lin.StepCreateCert struct
8 years ago
Adrien Delorme b83c72fd54 more private keys in config
8 years ago
Adrien Delorme 336cac29d4 also use config.SSHPrivateKey for azure-arm builds
8 years ago
Adrien Delorme 51d2aac9f6 SSHPrivateKey => SSHPrivateKeyFile
8 years ago
Matthew Hooker 3f1a9766f4
formatting verb fixes for go 1.11
8 years ago
Matthew Hooker e41e99954d
go 1.11 format rules
8 years ago
Megan Marsh b35acbd879 use statebag instead of SetSharedState for winRM password
8 years ago
Adrien Delorme 6bbcd3e914
Remove remaining unused ssh config funcs and add missing calls (#6622)
8 years ago
Megan Marsh ff6a039d5b replace scrubconfig with packer.LogSecretFilter.Set
8 years ago
Patrick Double 2868971a9b Fixes per code review
8 years ago
Patrick Double d796edc783 Add to vagrant post-processor support for Azure
8 years ago
Christopher Boumenot a3e6153068 azure: implement clean_image_name
8 years ago
Christopher Boumenot fa7f54cb55 azure: satisfy Azure password requirements
8 years ago
Mike 5ea6429cd6
managed_image_resource_group_name max length change
8 years ago
Hariharan Jayaraman b23d6c9589 fixing infinite loop issue deleting existing resources if we have a empty target resource
8 years ago
Hariharan Jayaraman a13a2511f9 Added additional error message if we failed to parse token
8 years ago
Hariharan Jayaraman 1bd7aa534e Addressed PR feedback
8 years ago
Hariharan Jayaraman 8a3e599cad Added text to point out two device auth
8 years ago
Hariharan Jayaraman da67df6d03 space fix
8 years ago
Hariharan Jayaraman 4992429e8c Minor comment fixes
8 years ago
Hariharan Jayaraman 00e809cb7e Refactored the change into a new function
8 years ago
Hariharan Jayaraman ea9b2a8b5f review feedback
8 years ago
Hariharan Jayaraman 667113338a missed formating
8 years ago
Hariharan Jayaraman 7f2277676a Ensure that Device Login tests dont block general acceptance tests
8 years ago
Hariharan Jayaraman 77fe1bffe4 Ensure that Device Login tests dont block general acceptance tests
8 years ago
Hariharan Jayaraman de1783240f Updates to remove space changes
8 years ago
Hariharan Jayaraman 91eed4da52 trim right of the keyvault url
8 years ago
Hariharan Jayaraman df5cc234fc updates
8 years ago
Hariharan Jayaraman 1f46271a6b Ensuring device login works for Windows build
8 years ago
Christopher Boumenot a5530d4546
Merge pull request #6269 from harijayms/asyncrgdelete
8 years ago
Hariharan Jayaraman e1b18d594a Updates based on PR feedback
8 years ago
Hariharan Jayaraman c8c9bbb22a Async delete Resource Group
8 years ago
Hariharan Jayaraman 13c0b0b370 Added warning for VHD creation and updated samples
8 years ago
Christopher Boumenot 80a096cadd azure: device login for US Gov
8 years ago
Paul Meyer 8aee53ebe9
Merge pull request #6224 from paulmey/update-azure-sdk
8 years ago
Paul Meyer 169f9d22e6 Update 'the other place' too
8 years ago
Paul Meyer 80f57308d7 Process review feedback
8 years ago
Oskar Wycislak 78d68880c0 Randomize osDisk name for Azure Managed Image builds.
8 years ago
Paul Meyer 07d8c71a2d Create and use context for Builder.Run
8 years ago
Paul Meyer cf94086b5f Formatting fixes
8 years ago