blob: ce086aad862cba06d17287d1bb25302b451e7538 [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|
13 d.vm.box = "voltha-base"
14 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