forked from MageTest/Manager
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathVagrantfile
46 lines (35 loc) · 1.1 KB
/
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
39
40
41
42
43
44
45
46
#!/usr/bin/env ruby
# ^ Syntax hint
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.require_version ">= 1.5.0"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# Box configuration
config.vm.box = "Ubuntu-12.04"
config.vm.box_url = 'https://cloud-images.ubuntu.com/vagrant/precise/current/precise-server-cloudimg-i386-vagrant-disk1.box'
# Network configuration
config.vm.network :private_network, ip: "10.199.45.152"
config.ssh.forward_agent = true
# Provision
config.vm.provision :shell, :path => "build/vm_setup.sh"
# Shared folders
require 'ffi'
mount_options = ["dmode=777", "fmode=777"]
opts = if FFI::Platform::IS_WINDOWS
{ :mount_options => mount_options }
else
{ :nfs => mount_options }
end
config.vm.synced_folder(".", "/vagrant", opts)
# Virtualbox specific configuration
config.vm.provider :virtualbox do |vb|
#vb.gui = true
vb.customize [
"modifyvm", :id,
"--memory", "1024",
"--name", "MageTest2"
]
end
end