Some minor updates
* Doc update, missed back-tick * default to 150G for root disk (will help with contrail nodes) * Only require 1 disk for control nodes
This commit is contained in:
parent
4e273e6efa
commit
84412a6000
@ -8,7 +8,7 @@ it running for any cloud, any workload.
|
||||
* `manage-hypervisor-nodes.sh.`: Create hypervisors that MAAS will manage
|
||||
* `bootstrap-maas.sh..........`: Build and bootstrap your MAAS environment
|
||||
* `functions.sh...............`: Common function that the first 2 scripts use
|
||||
* `user-data.yaml`............`: cloud-init for hypervisor nodes
|
||||
* `user-data.yaml.............`: cloud-init for hypervisor nodes
|
||||
|
||||
There are plenty of options to customize its behavior, as well as drop in to
|
||||
any step of the process without rebuilding the full MAAS from scratch.
|
||||
|
@ -42,7 +42,7 @@ node_count=$(( `cat /proc/meminfo | grep -i memtotal | awk '{print $2}'` * 11 /
|
||||
|
||||
# Disks to create on each VM
|
||||
disks=()
|
||||
disks+=(50)
|
||||
disks+=(150)
|
||||
disks+=(20)
|
||||
disks+=(20)
|
||||
|
||||
|
@ -365,16 +365,18 @@ build_vms() {
|
||||
ram="$node_ram"
|
||||
vcpus="$node_cpus"
|
||||
node_type="compute"
|
||||
disk_count=${#disks[@]}
|
||||
if [[ $virt -le $control_count ]] ; then
|
||||
ram="$control_ram"
|
||||
vcpus="$control_cpus"
|
||||
node_type="control"
|
||||
disk_count=1
|
||||
fi
|
||||
|
||||
# Based on the disks array, it will create a definition to add these
|
||||
# disks to the VM
|
||||
disk_spec=""
|
||||
for ((disk=0;disk<${#disks[@]};disk++)); do
|
||||
for ((disk=0;disk<${disk_count};disk++)); do
|
||||
disk_spec+=" --disk path=$storage_path/$virt_node/$virt_node-d$((${disk} + 1)).img"
|
||||
disk_spec+=",format=$storage_format,size=${disks[$disk]},bus=$stg_bus,io=native,cache=directsync"
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user