Thread Previous • Date Previous • Date Next • Thread Next |
Hi, On 8/31/21 1:41 PM, André Michel Schulz wrote:
Hello community, I'm getting in touch because they have some questions regarding the configuration of the cloud.cfg file. I have two problems, ssh key and password reset. When resetting the password, when the machine is restarted by cloudstack, cloud init does not set the new password. About the SSH keys, it doesn't inform them correctly. Thus not being able to access via SSH. I use Cloud init together with CloudStack. I have a web portal where I define some information, such as the ssh key. This information is sent to CloudStack, but cloud init is not reading this information correctly. I've already filtered via DHCP request and the information is correct, so I suspect it's a problem with the cloud.cfg file. Attached I leave my configuration file to help in understanding. I'm starting to use cloud init a few months ago, so if I messed up something simple, forgive me in advance.
ssh keys and/or password in cloud-init are handled by the so called data sources. The setting in the config that is relevant is the
datasource_listsetting, which in your case should be "CloudStack". The code is here [1]. Once the data is fetched it gets cached in the instance. The code also has a reference to the doc for CloudStack.
HTH, Robert[1] https://github.com/canonical/cloud-init/blob/main/cloudinit/sources/DataSourceCloudStack.py
*--* Para. / Cumprimentos *André Schulz* *SRE | N1* +55(45) 3326-4568 <callto:+55(45)+3326-4568> +55 (45) 98418-0968 <callto:+55+(45)+98418-0968> andre@xxxxxxxxxxxxxxxx www.brascloud.com.br <https://www.facebook.com/brascloud> <https://www.instagram.com/brascloud/> <https://www.linkedin.com/company-beta/15227203/> <https://twitter.com/bras_cloud>
-- Robert Schweikert MAY THE SOURCE BE WITH YOU Distinguished Engineer LINUX Technical Team Lead Public Cloud rjschwei@xxxxxxxx IRC: robjo
Attachment:
OpenPGP_signature
Description: OpenPGP digital signature
Thread Previous • Date Previous • Date Next • Thread Next |