Commit Graph

141 Commits (poc/packer-init)

Author SHA1 Message Date
Wilken Rivera d72173ac1a Revert "Merge pull request #9040 from hashicorp/powershell-exit-code-fix-4916"
6 years ago
Adrien Delorme 40947c2bf6
HCL2: generate hcl tags with go-cty tags too (#9306)
6 years ago
Wilken Rivera 1e90165a56
Add source URL to test fixture script (#9296)
6 years ago
Megan Marsh fecb040bf4
fix bug where build vars couldn't be properly interpolated into this execute command (#9275)
6 years ago
Wilken Rivera 2e326ef334 Switch back to call operator as opposed to dot sourcing
6 years ago
Wilken Rivera 38f799df3e Add conditional to check if LastExitCode is defined
6 years ago
Wilken Rivera 35df3914d2 provisioner/powershell: Update default execute command to handle script errors
6 years ago
Wilken Rivera 13e0c1a097 tests/provisioner/powershell: Add acceptance test to reproduce issue 4916
6 years ago
Sylvia Moss 1c30a71d09
Replace file shared state by statebag (#9238)
6 years ago
Wilken Rivera c330d2f04c provisioner/powershell: Update cleanup logic
6 years ago
Matt Kotsenas fe55494207
Add `debug_mode` to PowerShell provisioner (#8996)
6 years ago
Adrien Delorme 840e67f775
HCL2: when we see a map generate an attribute spec instead of a block spec (#9035)
6 years ago
Megan Marsh 73c349d09c
Merge pull request #8908 from hashicorp/fix_4795
6 years ago
Lars Lehtonen 49f28c9439
provisioner/powershell: fix dropped error
6 years ago
Wilken Rivera 4a46d6ff7b docs/provisioner/powershell: Add documentation for `skip_clean` option
6 years ago
Wilken Rivera fe721d8e11 test/provisioner/powershell: Add acceptance test for powershell provisioner cleanup
6 years ago
Wilken Rivera 11db6014fa provisioner/powershell: Update remote clean up logic
6 years ago
Wilken Rivera f6a61e2511 provisioner/powershell: Add post clean up step to remove temp script files
6 years ago
Wilken Rivera 1eee0bca5f
Merge pull request #9011 from hashicorp/powershell-acceptance-test
6 years ago
Megan Marsh bdcc95f989
fix execution policy parser to not interfere with legit integers, and add tests (#8997)
6 years ago
Wilken Rivera 360f81b030 tests/provisioners: Add TestProvsionerPreCheck function
6 years ago
Moss 185deeeb38 Fix provisioner acc-test builder and provisioner store
6 years ago
Wilken Rivera b183c5498f provisioner/powershell: Add basic Powershell provisioner acceptance tests
6 years ago
Megan Marsh 9eda2031d2 Remove redundant placeholder (#8503)
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 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 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 0ca7c9f397 fix tests
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
Megan Marsh 7d4353864f use shell struct in shell-local provisioner and post-processor.
6 years ago
nywilken 3522e13b1e provisioner/shell: Add `env_var_format` support to shell provisioner
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
Adrien Delorme 078ba7c8c3 commit old code generation tool
6 years ago
Megan Marsh 0f704fb5b2 These cancel functions have been obsolete since merge of c7ce4d598e
7 years ago
Megan Marsh de7106c36b
Merge pull request #7696 from hashicorp/go_generate_from_makefile
7 years ago
Megan Marsh 4bf75ac0f3 fix null file descriptor error
7 years ago
Adrien Delorme abd6eda6c9 generate execution policy from makefile
7 years ago
Adrien Delorme 478f80af83 remove unused func
7 years ago
Adrien Delorme 7005958155 execution policy: make everything more idiomatic
7 years ago
Adrien Delorme e62aba3788 allow to set ExecutionPolicy to none for powershell provisioner
7 years ago
Adrien Delorme e96409954a add execution policy type and use it to default the powershell cmd
7 years ago
Paul Meyer 814665fddd Check error returned from retry.Config.Run()
7 years ago
Paul Meyer ec14ab4875 Add unit test to find issue #7655
7 years ago
Adrien Delorme d72040f4fa move retry code into the common/retry pkg and make retry context aware
7 years ago
Adrien Delorme f555e7a9f2 allow a provisioner to timeout
7 years ago
Adrien Delorme c7ce4d598e change Provisioner to be passed a context for cancellation
7 years ago