Update default_config

My maths was a bit off for node_count
Start of soemthing to enable legacy or uefi based VMs
This commit is contained in:
Arif Ali 2021-01-02 11:44:16 +00:00
parent be82cea841
commit b5c731d57a
Signed by: arif
GPG Key ID: 369608FBA1353A70

View File

@ -9,6 +9,10 @@ storage_path="/var/lib/libvirt/maas-images"
# Node prefix for all the nodes except for juju
compute="maas-node"
# The BIOS type you want to use for the VMs
# Valid values "legacy", "uefi"
bios_type=uefi
# Juju node count and definition
juju_count=1
juju_cpus=1
@ -30,7 +34,7 @@ node_ram=4096
# For a 32GB machine we'll get 10 VMs altogether
# 1 x 4GB juju, 1 x 8GB controler, 8 x 4GB compute
# The juju VM is not included in the count
node_count=$(( `cat /proc/meminfo | grep -i memtotal | awk '{print $2}'` * 11 / 10 / 1024 / 1024 / $node_ram / 1024 + 1 ))
node_count=$(( `cat /proc/meminfo | grep -i memtotal | awk '{print $2}'` * 11 / 10 / 1024 / $node_ram + 1 ))
# Disks to create on each VM
disks=()