-
Notifications
You must be signed in to change notification settings - Fork 34
/
Vagrantfile
41 lines (34 loc) · 1.47 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 :
ANSIBLE_VERSION = "2.3.1.0"
Vagrant.configure("2") do |config|
# Ubuntu 14.04 LTS
config.vm.box = "ubuntu/trusty64"
# Ports to the services
config.vm.network :forwarded_port, guest: 8777, host: 8777 # gt-chatta-demo
config.vm.network :forwarded_port, guest: 8080, host: 8080 # spark master
config.vm.network :forwarded_port, guest: 50095, host: 50095 # accumulo
config.vm.network :forwarded_port, guest: 50070, host: 50070 # hdfs
config.vm.network :private_network, ip: ENV.fetch("GT_TRANSIT_WEB_IP", "10.10.10.10")
# VM resource settings
config.vm.provider :virtualbox do |vb|
vb.memory = ENV.fetch("GT_TRANSIT_VM_MEMORY", "4096")
vb.cpus = 2
end
config.vm.synced_folder "~/.aws", "/home/vagrant/.aws"
config.vm.synced_folder "./", "/home/vagrant/geotrellis-chatta-demo", type: "nfs"
# Provisioning
# Ansible is installed automatically by Vagrant.
config.vm.provision "ansible_local" do |ansible|
ansible.install = true
ansible.install_mode = :pip
ansible.version = "#{ANSIBLE_VERSION}"
ansible.playbook = "deployment/ansible/playbook.yml"
ansible.galaxy_role_file = "deployment/ansible/roles.yml"
ansible.galaxy_roles_path = "deployment/ansible/roles"
end
config.vm.provision "shell" do |s|
s.path = 'deployment/vagrant/cd_shared_folder.sh'
s.args = "/home/vagrant/geotrellis-chatta-demo"
end
end