mitchellh/vagrant — pull request #907 by jhf (2012-04-30 13:46:48+00:00)
Title: Feature private key paths

I have added a feature to allow "private_key_paths" in addition to "private_key_path".
This allows specification of multiple private keys.
I have also added unit tests for both "private_key_path" and "private_key_paths".

The rationale for this feature is to allow "vagrant up" to use the insecure key, until a puppet script runs
than replaces the vm key with the developers own key.
Then for "vagrant ssh" it will try both keys, but only the secure key will work.

In our project we can then use the following in "Vagrantfile"
```ruby
Vagrant::Config.run do |config|
# ...
config.vm.define :default do |vm_config|
# ...
vm_config.ssh.private_key_paths = ["~/.vagrant.d/insecure_private_key","~/.ssh/id_rsa"]
end
end
```

And now the developer can use both insecure or own private key, with ease.