Skip to content

Instantly share code, notes, and snippets.

@erikzaadi
Created May 17, 2014 18:15
Show Gist options
  • Save erikzaadi/65b0e0dad6d644dae019 to your computer and use it in GitHub Desktop.
Save erikzaadi/65b0e0dad6d644dae019 to your computer and use it in GitHub Desktop.
Example DevBox Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "ubuntu13.04"
config.vm.box_url = "http://cloud-images.ubuntu.com/vagrant/raring/current/raring-server-cloudimg-amd64-vagrant-disk1.box"
config.vm.provider "virtualbox" do |v|
v.memory = 2048
end
config.vm.provision "ansible" do |ansible|
ansible.playbook = "provisioning/devbox.yml"
end
config.vm.network :forwarded_port, host: 27017, guest: 27017 #mongodb
config.vm.network :forwarded_port, host: 6379, guest: 6379 #redis
#and it goes on...
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment