2024-06-03
This commit is contained in:
		
							
								
								
									
										75
									
								
								_-Review/maas.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										75
									
								
								_-Review/maas.md
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,75 @@ | ||||
| --- | ||||
| type: "topic" | ||||
| created: "2024-01-06T01:25:36.043Z" | ||||
| updated: "2024-01-06T01:25:36.043Z" | ||||
| --- | ||||
|  | ||||
| # MAAS | ||||
|  | ||||
| ```bash | ||||
| # https://maas.io/docs/fresh-installation-of-maas | ||||
| sudo -i | ||||
| snap install --channel=3.4/edge maas | ||||
| systemctl disable --now systemd-timesyncd | ||||
| ``` | ||||
|  | ||||
| ```bash | ||||
| sudo -i | ||||
| apt update -y | ||||
| apt install -y postgresql | ||||
| ``` | ||||
|  | ||||
| ```postgresql | ||||
| mikepharesjr = ___________ | ||||
| 1178 = ___________ | ||||
| maas = ___________ | ||||
| localhost = _________ | ||||
| ``` | ||||
|  | ||||
| ```bash | ||||
| 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 | ||||
| ``` | ||||
|  | ||||
| ```conf | ||||
| host    maas    mikepharesjr    0/0     md5 | ||||
| ``` | ||||
|  | ||||
| ```bash | ||||
| 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 | ||||
| ``` | ||||
|  | ||||
| ```bash | ||||
| http://phares3757.ddns.net:5240/MAAS | ||||
| gh:mikepharesjr | ||||
| ``` | ||||
|  | ||||
| ```bash | ||||
| snap stop maas | ||||
| systemctl stop postgresql.service | ||||
| ~~systemctl stop maas-dhcpd.service~~ | ||||
| ~~systemctl stop maas-rackd.service~~ | ||||
| ~~systemctl stop maas-regiond.service~~ | ||||
| ``` | ||||
|  | ||||
| ```bash | ||||
| snap stop maas | ||||
| snap remove --purge maas | ||||
| systemctl enable --now systemd-timesyncd | ||||
| ``` | ||||
|  | ||||
| ```bash | ||||
| 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 | ||||
| ``` | ||||
		Reference in New Issue
	
	Block a user