summaryrefslogtreecommitdiffstats
path: root/vagrant/Vagrantfile
diff options
context:
space:
mode:
authorTails developers <amnesia@boum.org>2012-05-16 08:32:02 +0200
committerTails developers <amnesia@boum.org>2012-05-16 13:30:42 +0200
commit3c41c91187940dba63609b60c014ba23c1e88f5d (patch)
treeac122d3bdd15c6bf5cc95e0d2c1abc1ea54d91d7 /vagrant/Vagrantfile
parente379dfc4baea607c089569d0ad327ec039360fc2 (diff)
vagrant: Add support for virtual CPUs build settings
Diffstat (limited to 'vagrant/Vagrantfile')
-rw-r--r--vagrant/Vagrantfile3
1 files changed, 3 insertions, 0 deletions
diff --git a/vagrant/Vagrantfile b/vagrant/Vagrantfile
index 8e9ee6c..3fea818 100644
--- a/vagrant/Vagrantfile
+++ b/vagrant/Vagrantfile
@@ -28,6 +28,8 @@ else
mem_size = VM_MEMORY_FOR_DISK_BUILDS
end
+cpus = ENV['TAILS_BUILD_CPUS']
+
Vagrant::Config.run do |config|
config.vm.box = 'tails'
@@ -39,4 +41,5 @@ Vagrant::Config.run do |config|
config.vm.share_folder 'amnesia', '/amnesia.git', '../.git'
config.vm.customize ['modifyvm', :id, '--memory', mem_size]
+ config.vm.customize ['modifyvm', :id, '--cpus', cpus] unless cpus.nil?
end