2020-12-27 10:06:21 +00:00
|
|
|
external_vlan=1
|
|
|
|
|
|
|
|
qemu_password="SgUoBByKjG9Lj78SwfWAHXD8DvgE67Cu"
|
|
|
|
|
|
|
|
virsh_user="virsh"
|
|
|
|
|
|
|
|
storage_path="/var/lib/libvirt/maas-images"
|
2020-12-23 17:08:56 +00:00
|
|
|
|
2020-12-31 12:47:30 +00:00
|
|
|
# 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="true"
|
|
|
|
|
|
|
|
# To enable secureboot for VMs
|
|
|
|
# This in-advertantly enables uEFI
|
2021-01-03 20:32:32 +00:00
|
|
|
# EXPERIMENTAL/TESTING
|
2021-01-03 12:15:12 +00:00
|
|
|
enable_secureboot="false"
|
2021-01-02 11:44:16 +00:00
|
|
|
|
2020-12-31 12:47:30 +00:00
|
|
|
# Juju node count and definition
|
2020-12-28 17:08:10 +00:00
|
|
|
juju_count=1
|
|
|
|
juju_cpus=1
|
|
|
|
juju_ram=4096
|
|
|
|
juju_disk=20
|
|
|
|
|
2020-12-31 12:47:30 +00:00
|
|
|
# Control node count and definition
|
2020-12-27 10:06:21 +00:00
|
|
|
control_count=1
|
2021-01-07 17:12:28 +00:00
|
|
|
control_cpus=4
|
2020-12-27 10:06:21 +00:00
|
|
|
control_ram=8192
|
2020-12-23 16:37:26 +00:00
|
|
|
|
2021-01-02 11:07:16 +00:00
|
|
|
# Compute node definition
|
|
|
|
node_start=1
|
|
|
|
node_cpus=2
|
|
|
|
node_ram=4096
|
|
|
|
|
2020-12-31 12:47:30 +00:00
|
|
|
# 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
|
2021-01-02 11:44:16 +00:00
|
|
|
node_count=$(( `cat /proc/meminfo | grep -i memtotal | awk '{print $2}'` * 11 / 10 / 1024 / $node_ram + 1 ))
|
2020-12-31 12:47:30 +00:00
|
|
|
|
|
|
|
# Disks to create on each VM
|
2020-12-23 16:37:26 +00:00
|
|
|
disks=()
|
|
|
|
disks+=(50)
|
2020-12-27 10:06:21 +00:00
|
|
|
disks+=(20)
|
|
|
|
disks+=(20)
|
|
|
|
|
2020-12-31 12:47:30 +00:00
|
|
|
# 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.
|
2020-12-27 10:06:21 +00:00
|
|
|
network_type=bridge
|
2020-12-23 16:37:26 +00:00
|
|
|
|
2020-12-31 12:47:30 +00:00
|
|
|
# The vlans for each of the bridges if that is defined.
|
2020-12-27 10:06:21 +00:00
|
|
|
vlans=()
|
|
|
|
vlans+=(300)
|
|
|
|
vlans+=(301)
|
|
|
|
vlans+=(302)
|
|
|
|
vlans+=(303)
|
|
|
|
vlans+=(304)
|
|
|
|
vlans+=(305)
|
|
|
|
vlans+=(1)
|
2020-12-23 16:45:35 +00:00
|
|
|
|
2020-12-31 12:47:30 +00:00
|
|
|
# The bridges by default that will be used
|
2020-12-27 10:06:21 +00:00
|
|
|
bridges=()
|
|
|
|
bridges+=("br0")
|
|
|
|
bridges+=("br1")
|
|
|
|
bridges+=("br2")
|
|
|
|
bridges+=("br3")
|
|
|
|
bridges+=("br4")
|
|
|
|
bridges+=("br5")
|
|
|
|
bridges+=("br6")
|