maas-autobuilder/configs/default.config

86 lines
1.9 KiB
Plaintext
Raw Normal View History

external_vlan=1
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
2020-12-23 16:37:26 +00:00
compute="maas-node"
2021-01-03 12:15:12 +00:00
# To enable or disable uEFI for VMs
enable_uefi="false"
2021-01-03 12:15:12 +00:00
# To enable secureboot for VMs
# This in-advertantly enables uEFI
# EXPERIMENTAL/TESTING
2021-01-03 12:15:12 +00:00
enable_secureboot="false"
# Juju node count and definition
juju_count=1
juju_cpus=2
juju_ram=4096
juju_disk=20
# Control node count and definition
2021-03-12 16:53:01 +00:00
control_count=2
control_cpus=3
2021-03-12 16:53:01 +00:00
control_ram=10240
2020-12-23 16:37:26 +00:00
# Compute node definition
node_start=1
node_cpus=2
node_ram=4096
# Dynamically generate the node count
# The amount of memory add on 10% then divide by node_ram then add 1
# 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} + (7*7/10) ))
# Disks to create on each VM
2020-12-23 16:37:26 +00:00
disks=()
disks+=(150)
disks+=(20)
disks+=(20)
# The network type, you have to options, bridge and network
# Bridge, will then assign each interface to the bridged identified in
# the bridges array.
# Network, will assign each interface to the virsh network that has been
# defined in the networks array.
network_type=bridge
2020-12-23 16:37:26 +00:00
# The vlans for each of the bridges if that is defined.
vlans=()
vlans+=(300)
vlans+=(301)
vlans+=(302)
vlans+=(303)
vlans+=(304)
vlans+=(305)
vlans+=(1)
# The bridges by default that will be used
bridges=()
bridges+=("br0")
bridges+=("br1")
bridges+=("br2")
bridges+=("br3")
bridges+=("br4")
bridges+=("br5")
bridges+=("br6")
# The subnets
subnets=()
subnets+=("10.0.1")
subnets+=("10.0.2")
subnets+=("10.0.3")
subnets+=("10.0.4")
subnets+=("10.0.5")
subnets+=("10.0.6")
subnets+=("192.168.1")