Commit Graph

3938 Commits (37f474ceca8198b646da500ecc88997cf261ee6d)

Author SHA1 Message Date
Megan Marsh c3144c2d0a add some missing template validation (copied from iso builder) and revert to current use of displayName for parsing vm ssh IP; using VMName was breaking chained builds that hadn't updated the display name from the previous build.
8 years ago
Megan Marsh c3d6d45696 modify test so that it accesses CommConfig the same way we really do within the driver
8 years ago
Megan Marsh f18bb19f96 remove redundant config; CommConfig was already a part of the SSSHConfig struct
8 years ago
Megan Marsh fa12113eaf remove unused NewLocalArtifact
8 years ago
Adrien Delorme 3f288fc6ca aws client: config.WithMaxRetries(8)
8 years ago
Megan Marsh daf1f39930
Merge pull request #6918 from hashicorp/oracle_classic_volumes
8 years ago
Matthew Hooker 3ff038d4d1
remove todo
8 years ago
bozhi.ch c3a60ad0ce add options for system disk properties
8 years ago
Matthew Hooker 42cd3e4bf7
Warn if not a pv build but builder image entry is set. cleanup
8 years ago
chbell43 653fa2298f use guard clauses
8 years ago
Mikhail Ushanov 4608b5d39d amazon: add option for skipping TLS verification
8 years ago
chbell43 ea78cb62fd Make the config.networkV2Client conditional
8 years ago
Matthew Hooker eb976894fc
cleanup
8 years ago
Matthew Hooker c697c9d3de
cleanup
8 years ago
Matthew Hooker f322397413
add config tests
8 years ago
Matthew Hooker 6d6d262308
some final fixes and documentation work
8 years ago
Matthew Hooker 4eba1ee724
remove unused config key
8 years ago
Matthew Hooker 03932f1157
Clean up volumes
8 years ago
Matthew Hooker e2a0cbf7df
move upload script to const
8 years ago
Matthew Hooker 7331d6fc7f
some final clean up
8 years ago
Matthew Hooker ab4f205bf6
correctly building linux/windows now
8 years ago
Matthew Hooker 09de194d8e
trying to wrap the base communicator config but it needs to be prepared
8 years ago
Matthew Hooker ab5e964ca6
Connecting to master instance but not builder
8 years ago
Matthew Hooker ade396e140
don't echo image creation commands
8 years ago
Matthew Hooker 3e966ae38d
make fmt
8 years ago
Matthew Hooker 86f6cf478a
cleanup
8 years ago
Matthew Hooker 6f729d0265
Adding some missing configuration
8 years ago
Matthew Hooker c42be62d90
fix identifier changes from oracle sdk
8 years ago
Matthew Hooker bbb0d450f1
todo
8 years ago
Matthew Hooker be91c99d29
warn about dangling segments.
8 years ago
Matthew Hooker ce30e1053e
wip
8 years ago
Matthew Hooker 9f310045fc
split image upload/creation. clean up
8 years ago
Matthew Hooker 420d0ebe3e
fix artifact generation
8 years ago
Matthew Hooker 84bb5d2f6f
create image list
8 years ago
Matthew Hooker fa54a64d28
WIP
8 years ago
Matthew Hooker b84c7df9da
Segments going into per-run subfolder
8 years ago
Matthew Hooker b5c6beb8a3
don't delete segments. registering works now.
8 years ago
Matthew Hooker 705fa976a8
more debugging
8 years ago
Matthew Hooker 2536790e0a
todo
8 years ago
Matthew Hooker 7a35e2408f
fix pty, some todo and refactor of bash scri[t
8 years ago
Matthew Hooker fc301601e1
actually delete temp container
8 years ago
Matthew Hooker cd77d00fd8
delete temporary image container
8 years ago
Matthew Hooker 21f786d686
todo and some clean up. correct values for machine image
8 years ago
Matthew Hooker b222d36669
use 2x volume size
8 years ago
Matthew Hooker 7c577abbcb
WIP: register machine image.
8 years ago
Matthew Hooker 8207ba4fa4
Use jq to create manifest. Upload to compute_images
8 years ago
Matthew Hooker 96e62236ec
upload volume WIP
8 years ago
Matthew Hooker 8598e2d0a3
WIP
8 years ago
Matthew Hooker bf7c4a7ad6
wip
8 years ago
Matthew Hooker 445c3fb5bb
cleanup temp keys
8 years ago
Matthew Hooker 098764d8ac
WIP
8 years ago
Matthew Hooker 2db0a03142
image upload WIP
8 years ago
Matthew Hooker 265ee0b0b8
add whitespace
8 years ago
Matthew Hooker 7c26ffef9c
builder instance now runs and is connected to
8 years ago
Matthew Hooker b3ffa975c3
Revert "add boot volume to builder instance"
8 years ago
Matthew Hooker 2febfa2c7d
attach volume after instance booted
8 years ago
Matthew Hooker b68f214ca4
add boot volume to builder instance
8 years ago
Matthew Hooker ca3bffcb0d
bugfix and some debug logging
8 years ago
Matthew Hooker 00ff187d77
master instance working
8 years ago
Matthew Hooker e271e88b49
oracle-classic variable volume size WIP
8 years ago
Adrien Delorme f4fbf45349 remove duplicate region check error
8 years ago
Adrien Delorme 16aa21dffe aws: better error handling of region guessing from metadata
8 years ago
Megan Marsh 2ae235a28a fix tests
8 years ago
Megan Marsh 290f4a7c4c cleanup to make it actually build after that monstrous rebase
8 years ago
Alexander Laamanen 3193f50f17 Support export with the vmx builder.
8 years ago
Alexander Laamanen a68a639a1a Move step_export to common.
8 years ago
Alexander Laamanen 63054fb808 Fix the test.
8 years ago
Stuart Miller da5f322484 Add quotes around all filenames to prevent issues with spaces
8 years ago
Alexander Laamanen f42f5a8ad3 Remove some extra logging.
8 years ago
Alexander Laamanen e7e6a80587 No need to make upload public.
8 years ago
Alexander Laamanen c294e65c36 A separate driver file is not really needed anymore
8 years ago
Alexander Laamanen 2ed6c3ef5e Set output dir always according to the config.
8 years ago
Alexander Laamanen c940f7e754 Conditional reload.
8 years ago
Alexander Laamanen 17845beadc Fix the CommHost tests
8 years ago
Alexander Laamanen 5e74bcfb88 Fix tests, move remote_ default values to driver_config.
8 years ago
Alexander Laamanen 4d9cb19012 Refactor artifacts and output_dir implementations.
8 years ago
Alexander Laamanen 2d00dc6756 Add VMName to the vmx mods.
8 years ago
Alexander Laamanen 7b5943160b Re-enable the CommHost() call. Use common's driver factory.
8 years ago
Alexander Laamanen ba22090bc9 Move step_register and step_uload_vmx from iso to common.
8 years ago
Alexander Laamanen b5298464c5 Move the remote_driver from iso to common.
8 years ago
Alexander Laamanen 91c7089455 Implement the first version of the remote Clone().
8 years ago
Alexander Laamanen 46cfb5a30c Move driver_esx5 to commons and allow it to be instantiated wtih NewDriver()
8 years ago
Megan Marsh c7b938c9d4
Merge pull request #6904 from hashicorp/fix_6890
8 years ago
Adrien Delorme 8908a72fa9 builder/hyperv/vmcx: allow to set generation from buildfile
8 years ago
Adrien Delorme ed793a8fb8 make ValidateRegion a member of *AccessConfig and make it variadic
8 years ago
Megan Marsh fe044d8ff7 fix tests
8 years ago
Megan Marsh 340009009d Revert "Revert "Merge pull request #6892 from hashicorp/fix_6890""
8 years ago
Megan Marsh 0cd3f36d50 Revert "Merge pull request #6892 from hashicorp/fix_6890"
8 years ago
Megan Marsh 1c4062c316
Merge pull request #6892 from hashicorp/fix_6890
8 years ago
Megan Marsh 0924a316b7 fix template-set credentials
8 years ago
Megan Marsh cdd99564fd
Merge pull request #6891 from hashicorp/fix_6794
8 years ago
Megan Marsh 091efae8bb
Merge branch 'master' into misc
8 years ago
Megan Marsh fd8a85042d use strconv.Quote instead of fmt.Sprint
8 years ago
Megan Marsh 18c5e8deb8 fix
8 years ago
Megan Marsh 1e4133cbf9 quote upload path
8 years ago
Megan Marsh 3f591d78f3 quote vmx path in register function
8 years ago
Megan Marsh 8cba32d526 escape all the d.sh calls that contain paths
8 years ago
Megan Marsh 5b9adc0c48 single quotes
8 years ago
Megan Marsh 9573013d3a
Merge pull request #6872 from aspectcapital/disable-ena-support
8 years ago
Megan Marsh 9fe27c225b
Merge pull request #6703 from shield-9/wait_volume
8 years ago
Matt Dainty feb8067c7d Convert `ena_support` to a pointer
8 years ago
Josh Soref b68168807a Miscellaneous doc improvements
8 years ago
Megan Marsh 57f87f58b9
Merge pull request #6374 from rickard-von-essen/aws-filters
8 years ago
Megan Marsh 3175dcdf81
Merge pull request #6807 from dev-rowbot/qemu-net-device-6804
8 years ago
Megan Marsh c5b6eff691
Merge pull request #6871 from LKaemmerling/master
8 years ago
Lukas Kämmerling e4a670d2a2 Remove Debug Message
8 years ago
Adrien Delorme 29d041ea8a
Merge pull request #6858 from hashicorp/tests_race_detector
8 years ago
Lukas Kämmerling bad1b95a49 Unify steps, fix some typos
8 years ago
Megan Marsh fd89d4f020
Merge pull request #6827 from skish/qemuDiskZero
8 years ago
Megan Marsh 2266514408
Merge pull request #6843 from gmmephisto/pr-master-aws-security-group
8 years ago
Megan Marsh e7d3a30c0e
Merge pull request #6865 from hashicorp/fix_6862
8 years ago
Mikhail Ushanov 00c96fc400 aws: use IpPermissions for authorizing temporary security group
8 years ago
Mikhail Ushanov b316be51cd aws: wait for temporary security group before authorizing
8 years ago
Megan Marsh b0cfecf314 remove unnecessary valid flag
8 years ago
Matt Dainty 9e0fae9db3 Add support to explicitly disable ENA support
8 years ago
Adrien Delorme 410bee0666 make TestStepShutdown_shutdownDelay less strict on schedule
8 years ago
Lukas Kämmerling 270110767c
Add hcloud Builder
8 years ago
Adrien Delorme af3b818de0 TestBuilderPrepare_ISOChecksumType: set config["switch_name"] = "switch" to avoid using builder.detectSwitchName which can lock down in CI mode
8 years ago
Adrien Delorme 0237956e66 builder/virtualbox/common/step_shutdown_test.go: compare durations instead of floats & ouput duration
8 years ago
Adrien Delorme 1ca21499c6 Revert "make builder/hyperv/vmcx/builder_test.go invisible to windows"
8 years ago
Adrien Delorme b80a0fed42 make builder/parallels/common/output_config_test.go invisible to windows
8 years ago
Adrien Delorme e692dee2d8 make builder/hyperv/vmcx/builder_test.go invisible to windows
8 years ago
Megan Marsh d4767845f0 fix tests
8 years ago
Megan Marsh 7c3f0aa3b2 make sure region validation catches authentication errors
8 years ago
Mikhail Ushanov ee133482b4 aws: add validation for device_name parameter
8 years ago
Adrien Delorme 8a6c55dd69 make builder/hyperv/iso/builder_test.go invisible to windows
8 years ago
Matthew Aynalem 28eff7303e builder/googlecompute: validate startup_script_file exists
8 years ago
Megan Marsh cdc6c57b31
Merge pull request #6822 from hashicorp/fix_6774
8 years ago
Megan Marsh f5af2afc06
Merge pull request #6818 from hashicorp/fix_6732
8 years ago
Megan Marsh f331327f24
Merge pull request #6823 from hashicorp/fix_6794
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
Christopher Boumenot 520dea23fd
Merge pull request #6798 from mbearup/mb-sharedgallery
8 years ago
mbearup de8d30d77c Update tests for Azure Shared Image Gallery
8 years ago
Konstantin Shloma fe341e2bd0 fix go source formatting
8 years ago
Konstantin Shloma 1155347b55 add qemu disk detect-zeroes= option
8 years ago
mbearup c7180413b0 Fix tests for Shared Image Gallery
8 years ago
Megan Marsh e5e75df033 fix datastore path that contains spaces
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
Megan Marsh 895e7fe111
Merge pull request #6812 from hashicorp/remove_unused_processPrivateKeyFile
8 years ago
Megan Marsh 02bfac118f default wait time for amazon import to one hour.
8 years ago
Megan Marsh f494d87dc5
Merge pull request #6747 from hashicorp/fix_6743
8 years ago
Adrien Delorme b2e2d3b008 removed unused processPrivateKeyFile func & tests
8 years ago
Rowan Potgieter 65db6be6b9 Fix for #6804
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
Adrien Delorme f44dfcc62f
Merge pull request #6727 from hashicorp/fix_6723
8 years ago
Adrien Delorme 146db5667a fix intermitent TestProcessPrivateKeyFile_encrypted failure
8 years ago
mbearup 55be0da5da Initial changes to support Shared Image Gallery
8 years ago
Adrien Delorme b7b1720a91
Merge pull request #6772 from fflorens/scaleway-add-boottype
8 years ago
Florian Florensa 9ea5104b74 scaleway: add boottype parameter in config
8 years ago
Adrien Delorme 37c6f08abe Revert "Fix bugs"
8 years ago
Adrien Delorme 016b0985a6 builder/openstack: use config as a pointer so values could be set
8 years ago
Adrien Delorme b328d3569d builer/triton: pass config as a pointer so values could be set
8 years ago
Adrien Delorme 22d3e9b5c4 builder/amazon/ebs: pass config as a pointer so values could be populated by a run
8 years ago
mvaude 7f78eef08d scaleway: fix builder problems with ssh keys
8 years ago
Matthew Hooker 9181570bc3
remove stray struct dumps in logs
8 years ago
zhuzhih2017 676b28ecc5
Merge pull request #6764 from chhaj5236/feature/support_disable_stop_instance
8 years ago
zhuzhih2017 f59cde03c4
Merge pull request #6763 from chhaj5236/fix/invalid_type_convert
8 years ago
bozhi.ch bb19cdeb55 support disable_stop_instance option for some specific scenarios
8 years ago
bozhi.ch 1f3a517a19 fix type error in step_create_tags
8 years ago
Rickard von Essen 838d5021f5 openstack: use source_image_name to find UUID
8 years ago
Daisuke Takahashi 3b8aba2d24 OpenStack: wait for volume availability when cleaning up
8 years ago
Megan Marsh d616f0ba71 abort if image import fails
8 years ago
Daisuke Takahashi c848f59a55 Check condition for image_disk_format option
8 years ago
Daisuke Takahashi b7bd3d4b34 OpenStack: Change option name to `image_disk_format`
8 years ago
Daisuke Takahashi 904dd1df63 Add disk_format option for OpenStack builder
8 years ago
Megan Marsh b0774d155a
Merge pull request #6512 from sharmaanshul2102/5786-use-describe-regions-for-validation-aws
8 years ago
Megan Marsh 79093da6ad skip region validation in tests that don't care; refactor Prepare func so we can test region validation logic with a mock
8 years ago
Adrien Delorme 9ba959598b
Merge pull request #6729 from hashicorp/fix_ssh_digitalocean
8 years ago
zhuzhih2017 9e3e2e83ae
Merge pull request #6720 from chhaj5236/fix/attach_keypair
8 years ago
Megan Marsh 93f1155a14 remove test-related special casing
8 years ago
bozhi.ch 3c312eb2a0 change b.config to pointer
8 years ago
Adrien Delorme 5389ab1694 pass config as a pointer so that ssh configuration is correctly set
8 years ago
Anshul Sharma ef3c10c403 Modify Validate Region for test cases
8 years ago
Anshul Sharma 98f13eaf29 Use DescribeRegions for aws region validation
8 years ago
Megan Marsh f4e6d06e68 reset poll delay seconds default to 2 because it can actuall be used in one part of the conditional tree for applyEnvOverrides
8 years ago
chhaj5236 43e091de15
Merge branch 'master' into feature/support_tags
8 years ago
zhuzhih2017 31bbe2983b
Merge pull request #6688 from chhaj5236/feature/support_ssh_private_ip
8 years ago
bozhi.ch b3aae89a53 fix attaching keypair error due to missing keypair name
8 years ago
bozhi.ch b8a3e3b8f4 support adding tags to image
8 years ago
Adrien Delorme fc75449e06
Merge pull request #6713 from hashicorp/cleanup_keys
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
Daisuke Takahashi 02139dcb69 Fix bugs
8 years ago
Adrien Delorme 770f61e682 spot instance creation, only set blockDurationMinutes when > 0
8 years ago
Adrien Delorme 2e73ed8d46 pass Comm instance to fix Spot instance creation
8 years ago
Matt DeBoer 09797df958 use a UI wrapper to auto-decode error messages
8 years ago
bozhi.ch 743be8a808 support ssh with private ip address
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 e02d0dacc4
Merge branch 'master' into aws-filters
8 years ago
Sargun Dhillon 63d784023f Add support to support non-gp2 volume types for building from_scratch
8 years ago
Sargun Dhillon 07ce820c70 Enable setting the volume type when building with the Amazon Chroot builder
8 years ago
Megan Marsh b94e6e913e
Merge pull request #6670 from sargun/fix-ena-on-pv
8 years ago
Adrien Delorme 4682b3a9d2 refactor possible random strings into common/random
8 years ago
Adrien Delorme b80e1d51c6 aws: when building an AMI with 'encrypt_boot: true', randomize the name of the temporary AMI
8 years ago
Adrien Delorme 170b2f3383 builder/azure/common.RandomString-> common/random.String
8 years ago
Sargun Dhillon 902497d6ce Allow users to build hvm images from pv images to have ena_support
8 years ago
Megan Marsh cb35829f80
Merge pull request #6411 from jmartin-r7/esxi_compact
8 years ago
Christopher Boumenot 2e294da82a
Merge pull request #6644 from riezebosch/master
8 years ago
Megan Marsh 349f9ae62b
Merge pull request #6641 from hashicorp/increase_retries
8 years ago
Adrien Delorme 819bda50d5
Merge pull request #6648 from hashicorp/fix_6642
8 years ago
Adrien Delorme 2a2734505b
Merge pull request #6649 from hashicorp/fix_6569
8 years ago
RenaudS 26aab49aaf aws spot instances: add block_duration_minutes option (#6638)
8 years ago
Megan Marsh 4472ecccb0 fix waiters that weren't applying env defaults
8 years ago
Megan Marsh d00b815c06 Update public google cloud image projects
8 years ago
Manuel Riezebosch fcfa54fb1d [azure-arm] retry cleanup individual resources on error
8 years ago
Adrien Delorme 61480f41dc fix some go vet issues in tests ( composite literal uses unkeyed fields )
8 years ago
Jeffrey Martin 1833b4edaf
validate compaction is skipped when not 'thin'
8 years ago
Jeffrey Martin b51cd22b21
document ESXi disk compaction & use verbose option
8 years ago
Jeffrey Martin 09c71f3810
add support for disk compaction to esx5 builder
8 years ago
Megan Marsh 9926988ab7
Merge pull request #6621 from hashicorp/ssh_keys_centralised
8 years ago
Megan Marsh d606339edc
Merge pull request #6635 from hashicorp/fix_6493
8 years ago
Megan Marsh 2b9f937c23 increase max retries from 3 to 20
8 years ago
Adrien Delorme cbbfc6630d scaleway: stop using config from statebag
8 years ago
Adrien Delorme d159c0900b openstack: use config only where needed
8 years ago
Adrien Delorme df9e756865 pass the Comm instance to the amazon ebs builders steps
8 years ago
Adrien Delorme 157691c710 remove unecessary get/pug config in tests; those are being referenced
8 years ago
Adrien Delorme 94d5bb7a3b revert test changes of builder/googlecompute/step_create_ssh_key_test.go
8 years ago
Harvey Lowndes 344e7e8b92 Validation for tag configuration
8 years ago
Harvey Lowndes cc7d4e4a95 Add support for freeform tagging of images
8 years ago
Adrien Delorme 050a98e8bb googlecompute builder: use config from statebag
8 years ago
Adrien Delorme b0c09087a2 move SSHInterface/SSHIPVersion fields to communitator.Config struct
8 years ago
Adrien Delorme cd851f8ac2 use public ssh key & key name from config instead of the statebag
8 years ago
Adrien Delorme 0938b640cc use key pair name from config
8 years ago
Adrien Delorme 1e71712cc9 builder.alicloud: stop using config from statebag
8 years ago
Adrien Delorme 4fdf5714a6 builder.scaleway: use c.Comm for ssh
8 years ago
Adrien Delorme 0f9eddda3a builder.oracle: use c.Comm for ssh
8 years ago
Adrien Delorme 92570a2725 builder.openstack: use c.Comm for ssh
8 years ago
Adrien Delorme 4982627dd2 builder.gcp: use c.Comm for ssh
8 years ago
Adrien Delorme e0e6b0b8f7 builder.cloudstack: use c.Comm for ssh
8 years ago
Adrien Delorme ef4ca9c48e builder.amazon: use c.Comm for ssh
8 years ago
Adrien Delorme dffcbb7a35 builder.alicloud: use c.Comm for ssh
8 years ago
Adrien Delorme 9a9b82715b config.Comm.SSHKeyPair => SSHKeyPairName
8 years ago
Adrien Delorme 3a4bb26150 builder.aws: use key pair from comm struct
8 years ago
Adrien Delorme 293c485372 builder.aws: use SSHAgentAuth from Comm
8 years ago
Adrien Delorme ef08c441c9 builder.aws: use Comm field for StepKeyPair & StepGetPassword
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 25de7ad1f2 PrivateKey => PrivateKeyFile
8 years ago
Adrien Delorme 324c46279b up test
8 years ago
Adrien Delorme 5369c15459 helper: communicator.SSHFileSigner => ssh.FileSigner
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 d49ad12895 update gcp ssh tests
8 years ago
Adrien Delorme 663c8134ef GCP: put ssh public/private key in config
8 years ago
Adrien Delorme 51d2aac9f6 SSHPrivateKey => SSHPrivateKeyFile
8 years ago
Megan Marsh e4f6b6f720 fix chroot communicator to properly escape quotes
8 years ago