blob: 9cffcbe13c4d611f2211a62564a9318d48adcb0d [file] [log] [blame]
Matteo Scandolobf5b6a12017-02-13 11:25:07 -08001Vagrant.configure("2") do |config|
2 # base image
3 config.vm.box = "ubuntu/trusty64"
4
5 # share the folder
Andy Bavier7b90cb82017-06-22 10:33:00 -04006 config.vm.synced_folder "../../", "/opt/cord/", create: true
Matteo Scandoloef090af2017-06-29 16:54:18 -07007 config.vm.synced_folder "./cord_profile/", "/opt/cord_profile/", create: true
Matteo Scandolobf5b6a12017-02-13 11:25:07 -08008 config.vm.synced_folder ".", "/vagrant", disabled: true
9
10 # set the frontend vm
11 config.vm.define "head-node" do |d|
Matteo Scandolobf5b6a12017-02-13 11:25:07 -080012 d.vm.network "private_network", ip: "192.168.46.100"
13 d.vm.provider "virtualbox" do |vb|
Andy Bavier7b90cb82017-06-22 10:33:00 -040014 vb.memory = "2048"
Matteo Scandolobf5b6a12017-02-13 11:25:07 -080015 vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
16 vb.customize ["modifyvm", :id, "--natdnsproxy1", "on"]
17 end
18 end
19
Andy Bavier7b90cb82017-06-22 10:33:00 -040020 config.vm.provision :shell, privileged: false, path: "./scripts/cord-bootstrap.sh"
21 config.vm.provision "ansible_local" do |ansible|
22 ansible.provisioning_path = "/opt/cord/build/platform-install"
23 ansible.playbook = "bootstrap-dev-env.yml"
24 end
25end