How to set ssh key during rebuild?
I am using pyrax to automate rebuild a server and set the ssh key during the rebuild process. The key does not get set.
I created my key like so:
with open(os.path.expanduser("~/.ssh/id_rsa.pub")) as keyfile: cs.keypairs.create("my_key", keyfile.read())
I kick off the rebuild like this:
staging_server.rebuild(ubu_image, password=os.environ['RAX_PASS'], key_name="my_key")
The server gets build but the key does not get set. What do I need to do to pass the key to my linux (ubuntu 12.04) server.