canonical / microcloud

Automated private cloud based on LXD, Ceph and OVN
https://microcloud.is
GNU Affero General Public License v3.0
272 stars 40 forks source link

Better question sequence #368

Open masnax opened 1 month ago

masnax commented 1 month ago

I've been thinking of using https://github.com/charmbracelet/bubbletea to revamp the microcloud init command sequence a bit

One possible idea is having submenus rather than a sequence of questions, like this: https://github.com/charmbracelet/bubbletea/tree/master/examples#multiple-text-inputs

But instead of text inputs, we can put the storage & network questions behind these labelled submenus:

> Setup local storage
> Setup distributed storage
> Setup distributed network
> Print summary (as preseed?)
> Deploy MicroCloud

This would make the setup a bit clearer, and incompatibilities like incorrectly configured network interfaces can be noticed immediately rather than halfway down the question sequence. As well, if something is misconfigured, Deploy MicroCloud can error out and return to the submenu selection page so the user can fix the configuration.

roosterfish commented 1 month ago

Looks great. Another feature that would be handy for the new password input as part of trust establishment is auto completion. Do you know if this is supported?

We can use a wordlist that contains only words with unique first two characters. So typing the password on the other side would be very convenient.