Adding press appearences
[tails/vicves.git] / vagrant / Vagrantfile
blob3fea8185793f3bb2d9348e7381e2a40beb919e22
1 # -*- mode: ruby -*-
2 # vi: set ft=ruby :
4 # Tails: The Amnesic Incognito Live System
5 # Copyright © 2012 Tails developers <tails@boum.org>
7 # This program is free software: you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation, either version 3 of the License, or
10 # (at your option) any later version.
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 # GNU General Public License for more details.
17 # You should have received a copy of the GNU General Public License
18 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
20 # Monkey-patched Vagrant!
21 $:.unshift File.expand_path('../lib', __FILE__)
22 require 'vagrant_verified_download'
23 require 'tails_build_settings'
25 if ENV['TAILS_RAM_BUILD']
26   mem_size = VM_MEMORY_FOR_RAM_BUILDS
27 else
28   mem_size = VM_MEMORY_FOR_DISK_BUILDS
29 end
31 cpus = ENV['TAILS_BUILD_CPUS']
33 Vagrant::Config.run do |config|
34   config.vm.box = 'tails'
36   config.vm.box_url = 'http://dl.amnesia.boum.org/tails/project/vagrant/squeeze.box'
37   config.vm.box_checksum = 'ffb3f68f55a3458e007b9abed3eac057f71c518713fcdf982b78f8b59e28318e'
39   config.vm.provision :shell, :inline => "http_proxy='#{ENV['http_proxy']}' /vagrant/provision/setup-tails-builder"
41   config.vm.share_folder 'amnesia', '/amnesia.git', '../.git'
43   config.vm.customize ['modifyvm', :id, '--memory', mem_size]
44   config.vm.customize ['modifyvm', :id, '--cpus', cpus] unless cpus.nil?
45 end