Hi @istringer, you’re right we need a bit more documentation on the --cloud-init
usage, we have a dedicated page planned for it.
Why do you say /etc/cloud/cloud.cfg
is not YAML? In any case, that’s not where you want to add cloud metadata.
Have a look at upstream cloud-init documentation, but specifically for creating users this is the simplest use with Multipass:
$ mp launch --cloud-init - <<EOF
users:
- default
- name: ${USER}
ssh_authorized_keys:
- $( cat ~/.ssh/id_rsa.pub )
EOF