Skip to content

Instantly share code, notes, and snippets.

@earnubs
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save earnubs/9619046 to your computer and use it in GitHub Desktop.
Save earnubs/9619046 to your computer and use it in GitHub Desktop.
Basic Vagrantfile...
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.provision "ansible" do |ansible|
ansible.playbook = "PATH/TO/site.yml"
ansible.host_key_checking = false
end
config.vm.provider :virtualbox do |vb|
vb.memory = 2048
end
config.vm.box = "trusty64"
config.vm.box_url = "https://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-amd64-vagrant-disk1.box"
config.vm.network "public_network"
config.vm.network "public_network", :bridge => 'en1: Wi-Fi (AirPort)'
config.ssh.forward_agent = true
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment