Hi All,
In the past i've used the community supplied scripts over at
https://github.com/shankerbalan/cloudstack-scripts for doing injection of
password / ssh keys.
I'm trying to move to cloud-init to handle this for me however I am having
some issues.
I modified my /etc/cloud/cloud.cfg file to use CloudStack as a datasource:
datasource_list: ['CloudStack']
datasource:
CloudStack: {}
I also set the following:
disable_root: False
user: root
ssh_pwauth: True
ssh_deletekeys: True
ssh_genkeytypes: ['rsa', 'dsa']
ssh_svcname: ssh
On booting up the machine I see the script run successfully and pull the
metadata down from the VR. The hostname is also set and new ssh keys are
generated.
On attempting to login as root with the password provided on the Cloudstack
UI I am unsuccessful. I'm unsure why.
Anybody got an idea where I'm going wrong?
Thanks,
Ian