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

Vagrant.configure("2") do |config|

  config.vm.box = "mattglass/ubuntu-desktop-PS"
  config.vm.box_version = "0.0.1"
  config.disksize.size = '30GB'
  
  config.ssh.username = 'vagrant'
  config.ssh.password = 'vagrant'

  config.vm.network "private_network", virtualbox__intnet: "LAN", ip: "10.0.0.102"

  # Modify the default gateway here to match your network
  $script = <<-SCRIPT
  echo Configuring network routing and forwarding...
  route add default gw 10.0.0.251
  route delete default gw 10.0.2.2 dev enp0s3
  SCRIPT
	
  # Applies the script above
  config.vm.provision "shell", run: "always", inline: $script

  config.vm.provider "virtualbox" do |vb|
    vb.gui = true
    vb.memory = "2048"
	vb.cpus = "2"
	vb.name = "Ubuntu Desktop"
  end
end
