From dc1142bc7db9c79b6299554db3c287e4c6fe5ed7 Mon Sep 17 00:00:00 2001 From: Christian Berendt Date: Thu, 30 Jul 2015 07:54:21 +0200 Subject: [PATCH] Use shortcuts to set CPUs/memory in Vagrantfile Change-Id: Ia611790a99e6567a6a5cece50e37348a971bca53 --- Vagrantfile | 4 ++-- doc/source/requirements.rst | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Vagrantfile b/Vagrantfile index 719a997..4499297 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -39,8 +39,8 @@ Vagrant.configure(2) do |config| config.vm.box = CONFIG['box']['name'] config.vm.synced_folder '.', '/vagrant', disabled: true config.vm.provider 'virtualbox' do |vb| - vb.customize ['modifyvm', :id, '--memory', CONFIG['resources']['memory']] - vb.customize ['modifyvm', :id, '--cpus', CONFIG['resources']['vcpus']] + vb.memory = CONFIG['resources']['memory'] + vb.cpus = CONFIG['resources']['vcpus'] vb.customize ['modifyvm', :id, '--largepages', 'on'] vb.customize ['modifyvm', :id, '--pae', 'off'] end diff --git a/doc/source/requirements.rst b/doc/source/requirements.rst index e47ef67..3137fb6 100644 --- a/doc/source/requirements.rst +++ b/doc/source/requirements.rst @@ -6,12 +6,12 @@ Vagrant The installation of Vagrant is documented in the `Vagrant documentation `__. -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 1.7.2 + Vagrant 1.7.4 Vagrant plugins ~~~~~~~~~~~~~~~