Currently it is only possible to specify cloudinit-userdata via API and not via the UI which hides this functionality from a user. It would be good to have this functionality exposed to provide similar experience to private and public cloud platforms (e.g. OpenStack or AWS allow you to specify userdata before deployment).
Various ways to provide userdata:
- enlistment time (via preseed files in /etc/maas);
- deployment time (api call);
- power-on (api call).
maas maas machine deploy <system_id> user_data=<b64-encoded userdata> maas maas machine power-on <system_id> user_data=<b64-encoded userdata>
Other community feedback from the old LP entry: https://bugs.launchpad.net/maas/+bug/1794080/comments/2