alshabib | 4997cd7 | 2016-05-24 22:48:29 -0700 | [diff] [blame] | 1 | # -*- mode: ruby -*- |
| 2 | # vi: set ft=ruby : |
| 3 | |
| 4 | Vagrant.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 |
alshabib | bdb7b37 | 2016-05-25 09:46:49 -0700 | [diff] [blame] | 24 | |
| 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 | |
alshabib | 4997cd7 | 2016-05-24 22:48:29 -0700 | [diff] [blame] | 37 | end |