Matteo Scandolo | bf5b6a1 | 2017-02-13 11:25:07 -0800 | [diff] [blame] | 1 | Vagrant.configure("2") do |config| |
| 2 | # base image |
| 3 | config.vm.box = "ubuntu/trusty64" |
| 4 | |
| 5 | # share the folder |
Andy Bavier | 7b90cb8 | 2017-06-22 10:33:00 -0400 | [diff] [blame] | 6 | config.vm.synced_folder "../../", "/opt/cord/", create: true |
Matteo Scandolo | ef090af | 2017-06-29 16:54:18 -0700 | [diff] [blame^] | 7 | config.vm.synced_folder "./cord_profile/", "/opt/cord_profile/", create: true |
Matteo Scandolo | bf5b6a1 | 2017-02-13 11:25:07 -0800 | [diff] [blame] | 8 | config.vm.synced_folder ".", "/vagrant", disabled: true |
| 9 | |
| 10 | # set the frontend vm |
| 11 | config.vm.define "head-node" do |d| |
Matteo Scandolo | bf5b6a1 | 2017-02-13 11:25:07 -0800 | [diff] [blame] | 12 | d.vm.network "private_network", ip: "192.168.46.100" |
| 13 | d.vm.provider "virtualbox" do |vb| |
Andy Bavier | 7b90cb8 | 2017-06-22 10:33:00 -0400 | [diff] [blame] | 14 | vb.memory = "2048" |
Matteo Scandolo | bf5b6a1 | 2017-02-13 11:25:07 -0800 | [diff] [blame] | 15 | vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"] |
| 16 | vb.customize ["modifyvm", :id, "--natdnsproxy1", "on"] |
| 17 | end |
| 18 | end |
| 19 | |
Andy Bavier | 7b90cb8 | 2017-06-22 10:33:00 -0400 | [diff] [blame] | 20 | 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 |
| 25 | end |