forked from nzalazar/ansible-dspace
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
43 lines (34 loc) · 1.22 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
# http://fgrehm.viewdocs.io/vagrant-cachier
if Vagrant.has_plugin?("vagrant-cachier")
config.cache.scope = :box
else
puts "Run 'vagrant plugin install vagrant-cachier' to speed up provisioning."
end
config.vm.hostname = "dspace"
config.vm.box = "ubuntu/trusty32"
config.vm.network "forwarded_port", guest: 80, host: 8081
config.vm.network "private_network", ip: "192.168.50.10"
config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--memory", "2048"]
# vb.gui = true
end
if ENV['DSPACE_SYNC_REPO']
config.vm.synced_folder ENV['DSPACE_SYNC_REPO'], "/srv/dspace-src", type: "nfs"
end
config.vm.provision :ansible do |ansible|
ansible.playbook = "site.yml"
ansible.host_key_checking = false
ansible.extra_vars = { ansible_ssh_user: "vagrant", testing: true }
#ansible.verbose = "vvvv"
end
# config.vm.provision :ansible do |ansible|
# ansible.playbook = "site.yml"
# ansible.host_key_checking = true
# ansible.extra_vars = { ansible_ssh_user: "vagrant", testing: true }
# ansible.verbose = "vvvv"
# end
config.vm.post_up_message = "Welcome to your testing DSpace VM"
end