-
Notifications
You must be signed in to change notification settings - Fork 21
/
Vagrantfile
41 lines (35 loc) · 1.66 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "bento/rockylinux-9"
config.vm.synced_folder ".", "/vagrant"
config.vm.synced_folder ".", "/etc/ansible/roles/dataverse"
config.vm.network :forwarded_port, guest: 80, host: 8880, auto_correct: true # Apache Reverse Proxy to Glassfish
config.vm.network :forwarded_port, guest: 443, host: 8443, auto_correct: true # Apache Reverse Proxy to Glassfish
config.vm.network :forwarded_port, guest: 5432, host: 5432, auto_correct: true # Postgres
config.vm.network :forwarded_port, guest: 6311, host: 6311, auto_correct: true # rserve
config.vm.network :forwarded_port, guest: 8009, host: 8009, auto_correct: true # Glassfish HTTP Listener
config.vm.network :forwarded_port, guest: 8080, host: 8080, auto_correct: true # Glassfish API Endpoint
config.vm.network :forwarded_port, guest: 8181, host: 8181, auto_correct: true # ???
config.vm.network :forwarded_port, guest: 8983, host: 8983, auto_correct: true # Solr
config.vm.network :forwarded_port, guest: 9090, host: 9090, auto_correct: true # Prometheus
config.vm.provision :ansible_local do |ansible|
ansible.playbook = "tests/site.yml"
ansible.groups = {
"dataverse" => %(default),
"db" => %(default),
"rserve" => %(default),
"systems" => %(default),
"vagrant" => %(default),
"web-nodes" => %(default),
}
ansible.tags = ENV["ANSIBLE_TAGS"]
ansible.skip_tags = ENV["ANSIBLE_SKIP_TAGS"]
ansible.verbose = true
end
config.vm.provider "virtualbox" do |vbox|
vbox.cpus = 4
vbox.memory = 8192
end
end