Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.