This repository was archived by the owner on Sep 28, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 40
Expand file tree
/
Copy pathVagrantfile
More file actions
42 lines (34 loc) · 1.32 KB
/
Vagrantfile
File metadata and controls
42 lines (34 loc) · 1.32 KB
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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.require_version ">= 1.8"
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.synced_folder "~/.aws", "/home/vagrant/.aws"
# Need to use rsync in order to prevent a vboxfs/docker/gunicorn-related
# file corruption issue.
config.vm.synced_folder ".", "/vagrant",
type: "rsync",
rsync__exclude: [".git/",
"reports/",
"geoserver/data_dir/",
"django/publicmapping/publicmapping/config_settings.py",
"django/publicmapping/locale/**/*.mo",
"django/publicmapping/locale/**/xmlconfig.po"],
rsync__args: ["--verbose", "--archive", "--delete", "-z", "--links"]
config.vm.provider :virtualbox do |vb|
vb.memory = 4096
vb.cpus = 2
end
# Nginx
config.vm.network :forwarded_port, guest: 8080, host: 8080
# Change working directory to /vagrant upon session start.
config.vm.provision "shell", inline: <<SCRIPT
if ! grep -q "cd /vagrant" "/home/vagrant/.bashrc"; then
echo "cd /vagrant" >> "/home/vagrant/.bashrc"
fi
SCRIPT
config.vm.provision "ansible" do |ansible|
ansible.playbook = "deployment/ansible/district-builder.yml"
ansible.galaxy_role_file = "deployment/ansible/roles.yml"
end
end