Rouzbahan Rashidi-Tabrizi | 663f01a | 2016-11-17 11:39:02 -0500 | [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 "../", "/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 | |
| 25 | end |