dc2dd711e6
The diskimage-create.sh tool will now default to CentOS 8 when building CentOS-based amphora images. This patch also removes leftover references to support for Ubuntu Trusty and Xenial. Change-Id: I3aba59c8dd86aeeee28cc6a67af93697912fb55b
23 lines
531 B
Ruby
23 lines
531 B
Ruby
# defaults
|
|
VM_MEMORY = ENV['VM_MEMORY'] || "8192"
|
|
VM_CPUS = ENV['VM_CPUS'] || "1"
|
|
|
|
def configure_providers(vm)
|
|
|
|
vm.provider "virtualbox" do |vb, config|
|
|
config.vm.box = "ubuntu/bionic64"
|
|
vb.gui = true
|
|
vb.memory = VM_MEMORY
|
|
vb.cpus = VM_CPUS
|
|
end
|
|
|
|
vm.provider "libvirt" do |lb, config|
|
|
config.vm.box = "celebdor/bionic64"
|
|
config.vm.synced_folder './', '/vagrant', type: 'rsync'
|
|
lb.nested = true
|
|
lb.memory = VM_MEMORY
|
|
lb.cpus = VM_CPUS
|
|
lb.suspend_mode = 'managedsave'
|
|
end
|
|
end
|