Feature request: Default username and password for machine
Bug #1808707 reported by
Israel
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
Hello,
I want to share with you a situation that can happen with MaaS deployed servers: Sometimes, when you lose connection to the server, you want to connect to it with some console port or ILO or something like that. But MaaS is not configuring any username or password, so you basically have to reboot the server and hope for the best. It could be nice to have some kind of username and password to connect - it can be user defined or randomly generated and only the admin of MaaS can see it.
So, what do you say?
To post a comment you must log in.
Thanks for the suggestion. While MAAS does not support this natively it does support custom cloud-init user-data scripts. You can create a cloud-init script which adds users[1] and pass it to MAAS using the CLI as follows
$ maas $PROFILE deploy $SYSTEM_ID user_data=$(base64 $SCRIPT)
[1] https:/ /cloudinit. readthedocs. io/en/latest/ topics/ examples. html#including- users-and- groups