-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathVagrantfile
59 lines (52 loc) · 2.07 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure(2) do |config|
config.vm.box = "centos/7"
if Vagrant.has_plugin?("vagrant-cachier")
config.cache.enable :yum
config.cache.scope = :machine # use the per machine cache
end
if not ARGV.include?('--no-parallel') # when running in parallel,
end
config.vbguest.auto_update = false
# forwarded ports.
TCP_PORTS_LIST={
"80" => 20080, # http
"443" => 20443, # https
"8080" => 28080, # cr prod (tomcat)
"8081" => 28081, # cr test (tomcat)
"8082" => 28082, # elda prod (jetty)
"8890" => 28890, # virtuoso web console
"8891" => 28891, # virtuoso test web console
"1111" => 21111, # virtuoso isql prod
"1112" => 21112, # virtuoso isql test
"8441" => 28441, # Plone (prod1)
"8442" => 28442, # Plone (prod2)
"8443" => 28443, # Plone (prod3)
"8448" => 28448, # Plone (test)
}
TCP_PORTS_LIST.each do |guest, host|
config.vm.network "forwarded_port", guest: "#{guest}", host: "#{host}", protocol: "tcp"
end
config.vm.network "public_network", type: "dhcp"
config.vm.provider "virtualbox" do |vb|
vb.name = "VagrantDigitalAgendaData"
vb.gui = true
vb.customize ["modifyvm", :id, "--memory", 2048]
#vb.customize ["modifyvm", :id, "--cpuexecutioncap", "100"]
vb.customize ["modifyvm", :id, "--vram", 64]
#vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
#vb.customize ["modifyvm", :id, "--natdnsproxy1", "on"]
#vb.customize ["modifyvm", :id, "--clipboard", "bidirectional"]
#vb.customize ["modifyvm", :id, "--draganddrop", "bidirectional"]
end
#config.ssh.private_key_path
#config.ssh.insert_key = "true"
config.ssh.password = "vagrant"
config.vm.provision :shell, path: "bootstrap.sh"
#config.vm.provision :shell, path: "post-mount.sh", run: "always", privileged: false
end