packer-cn/provisioner
Aidan Feldman b894c925d1
make user retrieval for Ansible provisioner more robust
Previously, the Ansible provisioner would look for the username from the
`USER` environment variable. Unfortunately, this is not always set -
particularly in Docker containers. It's very confusing to understand why
the error is happening.

Switched to using Go's built-in `os/user` package for retrieving the
current username. @rickard-von-essen had done this in 7369841, but
moved away from it in d59844f because, at the time, it wasn't possible
to use that library with cross-compilation. This was fixed in Go in

795e712b72
2018-01-03 02:52:41 -05:00
..
ansible make user retrieval for Ansible provisioner more robust 2018-01-03 02:52:41 -05:00
ansible-local ansible-local: Add ability to clean staging directory. 2017-11-21 21:09:01 +01:00
chef-client Changes Linux install URL to omnitruck. Changes powershell install to use omnitruck rather than hard-coded 32-bit url 2017-11-28 14:23:12 -08:00
chef-solo use flag -version instead of -v to install chef-solo on Windows 2017-09-18 09:43:02 -05: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 Fix tests post changes 2017-09-26 11:07:26 +01: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 remove racy reuse of single buffer for remotecmd stderr/out. 2017-11-09 15:22:47 -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 revert to using UI becuase the remote command syntax breaks things on linux with vmware fusion. 2017-12-07 09:08:12 -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