Set password for root/user when creating VM

Hi everyone
Imagine I have a centos or ubuntu template. I set some variables for that image in context. for instance create a user named “cloud_user” , PASSWORD_BASE64 and add the ssh key of the VM creator for that user. so sunstone user is able to ssh to the server as “cloud_user” with its own ssh_key and that password .
the problem is the password for any VM that is created from that template are the same.
what I need is to provide a way to user to input desired password or ssh_key when he/she is trying to create VM from that template.
I have tried to ask PASSWORD_BASE64 as a user input but it doesn’t work and the password is saved as a clear text value in VM Attributes.

1 Like