Merge "Use shortcuts to set CPUs/memory in Vagrantfile"
This commit is contained in:
4
Vagrantfile
vendored
4
Vagrantfile
vendored
@@ -39,8 +39,8 @@ Vagrant.configure(2) do |config|
|
|||||||
config.vm.box = CONFIG['box']['name']
|
config.vm.box = CONFIG['box']['name']
|
||||||
config.vm.synced_folder '.', '/vagrant', disabled: true
|
config.vm.synced_folder '.', '/vagrant', disabled: true
|
||||||
config.vm.provider 'virtualbox' do |vb|
|
config.vm.provider 'virtualbox' do |vb|
|
||||||
vb.customize ['modifyvm', :id, '--memory', CONFIG['resources']['memory']]
|
vb.memory = CONFIG['resources']['memory']
|
||||||
vb.customize ['modifyvm', :id, '--cpus', CONFIG['resources']['vcpus']]
|
vb.cpus = CONFIG['resources']['vcpus']
|
||||||
vb.customize ['modifyvm', :id, '--largepages', 'on']
|
vb.customize ['modifyvm', :id, '--largepages', 'on']
|
||||||
vb.customize ['modifyvm', :id, '--pae', 'off']
|
vb.customize ['modifyvm', :id, '--pae', 'off']
|
||||||
end
|
end
|
||||||
|
@@ -6,12 +6,12 @@ Vagrant
|
|||||||
|
|
||||||
The installation of Vagrant is documented in the `Vagrant
|
The installation of Vagrant is documented in the `Vagrant
|
||||||
documentation <https://docs.vagrantup.com/v2/installation/index.html>`__.
|
documentation <https://docs.vagrantup.com/v2/installation/index.html>`__.
|
||||||
Ensure to use at least version ``1.7.2`` of Vagrant.
|
Ensure to use at least version ``1.7.4`` of Vagrant.
|
||||||
|
|
||||||
::
|
::
|
||||||
|
|
||||||
$ vagrant --version
|
$ vagrant --version
|
||||||
Vagrant 1.7.2
|
Vagrant 1.7.4
|
||||||
|
|
||||||
Vagrant plugins
|
Vagrant plugins
|
||||||
~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~
|
||||||
|
Reference in New Issue
Block a user