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 |
Rouzbahan Rashidi-Tabrizi | 4b9fdf4 | 2017-02-17 13:39:42 -0500 | [diff] [blame^] | 7 | config.vm.synced_folder "../../..", "/cord", mount_options: ["dmode=700,fmode=600"] |
Rouzbahan Rashidi-Tabrizi | 663f01a | 2016-11-17 11:39:02 -0500 | [diff] [blame] | 8 | else |
Rouzbahan Rashidi-Tabrizi | 4b9fdf4 | 2017-02-17 13:39:42 -0500 | [diff] [blame^] | 9 | config.vm.synced_folder "../../..", "/cord" |
Rouzbahan Rashidi-Tabrizi | 663f01a | 2016-11-17 11:39:02 -0500 | [diff] [blame] | 10 | end |
| 11 | |
| 12 | config.vm.define "voltha" do |d| |
Rouzbahan Rashidi-Tabrizi | 64b6834 | 2016-12-08 11:10:50 -0500 | [diff] [blame] | 13 | d.vm.box = "voltha/voltha-base" |
Rouzbahan Rashidi-Tabrizi | 663f01a | 2016-11-17 11:39:02 -0500 | [diff] [blame] | 14 | d.vm.hostname = "voltha" |
| 15 | d.vm.network "private_network", ip: "10.100.198.220" |
Rouzbahan Rashidi-Tabrizi | 4b9fdf4 | 2017-02-17 13:39:42 -0500 | [diff] [blame^] | 16 | d.vm.provision :shell, inline: "cd /cord/incubator/voltha && source env.sh && chmod 777 /tmp/fluentd" |
Rouzbahan Rashidi-Tabrizi | 64b6834 | 2016-12-08 11:10:50 -0500 | [diff] [blame] | 17 | d.vm.provider "virtualbox" do |v| |
| 18 | v.name = "voltha" |
| 19 | end |
Rouzbahan Rashidi-Tabrizi | 663f01a | 2016-11-17 11:39:02 -0500 | [diff] [blame] | 20 | 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 | |
| 28 | end |