packer-cn/provisioner
DanHam 478589abec
Extend upload and subsequent 'dot sourcing' of env vars to std PS command
* Wrap funcs to flatten and upload env vars with new func prepareEnvVars.
  While the wrapped funcs could be combined, keeping them separate
  simplifies testing.
* Configure/refactor std and elevated PS to use new funcs to prepare,
  upload and dot source env vars.
* Dot sourcing the env vars in this way avoids the need to embed them
  directly in the command string. This avoids the need to escape the env
  vars to ensure the command string is correctly parsed.
* Characters within the env vars that are special to PS (such as $'s
  and backticks) will still need to be escaped to allow them to be
  correctly interpreted by PS.
* The std and elevated PS commands now inject env vars into the remote
  env via the same mechanism. This ensures consistent behaviour across the
  two command types.

Fixes #5471
2018-02-08 12:03:18 +00:00
..
ansible Small typo correction 2018-02-07 19:47:01 -08:00
ansible-local Fix #5335 2017-12-14 14:00:52 +01:00
chef-client tests and docs for #5831 2018-01-31 13:08:25 -08:00
chef-solo run goimports 2018-01-22 17:21:10 -08:00
converge typo 2017-12-18 20:21:26 +00:00
file move packer to hashicorp 2017-04-04 13:39:01 -07:00
powershell Extend upload and subsequent 'dot sourcing' of env vars to std PS command 2018-02-08 12:03:18 +00:00
puppet-masterless test, document, cleanup puppet guest codde 2017-10-03 11:39:33 -07:00
puppet-server Fix facterVar separator bug reported in #5338 2017-09-14 11:35:54 +10:00
salt-masterless run goimports 2018-01-22 17:21:10 -08:00
shell rephrase log message. 2017-10-26 10:41:49 -07:00
shell-local move packer to hashicorp 2017-04-04 13:39:01 -07:00
windows-restart add workaround for azure bug. 2018-02-07 11:34:18 -08:00
windows-shell clean up ineffectual assignments 2017-08-07 13:20:01 -04:00
guest_commands.go run gofmt 2016-11-01 14:08:04 -07:00
guest_commands_test.go go fmt 2016-02-08 17:34:06 -08:00