forked from AustralianDisabilityLimited/unisubs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
42 lines (39 loc) · 1.55 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant::Config.run do |config|
config.vm.host_name = "unisubs"
config.vm.box = "lucid64"
config.vm.box_url = "http://files.vagrantup.com/lucid64.box"
config.vm.network :hostonly, "10.10.10.42"
config.vm.forward_port 80, 8000
config.vm.forward_port 8983, 8983
config.vm.forward_port 9000, 9000
config.vm.share_folder "puppet", "/tmp/puppet", "./puppet"
config.vm.share_folder "unisubs", "/opt/apps/vagrant/unisubs", "."
config.vm.provision :shell do |shell|
shell.path = "vagrant.sh"
# the following will allow a custom branch of amara-puppet ; whatever the value of the
# environment variable PUPPET_BRANCH is, the vagrant.sh script will attempt to checkout
# that branch ; i.e. PUPPET_BRANCH=dev vagrant provision
if (ENV['PUPPET_BRANCH'])
shell.args = "%{branch}" % { :branch => ENV['PUPPET_BRANCH']}
end
end
end
Vagrant.configure("1") do |config|
config.vm.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate/unisubs", "1"]
config.vm.customize ["modifyvm", :id, "--memory", 1024]
end
Vagrant.configure("2") do |config|
#config.vm.synced_folder "./puppet", "/tmp/puppet"
#config.vm.synced_folder ".", "/opt/apps/vagrant/unisubs"
# virtualbox config
config.vm.provider :virtualbox do |vb|
vb.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate/unisubs", "1"]
vb.customize ["modifyvm", :id, "--memory", 1024]
end
# vmware
config.vm.provider :vmware_fusion do |v|
v.vmx["memsize"] = "1024"
end
end