Update Vagrant based on PR Feedback

This commit is contained in:
Pete Birley 2017-03-31 07:33:17 -05:00
parent 1b1658a1ff
commit 13913cd6ac
2 changed files with 6 additions and 5 deletions

10
dev/Vagrantfile vendored
View File

@ -21,7 +21,7 @@ Vagrant.configure("2") do |config|
# Every Vagrant development environment requires a box. You can search for
# boxes at https://atlas.hashicorp.com/search.
config.vm.box = "ubuntu/xenial64"
config.vm.box = $vm_image
# Disable automatic box update checking. If you disable this, then
# boxes will only be checked for updates when the user runs
@ -42,7 +42,7 @@ Vagrant.configure("2") do |config|
# backing providers for Vagrant. These expose provider-specific options.
config.vm.provider "virtualbox" do |vb|
# Display the VirtualBox GUI when booting the machine
vb.gui = true
vb.gui = false
# Customize the amount of memory on the VM:
vb.memory = $ram
@ -51,10 +51,10 @@ Vagrant.configure("2") do |config|
vb.cpus = $vcpu_cores
# Set the size of the VM's root disk:
unless File.exist?('.vagrant/machines/default/virtualbox/openstack-helm-storage.vdi')
vb.customize ['createhd', '--filename', '.vagrant/machines/default/virtualbox/openstack-helm-storage', '--size', $docker_disk]
unless File.exist?('.vagrant/machines/default/openstack-helm-storage.vdi')
vb.customize ['createhd', '--filename', '.vagrant/machines/default/openstack-helm-storage', '--size', $docker_disk]
end
vb.customize ['storageattach', :id, '--storagectl', 'SCSI', '--port', 2, '--device', 0, '--type', 'hdd', '--medium', '.vagrant/machines/default/virtualbox/openstack-helm-storage.vdi']
vb.customize ['storageattach', :id, '--storagectl', 'SCSI', '--port', 2, '--device', 0, '--type', 'hdd', '--medium', '.vagrant/machines/default/openstack-helm-storage.vdi']
end

View File

@ -1,4 +1,5 @@
# VM Specs
$vm_image = "ubuntu/xenial64"
$docker_disk = 20480
$vcpu_cores = 4
$ram = 8192