| Vagrant.configure(2) do |config| |
| if (/cygwin|mswin|mingw|bccwin|wince|emx/ =~ RUBY_PLATFORM) != nil |
| config.vm.synced_folder "../", "/voltha", mount_options: ["dmode=700,fmode=600"] |
| config.vm.synced_folder "../", "/voltha" |
| config.vm.define "voltha" do |d| |
| d.vm.box = "voltha/voltha-base" |
| d.vm.network "private_network", ip: "10.100.198.220" |
| d.vm.provision :shell, inline: "cd /voltha && source env.sh && chmod 777 /tmp/fluentd" |
| d.vm.provider "virtualbox" do |v| |
| config.ssh.shell = "bash -c 'BASH_ENV=/etc/profile exec bash'" |
| if Vagrant.has_plugin?("vagrant-cachier") |
| config.cache.scope = :box |