-
Notifications
You must be signed in to change notification settings - Fork 1
/
Vagrantfile
68 lines (59 loc) · 2.4 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# -*- mode: ruby -*-:
# vi: set ft=ruby :
# build a 64 bit vm? (required for travis)
sixtyfour = false
Vagrant.configure("2") do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
# Every Vagrant virtual environment requires a box to build off of.
if sixtyfour
config.vm.box = "precise64"
else
config.vm.box = "precise32"
end
config.vm.provider "virtualbox" do |v|
v.customize ["modifyvm", :id, "--cpus", 4, "--memory", 3700, "--ioapic", "on"]
end
# The url from where the 'config.vm.box' box will be fetched if it
# doesn't already exist on the user's system.
if sixtyfour
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
else
config.vm.box_url = "http://files.vagrantup.com/precise32.box"
end
# Share an additional folder to the guest VM. The first argument is
# an identifier, the second is the path on the guest to mount the
# folder, and the third is the path on the host to the actual folder.
# config.vm.share_folder "v-data", "/vagrant_data", "../data"
# config.vm.share_folder "ghcjs-ghc-repo", "/tmp/ghcjs-ghc-repo", "/usr/src/ghcjs/ghc/.git"
# config.vm.share_folder "ghcjs-libraries", "/tmp/ghcjs-libraries", "/usr/src/ghcjs/ghc"
# config.vm.share_folder "archives", "/tmp/install-archives", "archives"
# config.vm.share_folder "outputs", "/tmp/outputs", "outputs"
config.vm.synced_folder "refs", "/home/vagrant/ghcjs-build-refs"
# Enable provisioning with Puppet stand alone. Puppet manifests
# are contained in a directory path relative to this Vagrantfile.
# You will need to create the manifests directory and a manifest in
# the file base.pp in the manifests_path directory.
#
# An example Puppet manifest to provision the message of the day:
#
# # group { "puppet":
# # ensure => "present",
# # }
# #
# # File { owner => 0, group => 0, mode => 0644 }
# #
# # file { '/etc/motd':
# # content => "Welcome to your Vagrant-built virtual machine!
# # Managed by Puppet.\n"
# # }
#
config.vm.provision :puppet do |puppet|
puppet.manifests_path = "manifests"
puppet.manifest_file = "base.pp"
puppet.module_path = "modules"
puppet.options = "--verbose"
end
config.vm.network :forwarded_port, guest: 3000, host: 3030
end