summaryrefslogtreecommitdiffstats
path: root/vagrant/Vagrantfile
diff options
context:
space:
mode:
authorTails developers <amnesia@boum.org>2012-05-14 23:51:37 +0200
committerTails developers <amnesia@boum.org>2012-05-16 13:30:41 +0200
commit1431b891565b2a12eab80c1f52ae52b2e0990b02 (patch)
tree87cad30c5993255507bb05e70bbe08d22c435cf7 /vagrant/Vagrantfile
parent799f1e8e2d6990273f09087eda65b8ae8cf34ae6 (diff)
vagrant: Add suport for in-memory build settings
Diffstat (limited to 'vagrant/Vagrantfile')
-rw-r--r--vagrant/Vagrantfile9
1 files changed, 9 insertions, 0 deletions
diff --git a/vagrant/Vagrantfile b/vagrant/Vagrantfile
index cc035c9..8e9ee6c 100644
--- a/vagrant/Vagrantfile
+++ b/vagrant/Vagrantfile
@@ -20,6 +20,13 @@
# Monkey-patched Vagrant!
$:.unshift File.expand_path('../lib', __FILE__)
require 'vagrant_verified_download'
+require 'tails_build_settings'
+
+if ENV['TAILS_RAM_BUILD']
+ mem_size = VM_MEMORY_FOR_RAM_BUILDS
+else
+ mem_size = VM_MEMORY_FOR_DISK_BUILDS
+end
Vagrant::Config.run do |config|
config.vm.box = 'tails'
@@ -30,4 +37,6 @@ Vagrant::Config.run do |config|
config.vm.provision :shell, :inline => "http_proxy='#{ENV['http_proxy']}' /vagrant/provision/setup-tails-builder"
config.vm.share_folder 'amnesia', '/amnesia.git', '../.git'
+
+ config.vm.customize ['modifyvm', :id, '--memory', mem_size]
end