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 |
| 24 | end |