Hi Use this script to handle ssh key and password: https://github.com/apache/cloudstack/blob/fa87510a91f1ed1b346e66e3774df52ed4bf9c98/setup/bindir/cloud-set-guest-sshkey-password-userdata-configdrive.in It supports both dataserver and configdrive. You can use it in cloud-init per-boot directory.
On Mon, May 3, 2021, 11:09 조대형 <[email protected]> wrote: > Hi, all > > As Andrija said, I have studied about Cloud-init thing. > Still don't know how to implement and create the template with cloud-init. > > Can anyone give me some tips or examples ? > > Thanks, > > > > -----Original Message----- > From: Andrija Panic [mailto:[email protected]] > Sent: Thursday, April 29, 2021 5:40 PM > To: users > Subject: Re: Debian/Ubuntu Template password scripts > > The password reset script you tried using was written for init.d, it won't > work on system.d systems (centos7, debian/ubuntu 18+, etc) > > Explore the cloud-init as Christian said - much more powerful (some > learning curve, if not already familiar with it - but it has plugin for > CloudStack, you can also auto-resize partitions after physical (volume) > disk size changed, supports SSH key injection (that ACS provides), etc. > > Cheers, > > On Thu, 29 Apr 2021 at 09:55, <[email protected]> wrote: > > > Hi, > > > > Just go with cloud-init: https://cloudinit.readthedocs.io/en/latest/ > > > > > > Regards, > > Cristian > > > > -----Original Message----- > > From: 조대형 <[email protected]> > > Sent: Thursday, April 29, 2021 10:09 AM > > To: [email protected] > > Subject: Debian/Ubuntu Template password scripts > > > > Hi, All > > > > I tried to make a Debian10.9.0 template. > > > > > > > http://docs.cloudstack.apache.org/en/latest/adminguide/templates/_password > . > > html#adding-password-management-to-templates > > < > http://docs.cloudstack.apache.org/en/latest/adminguide/templates/_password.html#adding-password-management-to-templates > > > > > > > > > > I followed the adding password Management to your templates instruction. > > > > However, It did not work. > > > > > > > > Do you have any ideas? Or anyone faced the same issues? > > > > > > > > Best regards, > > > > > > > > > > > > -- > > Andrija Panić > >
