From 809256cfd68c6af6b59cd1000d90cc133775bc8b Mon Sep 17 00:00:00 2001 From: Arif Ali Date: Thu, 18 Mar 2021 08:32:54 +0000 Subject: [PATCH] Update node_count, and work towards new disk config --- configs/default.config | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configs/default.config b/configs/default.config index f54b9e2..0f38b51 100644 --- a/configs/default.config +++ b/configs/default.config @@ -5,6 +5,7 @@ qemu_password="SgUoBByKjG9Lj78SwfWAHXD8DvgE67Cu" virsh_user="virsh" storage_path="/var/lib/libvirt/maas-images" +ceph_storage_path="/var/lib/libvirt/ceph-maas-images" # Node prefix for all the nodes except for juju compute="maas-node" @@ -38,7 +39,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}'` - ( ${control_count} * ${control_ram} * 1024 )) * 11 / 10) / 1024 / ${node_ram} + (4*8/10) )) +node_count=$(( (( `cat /proc/meminfo | grep -i memtotal | awk '{print $2}'` - ( ${control_count} * ${control_ram} * 1024 )) * 11 / 10) / 1024 / ${node_ram} + (7*7/10) )) # Disks to create on each VM disks=()