github.com/SmartMeshFoundation/Spectrum@v0.0.0-20220621030607-452a266fee1e/containers/vagrant/Vagrantfile (about)

     1  # -*- mode: ruby -*-
     2  # vi: set ft=ruby :
     3  
     4  require 'yaml'
     5  
     6  VAGRANTFILE_API_VERSION = 2
     7  VM_RAM = 2048
     8  
     9  Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
    10  
    11    config.vm.define "ubuntu", :primary => true do |ubuntu| 
    12      ubuntu.vm.box = "ubuntu/trusty64"
    13      ubuntu.vm.provision "shell", :path => "provisioners/shell/ubuntu.sh"
    14    end
    15  
    16    config.vm.define "debian", :primary => true do |debian|
    17      debian.vm.box = "debian/jessie64"
    18      debian.vm.provision "shell", :path => "provisioners/shell/debian.sh"
    19    end
    20    
    21    config.vm.define "centos", :autostart => false do |centos| 
    22      centos.vm.box = "centos/7"
    23      centos.vm.provision "shell", :path => "provisioners/shell/centos.sh"
    24    end
    25    
    26    config.vm.provider "virtualbox" do |vb|
    27      vb.memory = VM_RAM
    28    end
    29  
    30    config.vm.provider "libvirt" do |lv|
    31      lv.memory = VM_RAM
    32  
    33      config.vm.synced_folder ".", "/home/vagrant/sync", :disabled => true
    34    end
    35    
    36    config.vm.synced_folder ".", "/vagrant", :disabled => true
    37    config.vm.synced_folder "../../", "/home/vagrant/go/src/github.com/SmartMeshFoundation/Spectrum"
    38  end