Megan Marsh
617fd18255
supply complete dummy data for googlecompute tests
2019-07-03 15:58:08 -07:00
Megan Marsh
0dfb3cc56f
replace some bespoke google auth code with code from golang's oauth2 library
2019-07-03 14:27:33 -07:00
Megan Marsh
242f5b1c9f
typos
2019-07-03 13:34:23 -07:00
Megan Marsh
c03c3f4410
replace duplicate commHost functions with a single communicator helper that checks for ssh_host and does a statebag lookup for a given key
2019-07-03 13:30:29 -07:00
Megan Marsh
0cfe8e7070
allow ssh_host override for OpenStack
2019-07-02 14:00:51 -07:00
Megan Marsh
eb8c74bf85
allow ssh_host config option to override host logic for all builders
2019-07-02 13:56:28 -07:00
Megan Marsh
ad8a88e366
allow ssh_host to override the host ip gathered from the instance for GCP builder
2019-07-02 13:01:41 -07:00
Megan Marsh
6ad975f296
Revert "move SSHInterface/SSHIPVersion fields to communitator.Config struct"
...
This reverts commit b0c09087a2
.
2019-07-02 10:46:10 -07:00
Megan Marsh
62120c5c0b
Merge pull request #7813 from hashicorp/stop_calculating_spot_bids
...
stop calculating spot bids
2019-07-02 10:35:45 -07:00
Megan Marsh
d4b6a61445
don't store names of volumes we will be deleting when the instance terminates
2019-07-01 14:44:17 -07:00
Megan Marsh
486bdcce9d
Merge pull request #7815 from zqfan/tencent-data-disks
...
feature: support data disks for tencentcloud builder
2019-07-01 13:39:11 -07:00
Megan Marsh
42611e6004
fix build
2019-07-01 13:03:33 -07:00
Megan Marsh
a60f7e395e
add a test to make sure we don't error becaue of spot price auto product, yet
2019-07-01 13:01:41 -07:00
Megan Marsh
c722afe707
stop calculating spot bids; amazon changed the way spot instances are priced to be stable rather than bid-based, so when user sets auto, we can just default to the ondemand price and know that they'll get the same price as everyone else bidding at that time.
2019-07-01 13:01:41 -07:00
Megan Marsh
1678d66e31
Merge pull request #7818 from StileEducation/master
...
Allow EC2 Spot Fleet packer instances to run in parallel
2019-07-01 09:47:40 -07:00
Daniel Rodgers-Pryor
8a9753032c
Allow EC2 fleet packer instances to run in parallel
...
Without conflicting over the name of the launch template that they create/delete.
Previously, the launch template name was just hard coded to `packer-fleet-launch-template`, but since AWS enforces unique template names within an account, this caused simultaneously running packer instances to hit template-already-exists errors when creating their templates and race-conditions around deleting the template. Now, the template name is randomly generated on each run, so there should be no conflicts.
2019-06-30 16:19:35 +10:00
ZhiQiang Fan
7235a4a775
feature: support data disks for tencentcloud builder
...
Data disk is an important feature for instances and images, this
patch implements the basic functionality of it. More work needs
to be done to make it friendly to users. Docs has pointed out
current limitation.
Also update dependencies because this feature requires new code in
tencentcloud go sdk.
2019-06-30 00:05:38 +08:00
Megan Marsh
8d5ecb9514
fix bug where ReadAll on the stderr pipe was causing an infinite hang because there was no stderr to report
2019-06-28 16:23:28 -07:00
Megan Marsh
9dd871120a
Merge pull request #7810 from zqfan/tencent-add-run-tags
...
feature: add run_tags to instance in tencentcloud builder
2019-06-28 14:39:52 -07:00
Megan Marsh
1d1ff4ebc9
Merge pull request #7775 from shawnmssu/feature/ucloud_builder
...
Packer plugin support UCloud
2019-06-28 10:28:37 -07:00
ZhiQiang Fan
310a40f8fe
feature: add run_tags to instance in tencentcloud builder
...
Instance tags are useful, our customer asks us to support it in packer as
well, to enable them to identify the purpose of the instance, even the
instance runs in a very short time.
2019-06-28 23:18:41 +08:00
mingsheng.su
d3414e31e4
Update builder/ucloud/uhost/step_create_instance.go
...
Co-Authored-By: Megan Marsh <megan@hashicorp.com>
2019-06-28 12:05:23 +08:00
mingsheng.su
591f2833b8
Update builder/ucloud/uhost/step_create_instance.go
...
Co-Authored-By: Megan Marsh <megan@hashicorp.com>
2019-06-28 12:04:55 +08:00
mingsheng.su
0679f64689
Update builder/ucloud/uhost/step_copy_image.go
...
Co-Authored-By: Megan Marsh <megan@hashicorp.com>
2019-06-28 12:04:36 +08:00
mingsheng.su
33d9e1ca49
Update builder/ucloud/uhost/step_copy_image.go
...
Co-Authored-By: Megan Marsh <megan@hashicorp.com>
2019-06-28 12:03:11 +08:00
mingsheng.su
c8a9447aa4
Update builder/ucloud/uhost/step_create_image.go
...
Co-Authored-By: Megan Marsh <megan@hashicorp.com>
2019-06-28 12:02:56 +08:00
mingsheng.su
4dfb338915
Update builder/ucloud/uhost/step_config_vpc.go
...
Co-Authored-By: Megan Marsh <megan@hashicorp.com>
2019-06-28 12:02:45 +08:00
mingsheng.su
71fcc9fce3
Update builder/ucloud/uhost/step_config_subnet.go
...
Co-Authored-By: Megan Marsh <megan@hashicorp.com>
2019-06-28 12:02:24 +08:00
mingsheng.su
7fdd72d418
Update builder/ucloud/uhost/step_config_security_group.go
...
Co-Authored-By: Megan Marsh <megan@hashicorp.com>
2019-06-28 12:02:03 +08:00
mingsheng.su
a44df3d899
Update builder/ucloud/uhost/step_config_security_group.go
...
Co-Authored-By: Megan Marsh <megan@hashicorp.com>
2019-06-28 12:01:47 +08:00
mingsheng.su
e9e5493fd1
Update builder/ucloud/uhost/step_check_source_image.go
...
Co-Authored-By: Megan Marsh <megan@hashicorp.com>
2019-06-28 12:01:26 +08:00
Megan Marsh
350894200e
Merge pull request #7786 from zqfan/tencent-rm-img-name-limit
...
remove image name check in tencentcloud builder
2019-06-26 14:22:50 -07:00
Megan Marsh
b565075813
Merge pull request #7791 from 70k10/qemuadddisks
...
Add additional disk support for QEMU builder.
2019-06-26 12:47:05 -07:00
mingsheng.su
6109ad79a3
Merge branch 'master' into feature/ucloud_builder
2019-06-26 10:09:28 +08:00
Megan Marsh
bed0938b6c
Merge pull request #7782 from hashicorp/fix_7758
...
Allow user to override vagrant ssh-config details
2019-06-25 09:18:24 -07:00
Megan Marsh
8bca6b7cba
Merge pull request #7785 from dhirschfeld/patch-1
...
Set MaxRamSize to 64GB
2019-06-25 09:17:40 -07:00
Jayson Cofell
e690cb90ce
Go fmt AdditionalDiskSizes code
2019-06-24 18:36:01 -06:00
Jayson Cofell
37e15ec854
Add AdditionalDiskSizes test
2019-06-24 18:11:14 -06:00
Dave Hirschfeld
2a284dffa0
Bump MaxRamSize to 1TB
2019-06-25 09:39:27 +10:00
Jayson Cofell
c9b693080a
Add additional disk support for QEMU builder.
2019-06-24 17:35:06 -06:00
Megan Marsh
3a55437f4e
Merge pull request #7790 from hashicorp/fix_7748
...
clarify pathing requirements for hyperv-vmcx
2019-06-24 11:36:49 -07:00
Megan Marsh
6ead0493d9
Merge pull request #7787 from zqfan/tencent-fix-tmp-keypair
...
fix: correctly remove tencentcloud temporary keypair
2019-06-24 11:21:30 -07:00
Megan Marsh
29bff0975f
clarify pathing requirements for hyperv-vmcx
2019-06-24 10:56:32 -07:00
Megan Marsh
1eef03c36b
Merge pull request #7778 from amydutta/master
...
Publish Managed Images to Azure Shared Image Gallery (same Subscription)
2019-06-24 10:43:00 -07:00
Amrita Dutta
78be7ab4e4
fix typo
2019-06-24 16:57:07 +00:00
ZhiQiang Fan
1c7b23357d
fix: correctly remove tencentcloud temporary keypair
...
Tencent Cloud key pair cannot be removed if it is in a image, so
when user doesn't specify any log in method, such as ssh_password,
temporary key pair will be created and used, which eventually will
always fail.
This patch detach temporary key pair before creating image, so in
cleanup step, it can be deleted correctly.
Note that if user specifies a private key pair, we do not detach it,
because user might want to use it when creating new instances from this
image.
2019-06-23 23:23:48 +08:00
ZhiQiang Fan
20315155a9
remove image name check in tencentcloud builder
...
Spinnaker uses packer to create images, but tencentcloud builder
has name check to forbidden special characters such as dot(.) while
it is absolutely valid in API side.
This patch simply removes this limitation.
2019-06-23 20:32:13 +08:00
Dave Hirschfeld
96a3ef1465
Set MaxRamSize to 64GB
...
Fixes #7784
2019-06-22 19:47:16 +10:00
Megan Marsh
06a0db9350
allow user to override vagrant authentication by setting ssh_username and ssh_password.
2019-06-21 16:27:34 -07:00
Amrita Dutta
ba76d86cab
remove comment
2019-06-21 03:51:44 +00:00
Amrita Dutta
e96458e8bd
Merge branch 'master' of https://github.com/amydutta/packer
2019-06-21 03:43:31 +00:00
Amrita Dutta
85036231c4
Final commit
2019-06-21 02:47:39 +00:00
mingsheng.su
95611695b1
update builder_test && make generate
2019-06-20 18:07:56 +08:00
mingsheng.su
7804a52dd2
ucloud packer review
2019-06-19 21:32:33 +08:00
Amrita Dutta
78f001431e
add example config file
2019-06-19 07:18:08 +00:00
Amrita Dutta
994dca5f78
fix bug in step_publish w.r.t managed image RG
2019-06-19 06:53:20 +00:00
Amrita Dutta
963336d421
Remove un-intended import
2019-06-19 06:42:55 +00:00
Amrita Dutta
76dbf4fb3b
Remove subscription id from SIG destination input
2019-06-19 06:10:18 +00:00
Amrita Dutta
1d6de7167f
Another update to replication logic
2019-06-18 23:51:10 +00:00
Amrita Dutta
de591cff77
Fix append in builder.go
2019-06-18 23:48:38 +00:00
Amrita Dutta
f7e08a097a
Replication region changes
2019-06-18 23:41:14 +00:00
mingsheng.su
d1b9ad90c8
Merge remote-tracking branch 'origin' into feature/ucloud_builder
2019-06-18 18:17:19 +08:00
Amrita Dutta
c9cdb34589
Update validation logic for missing replication region
2019-06-18 06:39:43 +00:00
Amrita Dutta
f1f93f0665
normalize replication regions
2019-06-18 06:01:22 +00:00
Amrita Dutta
59a0f7f6e6
add validation checks for replication regions + formatting
2019-06-18 05:34:26 +00:00
Amrita Dutta
d13b9574d6
Use user - provided version number instead of generating timestamp on our own
2019-06-17 22:54:37 +00:00
Megan Marsh
305592d8ed
fix copy logic and tests
2019-06-17 15:38:28 -07:00
Amrita Dutta
34dac69112
pass subscription id via state bag
2019-06-17 22:08:10 +00:00
Megan Marsh
8cc82ca8d2
add broken test
2019-06-17 15:04:19 -07:00
Megan Marsh
0d55bc46ee
add skip_save_build_region flag to fix naming conflicts when building for multiple regions
2019-06-17 14:39:11 -07:00
Amrita Dutta
540c904fd4
add missing check to not publish to SIG if config.SharedGalleryDestination.SigDestinationGalleryName is null
2019-06-17 19:13:03 +00:00
Ubuntu
6504d3ae5c
Changes to ARM builder for publishing to SIG
2019-06-14 21:54:27 +00:00
Julien Brochet
ab52c4f87e
fix(promox): update proxmox-api-go dependency
2019-06-14 20:42:09 +02:00
Megan Marsh
8d25cc578f
Merge pull request #7746 from hashicorp/fix_7671
...
Abort hyperv build if there's a name collision
2019-06-14 10:58:22 -07:00
Adrien Delorme
cfda61b81f
Merge pull request #7747 from chhaj5236/bugfix/refine_io_optimize
...
let product API determine the default value of io_optimized
2019-06-14 11:58:03 +02:00
mingsheng.su
787485f66f
add validate project_id
2019-06-14 14:50:46 +08:00
bozhi.ch
b3277698f6
let product API determine the default value of io_optimized
2019-06-14 11:49:42 +08:00
Megan Marsh
daddb65da8
add tests
2019-06-13 14:29:22 -07:00
Megan Marsh
2e821da84b
check to make sure a vm-name isn't already in use before trying to launch a vm with said name.
2019-06-13 14:09:45 -07:00
Megan Marsh
1c3b234b55
Merge pull request #7737 from hashicorp/document_retry
...
retry.Backoff: document
2019-06-13 10:54:08 -07:00
mingsheng.su
9798c86a0d
update string to const
2019-06-13 20:17:08 +08:00
mingsheng.su
156d31f933
update acc test
2019-06-13 18:38:07 +08:00
mingsheng.su
c8bab9b382
add ucloud packer
2019-06-13 15:16:49 +08:00
bozhi.ch
6a5db1e948
cleanup image and snapshot if target image is still not available after timeout
2019-06-13 11:17:39 +08:00
Adrien Delorme
632e42eb88
Merge pull request #7720 from psinghal20/issue-6617
...
Add feature to import user-data from a file
2019-06-12 11:06:33 +02:00
Pratyush singhal
92af5847a7
refactor: replace *packer.MultiError from type signature of createInstanceMetadata with generic error interface
...
Signed-off-by: Pratyush singhal <psinghal20@gmail.com>
2019-06-11 21:01:26 +05:30
Adrien Delorme
0a74a6ae10
Merge pull request #7734 from yandex-cloud/yandex-cloud-builder-2
...
graceful shutdown instance, metadata from file and preemptible instance type
2019-06-11 17:23:42 +02:00
Pratyush singhal
6ce6bd8ad3
refactor: add multiError in createInstanceMetadata method to capture multiple errors
...
Signed-off-by: Pratyush singhal <psinghal20@gmail.com>
2019-06-11 20:09:14 +05:30
Gennady Lipenkov
9c7e6a0aec
fix test
2019-06-11 17:04:51 +03:00
Pratyush singhal
4a369b4ef1
chore: add test for MetadataFiles option
...
Signed-off-by: Pratyush singhal <psinghal20@gmail.com>
2019-06-11 17:45:30 +05:30
Pratyush singhal
99a3e9cf0a
chore: update tests for createInstaceMetadata
...
Signed-off-by: Pratyush singhal <psinghal20@gmail.com>
2019-06-11 16:47:16 +05:30
Pratyush singhal
529dff0abb
refactor: add error handling in createInstanceMetadata method
...
Signed-off-by: Pratyush singhal <psinghal20@gmail.com>
2019-06-11 16:36:16 +05:30
Adrien Delorme
98206d59d7
aws: step_create_tags make the max waiting time 30s and not 30ns
2019-06-11 12:37:52 +02:00
Adrien Delorme
ac03fddfe5
Merge pull request #7731 from psinghal20/issue-7636
...
add retry for temp key-pair generation in amazon-ebs
2019-06-11 12:35:32 +02:00
Pratyush Singhal
d92e82c43f
refactor: replace the maxBackoff from 30 nanosecond to 30 seconds
...
Co-Authored-By: Adrien Delorme <azr@users.noreply.github.com>
2019-06-11 16:01:03 +05:30
Gennady Lipenkov
87b44a5879
Bulk fixes and enhancements
...
1) graceful shutdown instance
2) support metadata from file
3) support preemptible instance
2019-06-11 12:28:37 +03:00
bozhi.ch
45249fc764
fix describing snapshots issue when image_ignore_data_disks is provided
2019-06-11 15:22:06 +08:00
Pratyush singhal
d4b0cb68e3
feat: add retry for temp key-pair generation in amazon-ebs
...
Signed-off-by: Pratyush singhal <psinghal20@gmail.com>
2019-06-10 22:45:02 +05:30
Ubuntu
fb9fd58dfb
Imports for publishing to SIG
2019-06-07 20:47:37 +00:00
Ubuntu
bf075d20c3
Merge branch 'master' of https://github.com/amydutta/packer
2019-06-06 23:37:55 +00:00