Skip to content

Instantly share code, notes, and snippets.

@plcosta
Created January 5, 2016 18:17
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 plcosta/19aa37ba8878fdda8405 to your computer and use it in GitHub Desktop.
Save plcosta/19aa37ba8878fdda8405 to your computer and use it in GitHub Desktop.
My Vagrant File
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# hospub - debian 7
config.vm.define "hospub" do |hospub|
hospub.vm.box = "hospub-debian7-x64"
hospub.vm.box_check_update = false
hospub.vm.hostname = "hospub-vagrant"
hospub.vm.synced_folder "/Users/plcosta/Code", "/home/vagrant/Code"
hospub.vm.synced_folder "/Users/plcosta", "/home/vagrant/plcosta"
hospub.ssh.insert_key = false
hospub.vm.provider :virtualbox do |vb|
vb.name = "hospub"
vb.memory = 256
vb.cpus = 1
end
hospub.vm.network :forwarded_port, guest: 22, host: 2224
hospub.vm.network "forwarded_port", guest: 5432, host: 54321
hospub.vm.network :private_network, ip: "192.168.10.11"
end
# hellobits - trusty64
config.vm.define "hellobits" do |hellobits|
hellobits.vm.box = "fnando/hellobits-trusty64"
hellobits.vm.box_check_update = false
hellobits.vm.hostname = "hellobits-ror"
hellobits.vm.synced_folder "/Users/plcosta/Code", "/home/vagrant/Code"
hellobits.vm.provider :virtualbox do |vb|
vb.name = "hellobits"
vb.memory = 256
vb.cpus = 1
end
hellobits.vm.network "forwarded_port", guest: 5432, host: 54322
hellobits.vm.network "forwarded_port", guest: 3000, host: 3000
hellobits.vm.network :private_network, ip: "192.168.10.12"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment