Commit Graph

44 Commits (05fcecb1e714abfd39abe61b93cee7a9de3fb24f)

Author SHA1 Message Date
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
Matthew Hooker 81522dced0
move packer to hashicorp
9 years ago
Matthew Hooker 0149f679de
Print instead of Printf with no dynamic first variable.
9 years ago
DanHam 370b67497e
provisioner/powershell: Don't over complicate removal of tmp output file
9 years ago
DanHam 21be983855 provisioner/powershell: Use system context env var to set output file path
9 years ago
DanHam c88fafdf38 provisioner/powershell: align, fix and compact env var test
9 years ago
DanHam 4122f3a897 provisioner/powershell: Remove env var check - we already check in Prepare
9 years ago
DanHam 80ebcea5e1
Mirror cleaner test code back from windows-shell to powershell
9 years ago
Matthew Hooker 480398c3d2
only set PACKER_HTTP_ADDR if a server is listening
9 years ago
Matthew Hooker 6563eb213c
Document. add to windows-shell and powershell
9 years ago
DanHam 0423f91037
Fix to allow equals sign in value of environment variable
9 years ago
DanHam be0196492f
Tests for env variables values starting with or containing an equals sign
9 years ago
Taliesin Sisson f38d787b0e Powershell uses UTF16Le for encodedCommand
10 years ago
Taliesin Sisson e36051d394 Pattern for infrastructure changed to quote filename and execute file with ampersand as everything is run in powershell now
10 years ago
Taliesin Sisson d61513bf77 Encode powershell using utf8
10 years ago
Taliesin Sisson 17597b48e1 Base64 encode powershell to avoid any necessary escaping
10 years ago
Taliesin Sisson 5d5809b27e Make hiding of progress backward compatible with old versions of powershell
10 years ago
Taliesin Sisson e8c2b49be8 Use correct quotation of variables
10 years ago
Taliesin Sisson 4b394c8563 Write output will put ouput from function, so we don't want to be getting line from output of function
10 years ago
Taliesin Sisson c42cb88ddd Using Write-Output instead of Write-Host since PS v5 now leaks the host stream to stderr
10 years ago
Taliesin Sisson cd6213eb55 Seems like we do need to escape the double quote
10 years ago
Taliesin Sisson 15137310a7 Must escape string formatting for string fmt
10 years ago
Taliesin Sisson 5285a819dd Quoting of powershell commands and associated tests
10 years ago
Taliesin Sisson 3051ea6633 Quote powershell so that it does not try to interpret command to be run
10 years ago
Taliesin Sisson 6c3030c73a Add a little safety around variables that are passed into provisioner.
10 years ago
Rickard von Essen f17bd30070 Revert "Removed escaped quotes in non-elevated powershell invocation"
10 years ago
Simon Guest 1b186f1613 Removed escaped quotes in non-elevated powershell invocation
10 years ago
Gonzalo Peci 21107b0027 Fix wrong command type being used when running elevated provisioner.
11 years ago
Mitchell Hashimoto 7c8e86c9c5 provisioner/*: fix interpolation context
11 years ago
Mitchell Hashimoto ab6a330d86 provisioner/*: fix go vet
11 years ago
Mitchell Hashimoto 040ff0706d provisioner/powershell
11 years ago