SpectroCloud/MAAS: Difference between revisions

From DER's LLC
Jump to navigation Jump to search
Line 18: Line 18:
  wget --no-check-certificate https://software.spectrocloud.com/palette-cli/v4.5.4/linux/cli/palette -O /usr/bin/palette
  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
  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
  wget --no-check-certificate https://ders-gitlab.dersllc.com/ders/spectro-sa/-/raw/main/maas-pcg/pcg.yaml -O pcg.yaml

Revision as of 20:47, 9 January 2025

MAAS Information

Upload Spectro Images to MAAS

export IMAGE_NAME='u-2004-0-k-1305-fips'
export MAAS_IP='172.16.84.32'
### API Key is found @ http://172.16.84.32:5240/MAAS/r/account/prefs/api-keys
export MAAS_API_KEY='QEsrBQnKbrty7kP9d3:XCugUZPMqzeNUHSXtQ:S4QtELuSEAd5WrbJrhkZTLQqsCBvjgjG'

scp scp $IMAGE_NAME.tar.gz [email protected]:/home/ders/
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.