nodejitsu/pkgcloud — pull request #58 by stammen (2012-12-07 23:35:56+00:00)
Title: Azure bootstrap fixes

This branch contains a few minor bug fixes to azure code.

1. The azure server object was using the wrong ip address for the public ip address. It is well hidden in the response from azure. We now use the ip address of the first endpoint. This fix enables ssh access to the vm using the public ip address of the server.

2. core/compute/bootstrapper.js only looks at .pub files for public ssh key. I added a check for .pem extension. Azure uses x509 certificates for ssh keypairs. If we are going to use this code to bootstrap servers we need to look at making this code more flexible in how it determines whether a file is a public key. For example, using something like this in the options...

"keypair" : {"public" : "/path/to/public/file", "private" : "/path/to/private/file" }