I built MAAS using the following procedure.
MAAS *Executed as an ordinary user
[hpcs]
Pre-install dependent packages
sudo apt update
sudo apt install -y software-properties-common curl gnupg2 lsb-release
Add MAAS 3.4 PPA
sudo add-apt-repository ppa:maas/3.4
sudo apt update
Install MAAS package
sudo apt install -y maas
sudo apt install -y curtin
//> install PostgreSQL *pre-installed
//sudo apt install -y postgresql
Create DB
sudo -i -u postgres psql -c “CREATE USER admin WITH ENCRYPTED PASSWORD ‘admin’;”
sudo -i -u postgres createdb -O admin maasadmin
Edit configuration file
sudo vi /etc/postgresql/14/main/pg_hba.conf
host maasadmin admin 0.0.0.0/0 md5
Reload postgresql
sudo systemctl reload postgresql
sudo systemctl status postgresql
Initialize MAAS
sudo maas init
Example)
hpcs@maas:~$ sudo maas init
Configuring authentication
URL for the Canonical RBAC service (leave blank if not using the service):
Path of the Candid authentication agent file (leave blank if not using the service):
Create first admin account
Username: admin
Password:
Again:
Email: dummy@gmail.com
Import SSH keys (lp:user-id or gh:user-id):*Enter
hpcs@maas:~$
Log in to WebUI *DHCP settings
http://192.168.11.18:5240/MAAS
Translated with DeepL.com (free version)