Commit Graph

180 Commits (dev_version_changes)

Author SHA1 Message Date
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
7 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
Adrien Delorme a77ce59e36 Update provisioner_test.go
7 years ago
Adrien Delorme 72e5ae9ddc use ValidExitCode in provisioners windows-shell, powershell and shell
7 years ago
Adrien Delorme 30a65c858a regroup shell provisioner params into a common struct
7 years ago
Adrien Delorme 9f7b4ffc17
Merge branch 'master' into pr/6950
7 years ago
Megan Marsh 70c6fcb824
Merge pull request #7078 from aspectcapital/issue-5478
7 years ago
Adrien Delorme b7222d1f56 Add tmp package that offers Dir & File funcs
7 years ago
Matt Dainty 19bd28cd72 Fix/add tests
7 years ago
Matt Dainty 2e4b00f59d Refactor powershell provisioner
7 years ago
Megan Marsh e69391f28b save users some bash scripting by exposing IP and port separately as well as together
7 years ago
Matt Dainty 412119c27e Fix powershell provisioner tests
7 years ago
Matt Dainty 3b519acebc Allow Powershell provisioner to use service accounts
7 years ago
Megan Marsh 1d1729a5ff fix powershell tests to use new command
8 years ago
Megan Marsh a81d18cdab explicitly use set-variable to work around a bug some users saw where the command invocation would vail
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
Megan Marsh b35acbd879 use statebag instead of SetSharedState for winRM password
8 years ago
Megan Marsh ff6a039d5b replace scrubconfig with packer.LogSecretFilter.Set
8 years ago
DanHam 485d565e32
Ensure comments are easily readable in a standard terminal
8 years ago
DanHam e0bcba4913
Make the upload of env vars retryable in case of restarts
8 years ago
DanHam b738f41efa
Remove tmp files created by provisioner/powershell tests
8 years ago
DanHam b9ab2c8048
Remove script containing PowerShell inline commands from local tmp when done
8 years ago
DanHam ccf687dac6
Fix tests
8 years ago
DanHam 5419375413
Change to CMD % style path is no longer required
8 years ago
DanHam 5b652316d9
Dollar's in env vars used in paths may cause problems for ssh
8 years ago
DanHam 4e7feea184 Allow users to specify the location that the env vars file is uploaded to
8 years ago
Megan Marsh 3afb243f11 use build name to ensure that winrm password and other shared state is not overwritten if two builders need the password in the same packer run.
8 years ago
DanHam ef4817d644 Fix vertical spacing
8 years ago
DanHam 34db6c4ab1
Remove temp debugging output
8 years ago
Megan Marsh 4e321b2dfa don't need to use a receiver with this function
8 years ago
Megan Marsh ce1ab1f021 fix winrm password
8 years ago
Megan Marsh 559719020c use {{.WinRMPassword}} instead of some other weirdness
8 years ago
Megan Marsh d689e6b4d3 allow users of AWS to use the dynamically-generated admin password which we use as the winRM password as an elevated password in the Powershell provisioner, as well as an environment variable in same provisoner.
8 years ago
Josh Soref 24b4c36fc9 spelling: function
8 years ago
Josh Soref 04d6bfc696 spelling: environment
8 years ago
Megan Marsh f3a538db46 fix tests
8 years ago
Megan Marsh 3faf73b5f3 change backslashes to forward slashes in powershell provisioner; was breaking with cygwin
8 years ago
DanHam 2d830d5d43
Auto escape chars special to PowerShell in user supplied data
8 years ago
DanHam aaf7102b9a
Tests for escape of chars special to PowerShell in user supplied data
8 years ago
DanHam a7b118ed94
Fix tests post changes. Add test for upload func.
8 years ago
DanHam 478589abec
Extend upload and subsequent 'dot sourcing' of env vars to std PS command
8 years ago
Megan Marsh addedbb680 Revert "Merge pull request #5515 from DanHam/dot-source-env-vars"
8 years ago
Megan Marsh 79fe900378 Revert "Merge pull request #5376 from DanHam/ps-escapes"
8 years ago
DanHam 7443adf2fd Simpler escape of chars special to PowerShell in user supplied data
8 years ago
DanHam 68e13c90b1 Revert "Escape chars special to PowerShell in user supplied data"
8 years ago
DanHam b67c64fd66 Tests for escape of chars special to PowerShell in user supplied data
8 years ago
DanHam f3c326bb3c Escape chars special to PowerShell in user supplied data
8 years ago
DanHam 4b89fc1c00
Fix tests post changes. Add test for upload func.
8 years ago
DanHam 5949bc91c4
Extend upload and subsequent 'dot sourcing' of env vars to std PS command
8 years ago
DanHam fa5fd602aa Fix tests post changes
9 years ago
DanHam 8214a12a2a Move append of portion of command used to send elevated PS output to file
9 years ago
DanHam 2a060adbf8 Don't use -EncodedCommand with PS as progress stream always leaks to stderr
9 years ago
DanHam 5374c6e367
Use system context env var to set path for elevated PS env vars file
9 years ago
Matthew Hooker af1187d5e1
simplify a bit
9 years ago
Megan Marsh b05c673a14 Update powershell provisioner test with new default
9 years ago
Megan Marsh cbe1d7d854 simplify file upload for elevated powershell wrapper
9 years ago
Megan Marsh 92e70757bb Move env vars into a file that we dot-source instead of trying to write them all to the command line
9 years ago
Megan Marsh d458628529 exclude elevated_executed_command from config interpolation so it can be used correctly later
9 years ago
Megan Marsh c6889ad009 clarify logging by changing 'shell' to 'powershell' inside of the powershell provisioner
9 years ago
Megan Marsh b2923b4da6 check stdout to make sure echo command actually goes through before counting computer as fully restarted
9 years ago
Megan Marsh 89b058604d update tests for pull 5272
9 years ago
Megan Marsh 5214851463 make every script name unique
9 years ago
Luke Farnell d9a5b69403 clean up ineffectual assignments
9 years ago