forked from girder/girder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
33 lines (28 loc) · 979 Bytes
/
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
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.hostname = "girder"
config.vm.network "forwarded_port", guest: 8080, host: 9080
config.vm.post_up_message = "Girder is running at http://localhost:9080"
config.vm.synced_folder ".", "/vagrant", disabled: true
config.vm.synced_folder ".", "/home/vagrant/girder"
provisioner_type = if
Gem::Version.new(Vagrant::VERSION) > Gem::Version.new('1.8.1')
then
# Vagrant > 1.8.1 is required due to
# https://github.com/mitchellh/vagrant/issues/6793
"ansible_local"
else
"ansible"
end
config.vm.provision provisioner_type do |ansible|
ansible.playbook = "devops/ansible/playbook.yml"
#ansible.verbose = "v"
if provisioner_type == "ansible_local"
ansible.provisioning_path = "/home/vagrant/girder"
end
end
config.vm.provider "virtualbox" do |virtualbox|
virtualbox.name = "girder"
virtualbox.memory = 768
end
end