-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathVagrantfile
45 lines (37 loc) · 1.26 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
#
# Vagrant configuration for CS 4332
# Version 15
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
# If you want TeamPostgreSQL, change this to 'true'
USE_TEAMPOSTGRESQL = false
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# config.vm.box = "chef/ubuntu-14.04-i386"
config.vm.box = "ubuntu/trusty32"
config.vm.provider "parallels" do |v, override|
override.vm.box = "parallels/ubuntu-14.04"
end
config.vm.provider "libvirt" do |v, override|
override.vm.box = "baremettle/ubuntu-14.04"
end
# config.vm.synced_folder ".", "/vagrant", type: "rsync"
config.vm.provision "shell", path: "vgresources/install.sh"
if USE_TEAMPOSTGRESQL then
config.vm.provision "shell", path: "vgresources/install-teampg.sh"
config.vm.network "forwarded_port",
guest: 8082,
host: 9080, host_ip: "127.0.0.1",
auto_correct: true
end
# We only bind to localhost for security. The VM has no security.
config.vm.network "forwarded_port",
guest: 5432,
host: 5432, host_ip: "127.0.0.1",
auto_correct: true
config.vm.network "forwarded_port",
guest: 5000,
host: 5000, host_ip: "127.0.0.1",
auto_correct: true
end