Commit Graph

304 Commits (2dbfef57504d06ac27909297f2e97656956213b0)

Author SHA1 Message Date
William Brooks efa9d94d8e use raw string around regex to make go lint happy
6 years ago
William d246d0c82a
More testing (#4)
6 years ago
William b5b190b1f0
Bootdevice testing (#3)
6 years ago
William Brooks 723a9eba9a really, really, really fix driver_mock
6 years ago
William Brooks 11fae17308 again, really fix driver_mock
6 years ago
William Brooks 2de731453f really fix driver_mock this time
6 years ago
William Brooks 0a0fbfc33b fmt
6 years ago
William Brooks dd8f4370c6 initial support for gen2 and fix driver_mock
6 years ago
William Brooks 5e1e4ec701 fmt && generate
6 years ago
William Brooks d7300f4635 Remove legacy_boot and replace with first_boot_device (initial)
6 years ago
William Brooks 61f5f867eb make generate
6 years ago
William Brooks 9891e75f75 update hyper-v driver_mock.go
6 years ago
William Brooks 31622b50ac applied fmt
6 years ago
William Brooks 7152732597 changing SetBootDvdDrive messaging to be truthful
6 years ago
William Brooks 55ae803852 Add Hyper-V support for Gen-1 boot order with ISO
6 years ago
Megan Marsh d252a24b82 allow user to set winrm_host override like we do ssh_host override
6 years ago
Sylvia Moss dc31bad539
Sharing info with post-processors via artifact (#8632)
6 years ago
Megan Marsh 90bdcf58bd update step_download to return an ActionContinue if the URls field is empty. this allows us to simplify the hyperv builder, and is still safe because all other builders and uses of step_download already validate that the iso url is not empty if that's what they need, most of them inside of the IsoConfig prepare function.
6 years ago
Adrien Delorme f1e6f8eac1 removed unused config puts
6 years ago
Adrien Delorme 4b7132c87c Merge remote-tracking branch 'origin/master' into sharing_info
6 years ago
Adrien Delorme 0785c2f6fc
build using HCL2 (#8423)
6 years ago
Megan Marsh 0f6d1beccf add an extra string array to the Prepare() return values in the builder interfaces; this sets up the ability for builders to give the provisioners custom user-accessible build-time variables.
6 years ago
Megan Marsh 84063d2132 implement ID and Type values in the provisioner template info sharing
6 years ago
Adrien Delorme 819329228a Change back to make sure all durations are a time.Duration
7 years ago
Adrien Delorme bf3d9841c6 Force durations to be passed a strings
7 years ago
Megan Marsh 0cb098b713 regenerate code because of hyperv refactor
7 years ago
Megan Marsh eccdb44e3b
Merge pull request #8246 from hashicorp/fix_8089
7 years ago
Megan Marsh 34f5bfa498 regenerated things
7 years ago
Megan Marsh e439dd039b fix tests
7 years ago
Megan Marsh fe5ea886a2 refactir hyperv builders to remove duplicated config and prepare code
7 years ago
Megan Marsh eb7bce0728 add additional disk size option to hyperv-vmcx
7 years ago
Adrien Delorme 078ba7c8c3 commit old code generation tool
7 years ago
Davor Kapsa 50262ba0b8
Remove explicit err var declaration
7 years ago
Adrien Delorme 299544a4c7 Merge remote-tracking branch 'origin/master' into scrape_doc_to_builder_struct_config
7 years ago
Adrien Delorme 3fe9d52e3f Merge remote-tracking branch 'origin/master' into scrape_doc_to_builder_struct_config
7 years ago
allinwait 171c2a9a07 add the floppy label option
7 years ago
Adrien Delorme 4cb7c30987 Merge remote-tracking branch 'origin/master' into scrape_doc_to_builder_struct_config
7 years ago
William L. Brooks be4ca4b666 Move hyper-v host ip determination earlier in steps, connect to Hyper-V vm prior to issuing the start operation.
7 years ago
Megan Marsh 8bca6b7cba
Merge pull request #7785 from dhirschfeld/patch-1
7 years ago
Dave Hirschfeld 2a284dffa0
Bump MaxRamSize to 1TB
7 years ago
Megan Marsh 29bff0975f clarify pathing requirements for hyperv-vmcx
7 years ago
Dave Hirschfeld 96a3ef1465
Set MaxRamSize to 64GB
7 years ago
Adrien Delorme 4c1abf828c
Merge branch 'master' into scrape_doc_to_builder_struct_config
7 years ago
Adrien Delorme c11ef90cb6 use interpolate.NewContext() instead of testConfigTemplate(t)
7 years ago
Adrien Delorme 2dc300c02e hyperv-iso: use partial docs
7 years ago
Adrien Delorme 926c8bbaa6 refactor ShutdownConfig into a single struct
7 years ago
Megan Marsh daddb65da8 add tests
7 years ago
Megan Marsh 2e821da84b check to make sure a vm-name isn't already in use before trying to launch a vm with said name.
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
Megan Marsh 73205f3a91 add keep_registered option to hyperv
7 years ago
Adrien Delorme f555e7a9f2 allow a provisioner to timeout
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
Megan Marsh b3c6dd0baa fix tests
7 years ago
Megan Marsh bcacd331c3 change cpu to cpus and ram_size to memory in order to bring hyper v into line with other builder defaults
7 years ago
Adrien Delorme 5a6dffde9a use port as ints
7 years ago
Adrien Delorme 9f82b75e57 Use the hashicorp/go-getter to download files
7 years ago
Yaakov 0a08920816 Hyper-V: Fix integer overflows in 32-bit builds
7 years ago
Megan Marsh 97a791389a deduplicate step_output_dir and move to common folder
7 years ago
Adrien Delorme 9f7b4ffc17
Merge branch 'master' into pr/6950
7 years ago
Adrien Delorme 19cbb9cb24
Merge pull request #7136 from hashicorp/fix_5984
7 years ago
Ladar Levison 217028b902 Added comment regarding use of host param.
7 years ago
Ladar Levison 8a9962882c Use Printf not Println. D'oh.
7 years ago
Ladar Levison 35aaf44fa5 A properly formatted hyperv ssh.go file.
7 years ago
Ladar Levison cb0011d665 Fix ssh_host bug in hyper-v builders.
7 years ago
Megan Marsh 006682a09c add version option and also refactor powershell script to use golang templates for ease of testing and variable passing.
7 years ago
Ladar Levison bdcbf61ade Fixed replace variable name.
7 years ago
Ladar Levison fa154f5298 Fixed driver mock up formatting.
7 years ago
Ladar Levison 31d03fb48e Added legacy network adapter driver mock up.
7 years ago
Ladar Levison da8b140bca Fix Hyper-V builder formatting.
7 years ago
Ladar Levison 348c267054 Updated support for legacy network adapters on Hyper-V.
7 years ago
Megan Marsh b95123f457 add new copy_in_compare flag so users can set the copy var to whatever they need in order to get the compatibility report to work.
7 years ago
Adrien Delorme b7222d1f56 Add tmp package that offers Dir & File funcs
7 years ago
Adrien Delorme 8908a72fa9 builder/hyperv/vmcx: allow to set generation from buildfile
8 years ago
Adrien Delorme 410bee0666 make TestStepShutdown_shutdownDelay less strict on schedule
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 1ca21499c6 Revert "make builder/hyperv/vmcx/builder_test.go invisible to windows"
8 years ago
Adrien Delorme e692dee2d8 make builder/hyperv/vmcx/builder_test.go invisible to windows
8 years ago
Adrien Delorme 8a6c55dd69 make builder/hyperv/iso/builder_test.go invisible to windows
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 c5b346b07b
Merge pull request #6393 from DanHam/fix-hyperv-export
8 years ago
Megan Marsh 340363a649
Merge pull request #6613 from hashicorp/merge_ssh_config_funcs
8 years ago
Megan Marsh 31d4f8af45 use a time.Duration instead of a hardcoded ms
8 years ago
Megan Marsh 918db58604 added new template variables to replace PACKER_KEY_INTERVAL with tunable key and keygroup intervals depending on driver used
8 years ago
Adrien Delorme 41f6e0334d refactor all copy pasted sshConfig with into communicator.Config.SSHConfigFunc
8 years ago
DanHam da21c25791
Convert incorrect 'vmxc' -> 'vmcx' in codebase, docs and template opts
8 years ago
DanHam 674bad0ab4
Break very long lines for readability
8 years ago
DanHam 2bb5a92755
Fix error in comment due to copy/paste from VMware step
8 years ago
DanHam 36bd2f5691
Fix an error with an error. Add some comments.
8 years ago
DanHam ee0a2469eb
Add ability to specify 'temp_path' for the build directory to VMCX builder
8 years ago
DanHam 8032c8151a
Tests for step to create output directory
8 years ago
DanHam f027585a93
Tests for step to create build directory
8 years ago
DanHam ed5bebfa8c
Change variable/statebag key name to better convey purpose
8 years ago
DanHam 00276f2f64
Change step name to better illustrate purpose of step
8 years ago
DanHam b386e567db
Change filename to better illustrate purpose of step
8 years ago
DanHam d2390f464d
Actually implement the function for the driver
8 years ago
DanHam 181bb0ba23
Add calling code and skeleton driver to make tests pass
8 years ago
DanHam 0a4ec13323
Tests for func to move VHDs to output dir when skip_export: true
8 years ago