Files
notes-infineon/_-Review/maas.md
2024-06-03 07:04:29 -07:00

1.5 KiB

type, created, updated
type created updated
topic 2024-01-06T01:25:36.043Z 2024-01-06T01:25:36.043Z

MAAS

# https://maas.io/docs/fresh-installation-of-maas
sudo -i
snap install --channel=3.4/edge maas
systemctl disable --now systemd-timesyncd
sudo -i
apt update -y
apt install -y postgresql
mikepharesjr = ___________
1178 = ___________
maas = ___________
localhost = _________
sudo -i -u postgres psql
drop database maas with (force);
sudo -i -u postgres psql -c "CREATE USER \"mikepharesjr\" WITH ENCRYPTED PASSWORD '1178'"
sudo -i -u postgres createdb -O "mikepharesjr" "maas"
cat /etc/postgresql/15/main/pg_hba.conf
nano /etc/postgresql/15/main/pg_hba.conf
host    maas    mikepharesjr    0/0     md5
maas init region+rack --database-uri "postgres://mikepharesjr:1178@localhost/maas"
maas status
maas init --help
maas createadmin
ufw allow from 192.168.0.0/24 comment "04) 192.168.0.0/24"
maas config-tls enable /etc/nginx/localhost.key /etc/nginx/localhost.crt --port YYYY
http://phares3757.ddns.net:5240/MAAS
gh:mikepharesjr
snap stop maas
systemctl stop postgresql.service
~~systemctl stop maas-dhcpd.service~~
~~systemctl stop maas-rackd.service~~
~~systemctl stop maas-regiond.service~~
snap stop maas
snap remove --purge maas
systemctl enable --now systemd-timesyncd
systemctl disable --now systemd-timesyncd
snap install --channel=3.4/edge maas
maas init region+rack --database-uri "postgres://mikepharesjr:1178@localhost/maas"
maas status