blob: bedc9389ec64291c0ce0175e24c3564246f04ca6 [file] [log] [blame]
Zack Williamsce63eb02017-02-28 10:46:22 -07001# -*- mode: ruby -*-
2# vi: set ft=ruby :
3#
4# mock Scenario Vagrantfile
5
6require 'yaml'
7settings = YAML.load_file('genconfig/config.yml')
8
9Vagrant.configure("2") do |config|
10
11 config.vm.box = "ubuntu/trusty64"
12
13 # sync these folders with VM
14 config.vm.synced_folder "../../../", "/opt/cord/", create: true
15 config.vm.synced_folder "../../../../cord_profile/", "/opt/cord_profile/", create: true
16
17 # set the headnode VM
18 config.vm.define "headnode" do |d|
19 d.vm.hostname = "headnode"
20 d.vm.network "forwarded_port", guest: 80, host: 8080, host_ip: '*'
21 d.vm.network "private_network",
22 ip: settings['head_vm_ip']
23 d.vm.provider :virtualbox do |vb|
24 vb.memory = settings['head_vm_mem']
25 vb.cpus = settings['head_vm_cpu']
26 end
27 d.vm.provider :libvirt do |v|
28 v.memory = settings['head_vm_mem']
29 v.cpus = settings['head_vm_cpu']
30 end
31 end
32
33end
34