MAAS: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
Line 1: Line 1:
  sudo snap install maas --channel=3.3/stable
  sudo snap install maas --channel=3.3/stable
  sudo snap install maas
  sudo snap install maas
==PostgreSQL==
----
<source lang="bash">
sudo apt install postgresql postgresql-contrib
sudo systemctl enable postgresql
sudo systemctl status postgresql
sudo systemctl start  postgresql
sudo systemctl daemon-reload
</source>
<source lang="sql">
sudo -i -u postgres psql << DDL
CREATE USER ${MAAS_DBUSER} WITH ENCRYPTED PASSWORD '${MAAS_DBPASS}'
DDL
</source>
<source lang="bash">
sudo -i -u postgres bash << EOF
createdb -O ${MAAS_DBUSER} ${MAAS_DBNAME}
EOF
</source>


==Knowledge==
==Knowledge==

Revision as of 19:02, 16 March 2023

sudo snap install maas --channel=3.3/stable
sudo snap install maas

PostgreSQL


sudo apt install postgresql postgresql-contrib
sudo systemctl enable postgresql
sudo systemctl status postgresql
sudo systemctl start  postgresql
sudo systemctl daemon-reload
sudo -i -u postgres psql << DDL
CREATE USER ${MAAS_DBUSER} WITH ENCRYPTED PASSWORD '${MAAS_DBPASS}'
DDL
sudo -i -u postgres bash << EOF
createdb -O ${MAAS_DBUSER} ${MAAS_DBNAME}
EOF

Knowledge

install:
sudo snap install maas --channel=3.3
upgrade:
sudo snap refresh maas --channel=3.3
sudo snap install maas-test-db
sudo maas-test-db.psql

sudo maas init --help

References