terraform/communicator/ssh
Paul Hinze 96c20f0dd7
communicator/{ssh,winrm}: seed random script paths
Without a seed, the "random" script path locations for the remote-exec
provisioner were actually deterministic!

Every rand.Int31() would return the same pseudorandom chain starting w/
the numbers: 1298498081, 2019727887, 1427131847, 939984059, ...

So here we properly seed the communicators so the script paths are
actually random, and multiple runs on a single remote host have much
less chance of clobbering each other.

Fixes #4186

Kudos to @DustinChaloupka for the correct hunch leading to this fix!
2016-06-29 09:32:24 -05:00
..
communicator.go communicator/{ssh,winrm}: seed random script paths 2016-06-29 09:32:24 -05:00
communicator_test.go communicator/{ssh,winrm}: seed random script paths 2016-06-29 09:32:24 -05:00
password.go Fix import formatting across code base 2016-04-18 17:28:46 -07:00
password_test.go Fix import formatting across code base 2016-04-18 17:28:46 -07:00
provisioner.go Add SSH agent support for Windows 2015-12-15 16:39:23 +01:00
provisioner_test.go ssh: accept private key contents instead of path 2015-11-12 14:59:14 -06:00