carlessanagustin
5/17/2016 - 8:19 AM

Minimal Vagrantfile for ubuntu/trusty64 (14.04 LTS)

Minimal Vagrantfile for ubuntu/trusty64 (14.04 LTS)

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

Vagrant.configure("2") do |config|
  config.vm.provider "virtualbox"
  
  config.vm.box = "ubuntu/trusty64"
  
  config.vm.provider "virtualbox" do |vb|
    vb.memory = 512
    vb.cpus = 1
    vb.gui = false
  end
  
  config.vm.boot_timeout = 60

  config.vm.define "minimal" do |minimal|
    minimal.vm.host_name = "minimal"
    
    minimal.vm.network "forwarded_port", guest: 80, host: 8080, auto_correct: true
    
    minimal.vm.network "private_network", ip: "192.168.32.10"
#    minimal.vm.network "public_network", auto_config: true, virtualbox__intnet: true, bridge: "en0: Wi-Fi (AirPort)"

    minimal.vm.provision "shell", inline: "apt-get update && apt-get -y upgrade"
#    minimal.vm.provision :shell, :path => "bootstrap.sh"
  end
end