Created
May 17, 2014 18:15
-
-
Save erikzaadi/65b0e0dad6d644dae019 to your computer and use it in GitHub Desktop.
Example DevBox Vagrantfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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