SpectroCloud/MAAS
Jump to navigation
Jump to search
MAAS Information
MAAS Install
vi /etc/netplan/50-cloud-init.yaml netplan apply hostnamectl set-hostname MAAS apt update -y apt install nfs-common net-tools -y snap install oras --classic snap install docker snap install k9s echo "172.16.85.15:/Download /nfs/Download nfs vers=4.0 0 0" >> /etc/fstab systemctl daemon-reload mkdir -p /nfs/Download mount -a snap install maas maas init region+rack --database-uri 'postgres://maas:[email protected]/maas-new' maas createadmin --username=admin [email protected]
Upload Spectro Images to MAAS
# SCP Files to MAAS Server scp $IMAGE_NAME.tar.gz [email protected]:/home/ders/
#Login to MAAS Server ssh [email protected] export IMAGE_NAME='u-2004-0-k-1321-fips' export MAAS_IP='172.16.84.39' ### API Key is found @ http://172.16.84.39:5240/MAAS/r/account/prefs/api-keys export MAAS_API_KEY='ZmT5y4KK5wBESpNvZs:FS6aHBn34Taz4QVm6B:n9thshcRPTjcPNx82wQUgwbwnfJFhjK6' maas login maas http://$MAAS_IP:5240/MAAS/api/2.0 $MAAS_API_KEY maas maas boot-resources create name=custom/$IMAGE_NAME architecture=amd64/generic content@=/home/ders/$IMAGE_NAME.tar.gz title=$IMAGE_NAME
Deploy MAAS PCG
#Create VM with 4CPU and 8G of Memory and 50G Disk and Networking to VLAN-2 #PXE Boot the VM. This should register it with MAAS. #In MAAS Commission the VM and add the Power Configuration.
#On a separate vm (TEMP-VM) Download the Palette-CLI. wget --no-check-certificate https://software.spectrocloud.com/palette-cli/v4.5.4/linux/cli/palette -O /usr/bin/palette chmod +x /usr/bin/palette wget --no-check-certificate https://ders-gitlab.dersllc.com/ders/spectro-sa/-/raw/main/maas-pcg/palette-cli-config.yaml -O palette-cli-config.yaml palette login -c palette-cli-config.yaml --api-key 'NmZlMzFjMTljYmZlZTY2YzMyMjBmY2MzMmU5ZDAzZDc=' --org ders-lab --console-url https://vertex.dersllc.com wget --no-check-certificate https://ders-gitlab.dersllc.com/ders/spectro-sa/-/raw/main/maas-pcg/pcg.yaml -O pcg.yaml palette pcg install -f pcg.yaml #Once complete this VM can be deleted.
Other
us-docker.pkg.dev::harbor.dersllc.com/spectro-images docker.io::harbor.dersllc.com/spectro-images/docker.io gcr.io::harbor.dersllc.com/spectro-images/gcr.io ghcr.io::harbor.dersllc.com/spectro-images/ghcr.io k8s.gcr.io::harbor.dersllc.com/spectro-images/k8s.gcr.io registry.k8s.io::harbor.dersllc.com/spectro-images/registry.k8s.io quay.io::harbor.dersllc.com/spectro-images/quay.io *::harbor.dersllc.com/spectro-images/*