Changed config to make it easy to add multiple boxes.

This commit is contained in:
Tim Kuhlman 2014-02-14 11:43:34 -07:00
parent a34c5d704f
commit b8cdd1841c
1 changed files with 5 additions and 6 deletions

11
Vagrantfile vendored
View File

@ -4,15 +4,14 @@
VAGRANTFILE_API_VERSION = "2" # Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# Settings for all vms
config.vm.box = "precise64"
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
config.vm.network :private_network, ip: "10.10.10.10"
# Share an additional folder to the guest VM. The first argument is
# the path on the host to the actual folder. The second argument is
# the path on the guest to mount the folder. And the optional third
# argument is a set of non-required options.
config.vm.synced_folder "~/", "/vagrant_home"
config.vm.define "kafka" do |kafka|
kafka.vm.network :private_network, ip: "10.10.10.10"
kafka.vm.synced_folder "~/", "/vagrant_home"
end
# Enable provisioning with chef solo, specifying a cookbooks path, roles
# path, and data_bags path (all relative to this Vagrantfile), and adding