blob: 2173a16139d339ddb8af2d7a689bd9b15a5a9b5b [file] [log] [blame]
Zsolt Haraszti3d163532016-09-08 15:57:32 -07001# -*- 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
alshabibeef9b132017-02-02 17:46:51 -08007 config.vm.synced_folder "../..", "/cord", mount_options: ["dmode=700,fmode=600"]
Zsolt Haraszti3d163532016-09-08 15:57:32 -07008 else
alshabibeef9b132017-02-02 17:46:51 -08009 config.vm.synced_folder "../..", "/cord"
Zsolt Haraszti3d163532016-09-08 15:57:32 -070010 end
11
12 config.vm.define "voltha" do |d|
13 d.ssh.forward_agent = true
Zsolt Haraszti29d10af2016-12-10 10:38:32 -080014 d.vm.box = "ubuntu/xenial64"
Zsolt Haraszti3d163532016-09-08 15:57:32 -070015 d.vm.hostname = "voltha"
16 d.vm.network "private_network", ip: "10.100.198.220"
17 d.vm.provision :shell, path: "ansible/scripts/bootstrap_ansible.sh"
alshabibeef9b132017-02-02 17:46:51 -080018 d.vm.provision :shell, inline: "PYTHONUNBUFFERED=1 ansible-playbook /cord/incubator/voltha/ansible/voltha.yml -c local"
19 d.vm.provision :shell, inline: "cd /cord/incubator/voltha && source env.sh && make install-protoc && chmod 777 /tmp/fluentd"
Zsolt Haraszti3d163532016-09-08 15:57:32 -070020 d.vm.provider "virtualbox" do |v|
Zsolt Haraszti9b485fb2016-12-26 23:11:15 -080021 v.memory = 6144
Zsolt Haraszti3d163532016-09-08 15:57:32 -070022 end
23 end
24
25 if Vagrant.has_plugin?("vagrant-cachier")
26 config.cache.scope = :box
27 end
28
29end