Skip to content

Instantly share code, notes, and snippets.

@michaeljs1990
Created July 23, 2015 02:35
Show Gist options
  • Save michaeljs1990/fcd9d54c19c0cd7a7d9f to your computer and use it in GitHub Desktop.
Save michaeljs1990/fcd9d54c19c0cd7a7d9f to your computer and use it in GitHub Desktop.
Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.network "private_network", ip: "192.168.56.101"
config.vm.provider "virtualbox" do |vm|
vm.customize ["modifyvm", :id, "--memory", "2048"] # 4096 on a heavy duty box is good
vm.customize ["modifyvm", :id, "--vram", "12"] # This gives enough to run x if you need to (e.g. xvfb)
vm.customize ["modifyvm", :id, "--cpus", "2"] # Bump to 4 on a super multicore machine (these are cores)
vm.customize ["modifyvm", :id, "--natdnshostresolver1", "on"] # to use that nifty Resolve thing above
end
config.ssh.forward_agent = true
# Ansible is super easy to learn and provision a machine
config.vm.provision "ansible" do |a|
a.playbook = 'provisioning/playbook.yml'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment