Marin Salinas
31367ff768
feature: add copy files step in chroot builder
2019-07-18 09:39:08 -07:00
Marin Salinas
07b1580003
feature: add mount extra step in chroot builder
2019-07-18 09:39:07 -07:00
Marin Salinas
b3d165e864
feature: add post mount commands step in chroot builder
2019-07-18 09:39:07 -07:00
Marin Salinas
6e6bdc4f42
feature: add mount device step in chroot builder
2019-07-18 09:39:07 -07:00
Marin Salinas
00ab0097de
feature: add pre mount commands step for chroot builder
2019-07-18 09:39:07 -07:00
Marin Salinas
0f51ab5c08
feature: add early unflock step for chroot builder
2019-07-18 09:39:07 -07:00
Marin Salinas
b3310f65a6
feature: add link volume step for chroot builder
2019-07-18 09:39:07 -07:00
Marin Salinas
f1e5dafc71
fix: convert volume size to Gib before volume creation
2019-07-18 09:39:07 -07:00
Marin Salinas
b246bf7329
wip: add create_volume step in chroot builder
2019-07-18 09:39:07 -07:00
Marin Salinas
b7f8c6ad9d
feature: add prepare device for chroot builder
2019-07-18 09:39:07 -07:00
Marin Salinas
bf2d66c4e6
feature: add file lock step for chroot builder
2019-07-18 09:39:07 -07:00
Marin Salinas
66cf27fe31
feature: add step check root device step in chrrot builder
2019-07-18 09:39:07 -07:00
Marin Salinas
bc907f0fd0
feature: add vm info step
2019-07-18 09:39:07 -07:00
Marin Salinas
a3b0c28bb6
test: add acceptance basic test for outscale chroot builder
2019-07-18 09:39:07 -07:00
Marin Salinas
e8ef12e41c
test: fix unit test in block device security group and build info
2019-07-18 09:39:07 -07:00
Marin Salinas
2f87427fd4
feature: add chroot build prepare function implementation
2019-07-18 09:39:07 -07:00
Marin Salinas
0d5ce8b9b9
feature: add chroot build cancel function implementation
2019-07-18 09:39:07 -07:00
Marin Salinas
30d5b1f7c2
feature: add chroot builder configuration
2019-07-18 09:39:07 -07:00
Marin Salinas
0c47ee55e6
feature: add chroot builder structure
2019-07-18 09:39:07 -07:00
Marin Salinas
6e6e518095
fix: change image id on bsu acceptance test
2019-07-18 09:39:07 -07:00
Marin Salinas
52621a3dd2
chore: remove unencrypted work in log when image is creating
2019-07-18 09:39:07 -07:00
Marin Salinas
a4966d9823
add ExpectedRunDevice constant
2019-07-18 09:39:07 -07:00
Marin Salinas
c4e69d3169
wip: add bsu plugin acc testing
2019-07-18 09:39:07 -07:00
Marin Salinas
4779b028f1
feature: bsu, run implementation add artifact
2019-07-18 09:39:07 -07:00
Marin Salinas
972dcc2b25
feature: bsu, run implementation add steps after createOMI step
2019-07-18 09:39:07 -07:00
Marin Salinas
83c9a3d4c8
feature: bsu, run implementation add createOMI step
2019-07-18 09:39:07 -07:00
Marin Salinas
4847e79b8d
feature: bsu, run implementation add steps before createOMI step
2019-07-18 09:39:07 -07:00
Marin Salinas
1c8e9a7dd8
feature: bsu, run implementation add step prevalidate
2019-07-18 09:39:07 -07:00
Marin Salinas
4c04df26fd
feature: bsu, cancel function implementation
2019-07-18 09:39:07 -07:00
Marin Salinas
85d601dd81
feature: bsu, prepare function and test
2019-07-18 09:39:07 -07:00
Marin Salinas
91bdf5c212
feature: bsu, builder structure and test
2019-07-18 09:39:07 -07:00
Marin Salinas
d2d794f6dc
fix: undefined variable correction
2019-07-18 09:39:07 -07:00
Marin Salinas
996ee89397
change amis to omis in artifact
2019-07-18 09:39:07 -07:00
Marin Salinas
ae444a3250
fix: change the debugKeyPath name in osc bsusurrogate builder
2019-07-18 09:39:07 -07:00
Marin Salinas
1c69d55a1f
feature: bsusurrogate, run implementation add artifact
2019-07-18 09:39:07 -07:00
Marin Salinas
3bcebc1af6
feature: bsusurrogate, add CreateTags step
2019-07-18 09:39:07 -07:00
Marin Salinas
2c4b2b8657
feature: bsusurrogate, add StepUpdateOMIAttributes step
2019-07-18 09:39:07 -07:00
Marin Salinas
b46636a39b
feature: bsusurrogate, add RegisterOMI step
2019-07-18 09:39:07 -07:00
Marin Salinas
9c63f4cd92
feature: bsusurrogate, add DeregisterOMI step
2019-07-18 09:39:07 -07:00
Marin Salinas
871df8be85
feature: bsusurrogate, add StepUpdateBSUBackedVm and StepSnapshotVolumes step
2019-07-18 09:39:07 -07:00
Marin Salinas
09b899bb84
fix: change name to keypair key path file
2019-07-18 09:39:07 -07:00
Marin Salinas
52962f2355
feature: bsusurrogate, add stop bsu backed vm step
2019-07-18 09:39:07 -07:00
Marin Salinas
3ed7c7ff33
feature: bsusurrogate, add provision and cleanup temp keys step
2019-07-18 09:39:07 -07:00
Marin Salinas
957bdae441
feature: bsusurrogate, add clean connect step
2019-07-18 09:39:07 -07:00
Marin Salinas
b0c4784b96
feature: bsusurrogate, add clean get password step
2019-07-18 09:39:07 -07:00
Marin Salinas
1df7f15f53
fix: namming in step keypair
2019-07-18 09:39:07 -07:00
Marin Salinas
7ef09bba13
feature: bsusurrogate, add clean volumes and run source vm step
2019-07-18 09:39:07 -07:00
Marin Salinas
5ef3e81234
feature: bsusurrogate, add security group step
2019-07-18 09:39:07 -07:00
Marin Salinas
cef9a4b9fd
feature: bsusurrogate, add network info step
2019-07-18 09:39:07 -07:00
Marin Salinas
c24ee2c9ca
feature: bsusurrogate, add keypair step
2019-07-18 09:39:07 -07:00
Marin Salinas
e4405a0c02
feature: bsusurrogate, add Source network Info step
2019-07-18 09:39:07 -07:00
Marin Salinas
fdd3b594b9
fix: add function to validate if image name exists
2019-07-18 09:39:07 -07:00
Marin Salinas
33d1671e4c
feature: bsusurrogate, add Source OMI Info step
2019-07-18 09:39:07 -07:00
Marin Salinas
3d8b0e5228
fix: change logs in omi config
2019-07-18 09:39:07 -07:00
Marin Salinas
1281f28f6d
add prevalidate step
2019-07-18 09:39:07 -07:00
Marin Salinas
de973fba0e
chore: add Bsusurrogate Run function skeleton
2019-07-18 09:39:07 -07:00
Marin Salinas
ca8ab3b5b0
feature: implement Prepare function in bsusurrogate builder
2019-07-18 09:39:07 -07:00
Marin Salinas
24d1d886f8
feature: add root volume run tags config to bsusurrogate config struct
2019-07-18 09:39:07 -07:00
Marin Salinas
837aada415
feature: add root block device config to bsusurrogate config struct
2019-07-18 09:39:07 -07:00
Marin Salinas
f6372e8ac6
feature: add omi config to bsusurrogate config struct
2019-07-18 09:39:07 -07:00
Marin Salinas
bb848366b6
feature: add block devices config to bsusurrogate config struct
2019-07-18 09:39:07 -07:00
Marin Salinas
be36a2159e
feature: add run config to bsusurrogate config struct
2019-07-18 09:39:07 -07:00
Marin Salinas
1c3939fcd3
add access config to bsusurrogate config struct
2019-07-18 09:39:07 -07:00
Marin Salinas
c1fc2801ef
add access_config struct and test
2019-07-18 09:39:07 -07:00
Marin Salinas
c29816f496
chore: add bsusurrogate builder structure
2019-07-18 09:39:07 -07:00
Megan Marsh
e658a50880
refactored step_ami_region_copy to fix bugs and clarify assumptions; added more tests for that step.
...
fix race condition caused by variable declaration outside of loop
2019-07-18 09:39:06 -07:00
Megan Marsh
42f7cbc30b
add code to deduplicate the region list, and to make sure that the original region's kms key id is in the map.
2019-07-18 09:39:06 -07:00
John-Paul Robinson
038e9f316c
Clean patch formatting with make fmt
2019-07-17 17:10:52 -05:00
John-Paul Robinson
5fe9f3980d
Fix #7171 : select instance network on which to assign floating ip
...
Add config parameter instance_floating_ip_net to control
floating ip assignment for a multi-homed instances. This ensures
the floating ip can be correctly assigned to the instance port
that is connected to the preferred network for floating ip assignment.
This avoids the default first-returned selection method which may
choose a network to which floating ip's can't be assigned,
e.g. because that network is not reachable from the floating ip
network.
2019-07-17 17:00:28 -05:00
Megan Marsh
6b1a407e2a
Merge pull request #7870 from hashicorp/fix_7673
...
Fix bugs in region encryption, copy, skipping logic
2019-07-17 14:07:37 -07:00
Megan Marsh
54d2ad5028
refactored step_ami_region_copy to fix bugs and clarify assumptions; added more tests for that step.
...
fix race condition caused by variable declaration outside of loop
2019-07-17 11:30:20 -07:00
Megan Marsh
2d02ea209d
Merge pull request #7836 from 70k10/vncpassword
...
QEMU builder - implement VNC password functionality
2019-07-16 16:37:49 -07:00
Jayson Cofell
7f5fd4851e
QEMU: Remove QMPEnable and depend upon VNC password usage for QMP enablement.
2019-07-16 08:56:22 -06:00
Vladislav Rassokhin
991cf22504
Prevent endless reading of closed file in vmware plugin
2019-07-16 16:02:57 +03:00
Megan Marsh
39a4da4d07
add code to deduplicate the region list, and to make sure that the original region's kms key id is in the map.
2019-07-11 16:56:40 -07:00
Jayson Cofell
4b0a7b0af7
Fix QEMU fmt miss
2019-07-10 13:12:31 -06:00
Jayson Cofell
f1ad385669
Change QMP socket test to join with filepath
2019-07-10 12:55:44 -06:00
Megan Marsh
327cd67557
fix tests
2019-07-09 15:42:48 -07:00
Megan Marsh
4a9d42b78f
use box_name instead of source_path when generating vagrant file
2019-07-09 15:26:04 -07:00
Megan Marsh
a87ce366b3
Merge pull request #7835 from hashicorp/google_oauth
...
replace some bespoke google auth code with code from golang's oauth2 …
2019-07-08 09:48:27 -07:00
Megan Marsh
8315da6a12
Merge pull request #7837 from amydutta/master
...
Fix bug while publishing SIG destination id for every managed image
2019-07-08 09:41:14 -07:00
Megan Marsh
7d48eab11e
Merge pull request #7841 from hbdgr/digitalocean_timeout
...
builder/digitalocean: increase timeout for Digital Ocean snapshot creation.
2019-07-08 09:40:14 -07:00
hbdgr
6a8f45123a
test for snapshotTimeout option
2019-07-04 16:28:09 +02:00
hbdgr
7d723b7c7b
builder/digitalocean: add snapshotTimeout option
2019-07-04 16:25:42 +02:00
hbdgr
750e4b0f31
builder/digitalocean: increase timeout for waitForActionState
2019-07-04 09:55:13 +02:00
Li Kexian
b4e70cc0ec
fixed tencentcloud builder error strings
2019-07-04 12:15:31 +08:00
Amrita Dutta
4c09dfde87
Fix bug while publishing SIG destination id for every managed image
2019-07-04 00:44:05 +00:00
Jayson Cofell
5c5943b8ba
Add VNC Password support to QEMU builder
2019-07-03 18:38:56 -06:00
Jayson Cofell
afe9ba2869
QEMU: Initial QMP support
2019-07-03 18:33:59 -06:00
Megan Marsh
ba66d5d857
Merge pull request #7831 from hashicorp/fix_ssh_interface
...
Revert "move SSHInterface/SSHIPVersion fields to communitator.Config …
2019-07-03 16:23:00 -07:00
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
Pratyush singhal
6c8421e802
fix: fix volumes.Delete method call
...
Signed-off-by: Pratyush singhal <psinghal20@gmail.com>
2019-07-01 12:56:00 +05:30
Pratyush singhal
cf8bfa56f0
fix: set openstack image metadata with use_blockstorage_volume
...
Signed-off-by: Pratyush singhal <psinghal20@gmail.com>
2019-07-01 12:56:00 +05:30
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