# -*- mode: ruby -*-
# vi: set ft=ruby :

HOST_NAME = "Ub1404-SasViewQt-Ver2"

# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure(2) do |config|
  # Ubuntu 14.04
  config.vm.box = "ubuntu/trusty64"
  config.vm.define HOST_NAME do |h|
  end

  # This is the hostname that the virtual machine uses internally.
  config.vm.hostname = HOST_NAME


  config.vm.provider "virtualbox" do |vb|
    # Display the VirtualBox GUI when booting the machine
    vb.name = HOST_NAME
    vb.gui = true
    vb.customize ["modifyvm", :id, "--memory", "8192"]
    vb.customize ["modifyvm", :id, "--cpus", "4"]
    vb.customize ["modifyvm", :id, "--graphicscontroller", "vboxvga"]
    vb.customize ["modifyvm", :id, "--accelerate3d", "on"]
    vb.customize ["modifyvm", :id, "--ioapic", "on"]
    vb.customize ["modifyvm", :id, "--vram", "32"]
    vb.customize ["modifyvm", :id, "--hwvirtex", "on"]
  end


  # Install ubuntu-desktop and virtualbox additions and all of the rest
  # Take one provision file at the time.
  # Do the loop:
  # terminal: vagrant up --provision 
  # Check install packages
  # terminal: vagrant halt
  # Comment in/out the appropriate lines

  # 1.
  #config.vm.provision "shell", path: "provision/bootstrap.sh"
  # 2.
  #config.vm.provision "shell", path: "provision/developer.sh"
  # 3.
  config.vm.provision "shell", path: "provision/miniconda.sh"
end
