-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathVagrantfile
38 lines (35 loc) · 992 Bytes
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# -*- mode: ruby -*-
# vi: set ft=ruby :
# WARNING: if you use more than one CPU on the guest
# enable hardware virtualization from your BIOS
cpus = '1'
memory = '512'
# WARNING: if you are going to run a 64 bit guest inside a 32 bit host
# you must enable hardware virtualization from your BIOS
begin
require_relative('Vagrantfile_local')
box = Box
box_url = BoxUrl
hostname = Hostname
rescue LoadError
box = "precise32"
box_url = "http://files.vagrantup.com/precise32.box"
hostname = 'vagrant-markdown-testsuite'
end
Vagrant.configure("2") do |config|
config.vm.box = box
config.vm.box_url = box_url
config.vm.hostname = hostname
config.vm.provider "virtualbox" do |v|
v.customize [
'modifyvm', :id,
'--cpus', cpus,
'--memory', memory,
'--name', hostname + '_vagrant'
]
if cpus.to_i > 1
v.customize ["modifyvm", :id, "--ioapic", "on"]
end
end
config.vm.provision :shell, privileged: false, path: 'provision.sh'
end