The canonical enviroment for back-end development. We use [Puppet] 1 for provisioning, and Vagrant for orchastrating the virtual enviroment.
- Clone this git repo, and cd to the directory.
- Download and install VirtualBox
- Download and install Vagrant
- Install the virtual machine image
vagrant box add precise64 http://files.vagrantup.com/precise64.box
- Launch the cluster
vagrant up
vagrant ssh <machine_name>
Consult the current Vagrantfile and look for the host_name
attributes for the names to use in the above machine_name
.
Or, you can run something like:
vagrant status
...and you'll be a listing of the current machines within the Vagrant cluster
Current machine states:
kafka running (virtualbox)
zookeeper running (virtualbox)
This environment represents multiple VMs. The VMs are all listed
above with their current state. For more information about a specific
VM, run `vagrant status NAME`.
vagrant destroy
vagrant provision
- zookeeper - A single node zookeeper instance. Zookeeper port forwarded to
localhost:2181
. - kafka - A single node kafka instance. Kafka port forwarded to
localhost:9092
. Requires a running instance of the zookeeper image.