blob: 9f22d164c1cebaad4a20f672cb3db83ba3eed604 [file] [log] [blame]
Rouzbahan Rashidi-Tabrizi663f01a2016-11-17 11:39:02 -05001# -*- 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
Rouzbahan Rashidi-Tabrizi4b9fdf42017-02-17 13:39:42 -05007 config.vm.synced_folder "../../..", "/cord", mount_options: ["dmode=700,fmode=600"]
Rouzbahan Rashidi-Tabrizi663f01a2016-11-17 11:39:02 -05008 else
Rouzbahan Rashidi-Tabrizi4b9fdf42017-02-17 13:39:42 -05009 config.vm.synced_folder "../../..", "/cord"
Rouzbahan Rashidi-Tabrizi663f01a2016-11-17 11:39:02 -050010 end
11
12 config.vm.define "voltha" do |d|
Rouzbahan Rashidi-Tabrizi64b68342016-12-08 11:10:50 -050013 d.vm.box = "voltha/voltha-base"
Rouzbahan Rashidi-Tabrizi663f01a2016-11-17 11:39:02 -050014 d.vm.hostname = "voltha"
15 d.vm.network "private_network", ip: "10.100.198.220"
Rouzbahan Rashidi-Tabrizi4b9fdf42017-02-17 13:39:42 -050016 d.vm.provision :shell, inline: "cd /cord/incubator/voltha && source env.sh && chmod 777 /tmp/fluentd"
Rouzbahan Rashidi-Tabrizi64b68342016-12-08 11:10:50 -050017 d.vm.provider "virtualbox" do |v|
18 v.name = "voltha"
19 end
Rouzbahan Rashidi-Tabrizi663f01a2016-11-17 11:39:02 -050020 end
21
22 config.ssh.shell = "bash -c 'BASH_ENV=/etc/profile exec bash'"
23
24 if Vagrant.has_plugin?("vagrant-cachier")
25 config.cache.scope = :box
26 end
27
28end