blob: b91c46026108757c6ddbab9c394e1eb1aa40dee7 [file] [log] [blame]
alshabib4997cd72016-05-24 22:48:29 -07001# -*- mode: ruby -*-
2# vi: set ft=ruby :
3
4Vagrant.configure(2) do |config|
5
6 if (/cygwin|mswin|mingw|bccwin|wince|emx/ =~ RUBY_PLATFORM) != nil
7 config.vm.synced_folder ".", "/vagrant", mount_options: ["dmode=700,fmode=600"]
8 else
9 config.vm.synced_folder ".", "/vagrant"
10 end
11
12 config.vm.define "onosdev" do |d|
13 d.vm.box = "ubuntu/trusty64"
14 d.vm.hostname = "onosdev"
15 d.vm.network "private_network", ip: "10.100.198.200"
16 d.vm.provision :shell, path: "scripts/bootstrap_ansible.sh"
17 d.vm.provision :shell, inline: "PYTHONUNBUFFERED=1 ansible-playbook /vagrant/ansible/onosdev.yml -c local"
18 d.vm.provider "virtualbox" do |v|
19 v.customize ["modifyvm", :id, "--nicpromisc2", "allow-all"]
20 v.memory = 8192
21 v.cpus = 2
22 end
23 end
alshabibbdb7b372016-05-25 09:46:49 -070024
25 config.vm.define "mn" do |d|
26 d.vm.box = "ubuntu/trusty64"
27 d.vm.hostname = "mn"
28 d.vm.network "private_network", ip: "10.100.198.100"
29 d.vm.provision :shell, path: "scripts/bootstrap_ansible.sh"
30 d.vm.provision :shell, inline: "PYTHONUNBUFFERED=1 ansible-playbook /vagrant/ansible/mn.yml -c local"
31 d.vm.provider "virtualbox" do |v|
32 v.customize ["modifyvm", :id, "--nicpromisc2", "allow-all"]
33 v.memory = 2048
34 end
35 end
36
alshabib4997cd72016-05-24 22:48:29 -070037end