Arubacloud / pyArubaCloud

Python Interface for ArubaCloud IaaS Service
Apache License 2.0
33 stars 26 forks source link

set_ssh_key when reinitializing smart vm #55

Open bourguig opened 6 years ago

bourguig commented 6 years ago

Hi, I'm wondering if there is a way to set ssh key when reinitializing smart vm using set_ssh_key method on the vm object being reinitialized, by something like this: vm.set_ssh_key(string) Thanks a lot for your thoughts ;)

arubalucalasagni commented 5 years ago

Hi, When you create a smart vm you can set the ssh key, but currently this feature there isn't when reinitializing smart vm because it isn't yet supported.

mz0 commented 5 years ago

... wondering if there is a way to set ssh key when reinitializing smart vm

I've worked around this issue with Ansible's authorized_key module like this: https://github.com/mz0/ansible-do/blob/ca6e487/launch-A.yml#L54