Commit Graph

567 Commits (bbd64896a0341909dcc593babb429b86d2e4f296)

Author SHA1 Message Date
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 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 21a849354b fix hook data loading
6 years ago
Megan Marsh a125f81fba add some more comments
6 years ago
Megan Marsh 82367a88f8 reorganize placeholder data call to live with provisioner implementation; force users to use the generated function, therefore forcing validation, for all variables except winrmpassword, by doing a simple string check against the placeholder data.
6 years ago
Megan Marsh ac570e0cc0 store ssh public and private keys on shared info
6 years ago
Megan Marsh 88d4ce37c9 template functioin to let Provisioners access PACKER_RUN_UUID
6 years ago
Megan Marsh 84063d2132 implement ID and Type values in the provisioner template info sharing
6 years ago
Megan Marsh e1652696a6 Rather than using reflection to grab the whole SSH config, for now just use the config convenience functions to get the majority of needed values
6 years ago
Megan Marsh 3389d843f0 update all provisioners that used the winrmpassword tooling to use the new generateddata option
6 years ago
Megan Marsh 39fd462b56 change all provision func signatures to use map[string]interface{}
6 years ago
Megan Marsh 5d266b20d0 generated func now validates based on data provided in context, which needs to include the future values if it is to be interpolated properly.
6 years ago
Megan Marsh 528b853178 stub out generated func for validation
6 years ago
Megan Marsh 7616fbcf3f skip shell local for now
6 years ago
Megan Marsh 6f418d0e54 get data sharing to a working state with the powershell provisioner
6 years ago
Megan Marsh f4c3501af5 pass struct of generated data into provision() call
6 years ago
Sylvia Moss 096cab9b48 Fix floppy doc markdown typo (#8458)
6 years ago
Megan Marsh 76bfaf9da8
Merge pull request #8394 from hashicorp/fix_iso_target_path
6 years ago
Megan Marsh a8ffa60b46 remove the already-included packer config from top level struct
6 years ago
Megan Marsh 7d4353864f use shell struct in shell-local provisioner and post-processor.
6 years ago
Megan Marsh cf0130b9ed pick up dropped error
6 years ago
Megan Marsh 9fc8ed02ae Don't cache when TargetPath is non-nil; this messes up use of the iso_target_path iso template option.
6 years ago
Megan Marsh ae184fe31d ask for VM by name to reduce looping.
6 years ago
nywilken 3522e13b1e provisioner/shell: Add `env_var_format` support to shell provisioner
6 years ago
Adrien Delorme c0db000dc3
Merge pull request #8310 from alrs/resuscitate-common-floppy-tests
6 years ago
Lars Lehtonen 5926997a31
common: remove unused test function getDirectory()
6 years ago
Lars Lehtonen 9a90aa67e6
common: resuscitate TestStepCreateFloppy_missing()
6 years ago
Lars Lehtonen 8e2885e626
common: resuscitate TestStepCreateFloppy_notfound()
6 years ago
Adrien Delorme 819329228a Change back to make sure all durations are a time.Duration
6 years ago
Adrien Delorme bf3d9841c6 Force durations to be passed a strings
6 years ago
Megan Marsh a783a09ea3
Merge pull request #8269 from paulmey/paulmey/generalize-chroot
6 years ago
Paul Meyer 3be7d81ce2 Move common steps together
6 years ago
Paul Meyer e6dfe301ac Move CommandWrapper & ShellCommand to common
6 years ago
Lars Lehtonen 731e0332cf common: collect dropped error
6 years ago
Megan Marsh d15f43e4eb
Merge pull request #8232 from hashicorp/artifact-tree
6 years ago
Megan Marsh e5becfc854
Merge pull request #8248 from marcinbojko/master
6 years ago
Marcin Bojko 1b4ffe546f
hyper-v fix for compacting vhdx/vhd only
6 years ago
Adrien Delorme cf1555bf17 Merge remote-tracking branch 'origin/master' into artifact-tree
6 years ago
Vladimír d6994df188
Select first adapter attached to host OS's switch
6 years ago
Adrien Delorme 078ba7c8c3 commit old code generation tool
6 years ago
Adrien Delorme 7be94f41a6 common.shell-local: unexport Ctx field
6 years ago
Davor Kapsa 49e4a2d9ef
Add error check
6 years ago
Megan Marsh 843986c2d4 missing bracket
7 years ago
Megan Marsh 59efa0faee rename option to error-cleanup-privisoner, which I think is clearer
7 years ago
Megan Marsh 5bd8fee708 Creates a final "cleanup" provisioner to run if an error occurs during a provisioning step, allowing users to perform any custom cleanup tasks that must happen on the VM before the VM is shut down and destroyed.
7 years ago
Adrien Delorme 299544a4c7 Merge remote-tracking branch 'origin/master' into scrape_doc_to_builder_struct_config
7 years ago
Lars Lehtonen a98f2d2170
common: fix dropped errors and warnings in test
7 years ago
Adrien Delorme 3fe9d52e3f Merge remote-tracking branch 'origin/master' into scrape_doc_to_builder_struct_config
7 years ago