This repository contains the necessary automation scripts to deploy:
- A MAAS server.
- An LXD daemon registered in the MAAS server as a VM host.
- The proper networking configurations to allow VM connectivity.
- A Juju controller running on a MAAS-provisioned VM.
If you do not have access to the SE cloud, or do not know what it is, you can follow the Support Engineering docs to get access.
Once you have access, you can create a beefy VM with the needed configs and volumes using the helper script.
bash scripts/ps6-stg-reproducers-vm.sh upSSH into the VM you just created.
vm_ip=$(bash scripts/ps6-stg-reproducers-vm.sh show-ip)
ssh ubuntu@$vm_ipClone the repo.
git clone https://github.com/peterctl/virtual-maas
cd virtual-maasInstall dependencies.
sudo apt update
sudo apt install ansibleModify variables.yaml as needed.
Run the playbook.
ansible-playbook deploy-environment.yaml \
-i inventory.yaml \
-e @reference-variables/ps6-stg-reproducers.yamlAfter the playbook completes, MAAS should be ready to create VMs, and Juju should be ready to deploy models.