2016-01-24 02:39:44 +00:00
|
|
|
# -*- mode: ruby -*-
|
|
|
|
# vi: set ft=ruby :
|
|
|
|
|
2017-05-12 23:59:03 +00:00
|
|
|
require 'yaml'
|
2016-01-24 02:39:44 +00:00
|
|
|
|
2017-05-12 23:59:03 +00:00
|
|
|
VAGRANTFILE_API_VERSION = 2
|
|
|
|
VM_RAM = 2048
|
2016-01-24 02:39:44 +00:00
|
|
|
|
2017-05-12 23:59:03 +00:00
|
|
|
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
2016-01-24 02:39:44 +00:00
|
|
|
|
2017-05-12 23:59:03 +00:00
|
|
|
config.vm.define "ubuntu", :primary => true do |ubuntu|
|
|
|
|
ubuntu.vm.box = "ubuntu/trusty64"
|
|
|
|
ubuntu.vm.provision "shell", :path => "provisioners/shell/ubuntu.sh"
|
|
|
|
end
|
2016-01-24 02:39:44 +00:00
|
|
|
|
2017-05-12 23:59:03 +00:00
|
|
|
config.vm.define "debian", :primary => true do |debian|
|
|
|
|
debian.vm.box = "debian/jessie64"
|
|
|
|
debian.vm.provision "shell", :path => "provisioners/shell/debian.sh"
|
|
|
|
end
|
|
|
|
|
|
|
|
config.vm.define "centos", :autostart => false do |centos|
|
|
|
|
centos.vm.box = "centos/7"
|
|
|
|
centos.vm.provision "shell", :path => "provisioners/shell/centos.sh"
|
|
|
|
end
|
|
|
|
|
|
|
|
config.vm.provider "virtualbox" do |vb|
|
|
|
|
vb.memory = VM_RAM
|
|
|
|
end
|
2016-01-24 02:39:44 +00:00
|
|
|
|
2017-05-12 23:59:03 +00:00
|
|
|
config.vm.provider "libvirt" do |lv|
|
|
|
|
lv.memory = VM_RAM
|
2016-01-24 02:39:44 +00:00
|
|
|
|
2017-05-12 23:59:03 +00:00
|
|
|
config.vm.synced_folder ".", "/home/vagrant/sync", :disabled => true
|
|
|
|
end
|
|
|
|
|
|
|
|
config.vm.synced_folder ".", "/vagrant", :disabled => true
|
|
|
|
config.vm.synced_folder "../../", "/home/vagrant/go/src/github.com/ethereum/go-ethereum"
|
2016-01-24 02:39:44 +00:00
|
|
|
end
|