-
Notifications
You must be signed in to change notification settings - Fork 10
/
Vagrantfile
37 lines (29 loc) · 994 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
34
35
36
37
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.require_version ">= 2.1"
Vagrant.configure("2") do |config|
config.vm.box = "bento/ubuntu-16.04"
config.vm.synced_folder "./", "/vagrant"
# Jekyll
config.vm.network :forwarded_port, guest: 4000, host: 4000
# LiveReload
config.vm.network :forwarded_port, guest: 35729, host: 35729
config.vm.provision "ansible_local" do |ansible|
ansible.compatibility_mode = "2.0"
ansible.install = true
ansible.install_mode = "pip_args_only"
ansible.pip_args = "ansible==2.4.*"
ansible.playbook = "deployment/ansible/geotrellis-site.yml"
ansible.galaxy_role_file = "deployment/ansible/roles.yml"
ansible.galaxy_roles_path = "deployment/ansible/roles"
end
config.vm.provision "shell" do |s|
s.inline = <<-SHELL
if ! grep -q "cd /vagrant" "/home/vagrant/.bashrc"; then
echo "cd /vagrant" >> "/home/vagrant/.bashrc"
fi
cd /vagrant
su vagrant ./scripts/update
SHELL
end
end