blob: fea11f1fc5adc3048827be18d6759ae00d007e42 [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
7 config.vm.synced_folder "../", "/voltha", mount_options: ["dmode=700,fmode=600"]
8 else
9 config.vm.synced_folder "../", "/voltha"
10 end
11
12 config.vm.define "voltha" do |d|
Rouzbahan Rashidi-Tabrizi54e3e292016-11-29 14:32:50 -050013 d.vm.box = "rrashidi/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"
16 d.vm.provision :shell, inline: "cd /voltha && source env.sh && chmod 777 /tmp/fluentd"
17 end
18
19 config.ssh.shell = "bash -c 'BASH_ENV=/etc/profile exec bash'"
20
21 if Vagrant.has_plugin?("vagrant-cachier")
22 config.cache.scope = :box
23 end
24
25end