Commit Graph

641 Commits (df913f596b796d32cfec217faef048e7d3c52875)

Author SHA1 Message Date
Megan Marsh dde74232f2
Clearly document all template-engine-enabled options (#8770)
6 years ago
William 807f39284d
Merge pull request #2 from hashicorp/master
6 years ago
Wilken Rivera 9ec8b67392
Add golangci-lint to project (#8686)
6 years ago
Megan Marsh 00dfb79c88
Merge pull request #7627 from hashicorp/inplace_isos
6 years ago
Adrien Delorme 08f394604c Update iso_config.go
6 years ago
Adrien Delorme cc3d941853 iso checksumming: use checksum or checksum url if set to handle all cases
6 years ago
William Brooks 31622b50ac applied fmt
6 years ago
William Brooks 55ae803852 Add Hyper-V support for Gen-1 boot order with ISO
6 years ago
Adrien Delorme 72c2731f7b Update step_download_test.go
6 years ago
Adrien Delorme 973a1ea103 remove comented code
6 years ago
Adrien Delorme f91429f256 fix goimports
6 years ago
Adrien Delorme d45eca5cdc update tests
6 years ago
Adrien Delorme a8e717ae09 ISOConfig.Prepare: fix ChecksumFromFile usage
6 years ago
Adrien Delorme 8e6bad209b try to use isos inplace whatever the os
6 years ago
Chris Cunningham e94ed9a683 update the note about Windows symlinks
6 years ago
Adrien Delorme a19214afeb Allow to use isos in place
6 years ago
Megan Marsh dde7302265
Merge pull request #8689 from hashicorp/fix_8530
6 years ago
Moss f2c8e8491c Fix format
6 years ago
Moss e020da49f3 Add iso file name when targetPath is absolute
6 years ago
Wilken Rivera 561f02cc2f
builder/azure-arm: Update logic for setting subscriptionID (#8685)
6 years ago
Sylvia Moss dc31bad539
Sharing info with post-processors via artifact (#8632)
6 years ago
Moss 0566f1f999 Extract http ip discover to a new step
6 years ago
Sylvia Moss 0b7251a4bb
Share .Device and .MountPath between builders, provisioners and post-processors (#8621)
6 years ago
Sylvia Moss 0677b02e18
Share SourceImageName with provisioners and manifest post-processor (#8603)
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 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
7 years ago
Megan Marsh 7d4353864f use shell struct in shell-local provisioner and post-processor.
7 years ago
Megan Marsh cf0130b9ed pick up dropped error
7 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.
7 years ago
Megan Marsh ae184fe31d ask for VM by name to reduce looping.
7 years ago
nywilken 3522e13b1e provisioner/shell: Add `env_var_format` support to shell provisioner
7 years ago
Adrien Delorme c0db000dc3
Merge pull request #8310 from alrs/resuscitate-common-floppy-tests
7 years ago
Lars Lehtonen 5926997a31
common: remove unused test function getDirectory()
7 years ago
Lars Lehtonen 9a90aa67e6
common: resuscitate TestStepCreateFloppy_missing()
7 years ago
Lars Lehtonen 8e2885e626
common: resuscitate TestStepCreateFloppy_notfound()
7 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 a783a09ea3
Merge pull request #8269 from paulmey/paulmey/generalize-chroot
7 years ago
Paul Meyer 3be7d81ce2 Move common steps together
7 years ago
Paul Meyer e6dfe301ac Move CommandWrapper & ShellCommand to common
7 years ago
Lars Lehtonen 731e0332cf common: collect dropped error
7 years ago
Megan Marsh d15f43e4eb
Merge pull request #8232 from hashicorp/artifact-tree
7 years ago
Megan Marsh e5becfc854
Merge pull request #8248 from marcinbojko/master
7 years ago
Marcin Bojko 1b4ffe546f
hyper-v fix for compacting vhdx/vhd only
7 years ago
Adrien Delorme cf1555bf17 Merge remote-tracking branch 'origin/master' into artifact-tree
7 years ago
Vladimír d6994df188
Select first adapter attached to host OS's switch
7 years ago
Adrien Delorme 078ba7c8c3 commit old code generation tool
7 years ago
Adrien Delorme 7be94f41a6 common.shell-local: unexport Ctx field
7 years ago
Davor Kapsa 49e4a2d9ef
Add error check
7 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
allinwait 34ba03d3cb use printf for logging
7 years ago
allinwait 171c2a9a07 add the floppy label option
7 years ago
Adrien Delorme 597a3e323b Merge remote-tracking branch 'origin/master' into scrape_doc_to_builder_struct_config
7 years ago
Adrien Delorme aa9cc919ab Merge branch 'master' into circle_ci_windows
7 years ago
Adrien Delorme 146b88ba1e Merge remote-tracking branch 'origin/master' into scrape_doc_to_builder_struct_config
7 years ago
DanHam 2b6286c31c
Fix powershell formatting. Match style for conditionals
7 years ago
Adrien Delorme 7ba91b7d25 configure_port_test.go: don't panic when error is not what we expected
7 years ago
Marcin Bojko d4ff29f6c5 hyper-v fix when management interface is not part of virtual switch
7 years ago
Adrien Delorme 4cb7c30987 Merge remote-tracking branch 'origin/master' into scrape_doc_to_builder_struct_config
7 years ago
Megan Marsh cd3b39ad17 commit generated code
7 years ago
Stephen Fox a6830f8348 Move 'ui' variable closer to invocation.
7 years ago
Stephen Fox e362d2f3ee Use 'log.Printf()' for StepDownload debug instead of 'ui.Say()'.
7 years ago
Megan Marsh 90c5da40f2 implement abort logic and printing for the askstep implementation as well
7 years ago
Megan Marsh 54034689ef On abort, return gracefully rather than exiting so that the subprocess doesn't unexpectedly disconnect from the parent and cause a confusing EOF error in the logs
7 years ago
Christian Muehlhaeuser 216afbaa8b
Fixed various typos
7 years ago
Megan Marsh e9549d2688 add test for local fs download
7 years ago
Megan Marsh 197a283b5e actually check for filepath being present
7 years ago
Megan Marsh 64f16474f8 fix double slash conundrum
7 years ago
WilliamB aef77771c0 Correct HTTPIP == FALSE on HyperV builder
7 years ago
Megan Marsh d6d4eb2087 fix some tests and some config behavior to prevent null dereference errors and incorrect precedence between iso checksum and iso checksum url
7 years ago
Megan Marsh 998ef4053f parse checksum file so that we can use the checksums inside in the vmware-esxi builder stepuploadiso
7 years ago
Megan Marsh 88d589cc88 enable smb share double backslash pathing too
7 years ago
Megan Marsh 12471a8b06 use file getter for smb shares
7 years ago
Adrien Delorme 735b34e01f Document the virtualbox-iso builder using partials
7 years ago
Adrien Delorme 4c1abf828c
Merge branch 'master' into scrape_doc_to_builder_struct_config
7 years ago
Megan Marsh 8d25cc578f
Merge pull request #7746 from hashicorp/fix_7671
7 years ago