In this post I’ll provide a writeup on how I created a test setup for
a project I’m working on. The project uses RabbitMQ to distribute
tasks to a worker, and the production system is a cluster of Apache/Tomcat
I’ll use vagrant to create two test machines, one which runs RabbitMQ, the other
one will run the actual worker code.
I’ll have the vagrant files in a subdirectory vagrant in my git repository. I’ll
add the Vagrantfile and all provisioning scriptzs there::
The configuration sets the machines up, such that:
both have a IP to talk to eachother
on the rabbitmq machine I’ve used the shell provisioner to install
on the worker machine I’ve used the shell provisioner to create a python
development environment in /opt
share my source folder on the worker
Note: For some reason I wanted to have all the vagrant stuff in a separate directory. I
could have put the Vagrantfile in the top-level directory and thus saved me the additional
shared folder. Oh well.