In triaging https://bugs.launchpad.net/cloud-init/+bug/1854594 i found that system_info can actively change which distro class is picked:
system_info: default_user: lock_passwd: true name: root shell: /bin/bash distro: ubuntu
will use distro/__init__.py's create_user() and hence lock_passwd() methods!
If this is a feature, it should be documented. If this is a bug, it needs fixing.
In triaging https:/ /bugs.launchpad .net/cloud- init/+bug/ 1854594 i found that system_info can actively change which distro class is picked:
system_info:
lock_passwd: true
default_user:
name: root
shell: /bin/bash
distro: ubuntu
will use distro/ __init_ _.py's create_user() and hence lock_passwd() methods!
If this is a feature, it should be documented.
If this is a bug, it needs fixing.