blob: a07ec956b91dccbf6c9bb0cca1a90f8446ddab50 [file] [log] [blame]
Sergio Slobodrianee4b2bc2017-06-05 10:08:59 -04001# -*- mode: ruby -*-
2# vi: set ft=ruby :
3
4# This Vagrantfile is used for testing the installer. It creates 3 servers
5# with a vanilla ubutu server image on it.
6Vagrant.configure(2) do |config|
7 config.vm.synced_folder ".", "/vagrant", disabled: true
8 (1..3).each do |i|
9 config.vm.define "ha-serv#{i}" do |d|
10 d.ssh.forward_agent = true
11 d.vm.box = "ubuntu1604"
12 d.vm.hostname = "ha-serv#{i}"
13 d.vm.provider "libvirt" do |v|
14 v.memory = 6144
15 end
16 end
17 end
18
19 if Vagrant.has_plugin?("vagrant-cachier")
20 config.cache.scope = :box
21 end
22
23end
24
25#Vagrant.configure(2) do |config|
26#
27# config.vm.synced_folder ".", "/vagrant", disabled: true
28# if /cygwin|mswin|mingw|bccwin|wince|emx/ =~ RUBY_PLATFORM
29# puts("Configuring for windows")
30# config.vm.synced_folder "../../..", "/cord", mount_options: ["dmode=700,fmode=600"]
31# Box = "ubuntu/xenial64"
32# Provider = "virtualbox"
33# elsif RUBY_PLATFORM =~ /linux/
34# puts("Configuring for linux")
35# config.vm.synced_folder "../../..", "/cord", type: "nfs"
36# Box = "ubuntu1604"
37# Provider = "libvirt"
38# else
39# puts("Configuring for other")
40# config.vm.synced_folder "../../..", "/cord"
41# Box = "ubuntu/xenial64"
42# Provider = "virtualbox"
43# end
44#
45# config.vm.define "voltha" do |d|
46# d.ssh.forward_agent = true
47# d.vm.box = Box
48# d.vm.hostname = "voltha"
49# d.vm.network "private_network", ip: "10.100.198.220"
50# #d.vm.provision :shell, path: "ansible/scripts/bootstrap_ansible.sh"
51# #d.vm.provision :shell, inline: "PYTHONUNBUFFERED=1 ansible-playbook /cord/incubator/voltha/ansible/voltha.yml -c local"
52# #d.vm.provision :shell, inline: "cd /cord/incubator/voltha && source env.sh && make install-protoc && chmod 777 /tmp/fluentd"
53# d.vm.provider Provider do |v|
54# v.memory = 6144
55# end
56# end
57#
58# if Vagrant.has_plugin?("vagrant-cachier")
59# config.cache.scope = :box
60# end
61#
62#end