forked from itucsdb1621/itucsdb1621
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
49 lines (40 loc) · 1.47 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "trusty32"
config.vm.box_url = "https://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-i386-vagrant-disk1.box"
config.vm.network :forwarded_port, guest: 5432, host: 5432
config.vm.network :forwarded_port, guest: 5000, host: 5050
config.vm.network :forwarded_port, guest: 80, host: 5080
config.vm.provider "virtualbox" do |vb|
# vb.customize ["modifyvm", :id, "--memory", "1024"]
vb.customize ["modifyvm", :id, "--name", "itucsdb" ]
end
# fix locale
config.vm.provision :shell do |shell|
shell.path = "vagrant/fixlocale.sh"
end
# Run apt-get update as a separate step in order to avoid
# package install errors
config.vm.provision :puppet do |puppet|
puppet.manifests_path = "vagrant"
puppet.manifest_file = "aptgetupdate.pp"
end
# ensure we have the packages we need
config.vm.provision :puppet do |puppet|
puppet.manifests_path = "vagrant"
puppet.manifest_file = "itucsdb.pp"
end
# initialize database
config.vm.provision :shell do |shell|
shell.path = "vagrant/initpg.sh"
end
# configure phppgadmin
config.vm.provision :shell do |shell|
shell.path = "vagrant/phppgadmin.sh"
end
# install Python modules
config.vm.provision :shell do |shell|
shell.path = "vagrant/installpymods.sh"
end
end