Cloud-init and RANDOM passwords

bindi

Member
Jul 5, 2021
26
3
23
31
Hey, when using user:RANDOM password in a custom.yaml, is it possible to get the output of the passwords set to the task status window in the webgui?

The config works, but I have to be fast to attach to the VM on a first boot to catch the passwords. I'm aware that I should use public keys, but this is just at home and for friends who need quick VMs.

YAML:
#cloud-config
hostname: debian12-cloudinit
manage_etc_hosts: true
fqdn: debian12-cloudinit
chpasswd:
  list: |
    debian:RANDOM
    root:RANDOM
  expire: True
users:
  - default
package_upgrade: true