Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 51 lines (39 sloc) 2.076 kB
6c5e604 Adds Vagrantfile for further testing
Yurii Rashkovskii authored
1 # -*- mode: ruby -*-
2 # vi: set ft=ruby :
3
bd45023 Let Vagrantfile itself decide what image to use (32/64 bits)
Yurii Rashkovskii authored
4 erl = (`which erl` == "" ? "#{`pwd`}/../erlang/bin/erl" : `which erl`).strip
5 bits = `#{erl} -noshell -eval "io:format(\\"~w\\",[erlang:system_info(wordsize)]), init:stop()"`.to_i*8
6
6c5e604 Adds Vagrantfile for further testing
Yurii Rashkovskii authored
7 Vagrant::Config.run do |config|
8 # All Vagrant configuration is done here. The most common configuration
9 # options are documented and commented below. For a complete reference,
10 # please see the online documentation at vagrantup.com.
11
12 # Every Vagrant virtual environment requires a box to build off of.
bd45023 Let Vagrantfile itself decide what image to use (32/64 bits)
Yurii Rashkovskii authored
13 config.vm.box = "base#{bits}"
6c5e604 Adds Vagrantfile for further testing
Yurii Rashkovskii authored
14
15 # The url from where the 'config.vm.box' box will be fetched if it
16 # doesn't already exist on the user's system.
0347620 Switch default Vagrantfile to a 64 bit Oneiric box
Yurii Rashkovskii authored
17
18 # Use this if 32-bit host is used
bd45023 Let Vagrantfile itself decide what image to use (32/64 bits)
Yurii Rashkovskii authored
19 case bits
20 when 32 then
21 config.vm.box_url = "http://files.vagrantup.com/lucid32.box"
22 when 64 then
23 config.vm.box_url = "http://timhuegdon.com/vagrant-boxes/ubuntu-11.10.box"
24 end
6c5e604 Adds Vagrantfile for further testing
Yurii Rashkovskii authored
25
26 # Boot with a GUI so you can see the screen. (Default is headless)
2add316 Adds box URL to the Vagrantfile and makes it headless
Yurii Rashkovskii authored
27 # config.vm.boot_mode = :gui
6c5e604 Adds Vagrantfile for further testing
Yurii Rashkovskii authored
28
29 # Assign this VM to a host-only network IP, allowing you to access it
30 # via the IP. Host-only networks can talk to the host machine as well as
31 # any other machines on the same network, but cannot be accessed (through this
32 # network interface) by any external networks.
33 config.vm.network :hostonly, "33.33.33.10"
34
35 # Assign this VM to a bridged network, allowing you to connect directly to a
36 # network using the host's network device. This makes the VM appear as another
37 # physical device on your network.
38 # config.vm.network :bridged
39
40 # Forward a port from the guest to the host, which allows for outside
41 # computers to access the VM, whereas host only networking does not.
42 # config.vm.forward_port 80, 8080
43
44 # Share an additional folder to the guest VM. The first argument is
45 # an identifier, the second is the path on the guest to mount the
46 # folder, and the third is the path on the host to the actual folder.
47 # config.vm.share_folder "v-data", "/vagrant_data", "../data"
48 config.vm.share_folder "htoad", "/htoad", ".."
49
50 end
Something went wrong with that request. Please try again.