git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cloudstack reset VM password files


Hi,

I can also highly recommend cloud-init. We use it for our templates as well. There is also a Windows analogue of it (https://cloudbase.it/cloudbase-init/) that I recently used to finally get password functionality to work properly on Windows Server 2016.


Simon Völker

Fraunhofer-Gesellschaft e.V.
Schloss Birlinghoven
53754 Sankt Augustin
Telefon: +49 2241 14-2311
E-mail: simon.voelker@xxxxxxxxxxxxxxxx<mailto:simon.voelker@xxxxxxxxxxxxxxxx>



Am 07.11.2018 um 09:55 schrieb Yordan Kostov <Yordan.Kostov@xxxxxxxxxxxxxxxxx<mailto:Yordan.Kostov@xxxxxxxxxxxxxxxxx>>:

Thank you René,

I will take it from here and test it. Some documentation will be on the way as well.

Best regards,
Jordan

-----Original Message-----
From: Rene Moser [mailto:mail@xxxxxxxxxxxxx]
Sent: Wednesday, November 7, 2018 10:46 AM
To: users@xxxxxxxxxxxxxxxxxxxxx<mailto:users@xxxxxxxxxxxxxxxxxxxxx>
Subject: Re: cloudstack reset VM password files

Hi

Nowadays the cloud-init [1] project supports cloudstack out of the box and we switched our templates to only use cloud-init.

Unfortunately the docs regarding cloudstack is not that great (it is on my list to give back my finding). There are some great docs here https://wiki.archlinux.org/index.php/Cloud-init.

Our config under config dir /etc/cloud/cloud.cfg.d/ has two files

- 80_root.cfg
- 99_cloudstack.cfg

80_root.cfg contents is...

system_info:
 default_user:
   name: root
disable_root: 0
ssh_pwauth: 1

...and 99_cloudstack.cfg looks like...

datasource:
 CloudStack: {}
 None: {}
datasource_list:
 - CloudStack

Note that cloud-init has a ton of great features beside the support of cloudstack.

Hope that helps

René

[1] https://cloudinit.readthedocs.io/en/latest/