blob: 1abd52cbdf9d9db977e06d35644ef20b91a17731 [file] [log] [blame]
Chetan Gaonkerb926c642016-05-10 08:19:03 -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
7 config.vm.synced_folder ".", "/cord-tester", mount_options: ["dmode=700,fmode=600"]
8 else
9 config.vm.synced_folder ".", "/cord-tester"
10 end
11
12 config.vm.define "cordtest" do |d|
13 d.vm.box = "ubuntu/trusty64"
14 d.vm.hostname = "cordtest"
15 d.vm.network "private_network", ip: "10.100.198.202"
16 d.vm.provision :shell, path: "src/test/setup/prerequisites.sh"
17 d.vm.provider "virtualbox" do |v|
18 v.memory = 3000
19 end
20 end
21
22 config.vm.define "prod" do |d|
23 d.vm.box = "ubuntu/trusty64"
24 d.vm.hostname = "prod"
25 d.vm.network "private_network", ip: "10.100.198.203"
26 d.vm.provider "virtualbox" do |v|
27 v.memory = 2048
28 end
29 end
30
31 if Vagrant.has_plugin?("vagrant-cachier")
32 config.cache.scope = :box
33 end
34
35end