forked from IQSS/dataverse-ansible
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
38 lines (32 loc) · 1.44 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "sjoeboo/centos-7-1-x86-ansible"
config.vm.synced_folder ".", "/vagrant"
config.vm.synced_folder ".", "/etc/ansible/roles/dataverse"
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.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"]
end
config.vm.provider :virtualbox do |vbox|
vbox.cpus = 2
vbox.memory = 2048
end
end