Update Vagrant based on PR Feedback
This commit is contained in:
parent
1b1658a1ff
commit
13913cd6ac
10
dev/Vagrantfile
vendored
10
dev/Vagrantfile
vendored
@ -21,7 +21,7 @@ Vagrant.configure("2") do |config|
|
|||||||
|
|
||||||
# Every Vagrant development environment requires a box. You can search for
|
# Every Vagrant development environment requires a box. You can search for
|
||||||
# boxes at https://atlas.hashicorp.com/search.
|
# 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
|
# Disable automatic box update checking. If you disable this, then
|
||||||
# boxes will only be checked for updates when the user runs
|
# 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.
|
# backing providers for Vagrant. These expose provider-specific options.
|
||||||
config.vm.provider "virtualbox" do |vb|
|
config.vm.provider "virtualbox" do |vb|
|
||||||
# Display the VirtualBox GUI when booting the machine
|
# Display the VirtualBox GUI when booting the machine
|
||||||
vb.gui = true
|
vb.gui = false
|
||||||
|
|
||||||
# Customize the amount of memory on the VM:
|
# Customize the amount of memory on the VM:
|
||||||
vb.memory = $ram
|
vb.memory = $ram
|
||||||
@ -51,10 +51,10 @@ Vagrant.configure("2") do |config|
|
|||||||
vb.cpus = $vcpu_cores
|
vb.cpus = $vcpu_cores
|
||||||
|
|
||||||
# Set the size of the VM's root disk:
|
# Set the size of the VM's root disk:
|
||||||
unless File.exist?('.vagrant/machines/default/virtualbox/openstack-helm-storage.vdi')
|
unless File.exist?('.vagrant/machines/default/openstack-helm-storage.vdi')
|
||||||
vb.customize ['createhd', '--filename', '.vagrant/machines/default/virtualbox/openstack-helm-storage', '--size', $docker_disk]
|
vb.customize ['createhd', '--filename', '.vagrant/machines/default/openstack-helm-storage', '--size', $docker_disk]
|
||||||
end
|
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
|
end
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# VM Specs
|
# VM Specs
|
||||||
|
$vm_image = "ubuntu/xenial64"
|
||||||
$docker_disk = 20480
|
$docker_disk = 20480
|
||||||
$vcpu_cores = 4
|
$vcpu_cores = 4
|
||||||
$ram = 8192
|
$ram = 8192
|
||||||
|
Loading…
Reference in New Issue
Block a user