octavia/devstack/samples/providers.rb
ckji a7256e15ed Change default vagrant box to xenial64(16.04)
Because current devstack don't support ubuntu 14.04. Change default
vagrant box from trusty64 to xenial64.

See:
https://docs.openstack.org/developer/devstack/#install-linux

Change-Id: Id49167e6d60babcc6145c0f4cbd5b15231d12c88
2017-06-28 11:29:49 +08:00

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/xenial64"
vb.gui = true
vb.memory = VM_MEMORY
vb.cpus = VM_CPUS
end
vm.provider "libvirt" do |lb, config|
config.vm.box = "celebdor/xenial64"
config.vm.synced_folder './', '/vagrant', type: 'rsync'
lb.nested = true
lb.memory = VM_MEMORY
lb.cpus = VM_CPUS
lb.suspend_mode = 'managedsave'
end
end