Written by Philip A Senger
philip.a.senger@cngrgroup.com | mobile: 0404466846 | CV/Resume | blog | LinkedIn | twitter
This project contains a Vagrant controlled Sun Virtual Machine with a Puppet recipe to build a server based on CentOS 6 with RabbitMQ and RabbitMQ Web Management.
If you are reading this, you may be wonder why I built this project. Using a Message Queue is vital to creating an elastic and high availability systems. It allows the decoupling of components in a n-tier fashion. For example it allows cpu intensive components to be decoupled from the lower demanding cpu components. This allows infrastructure to provision more costly equipment to where it is needed.
This is my seed project based off of many other projects I have seen on the web. I use this as a git submodule for many other projects.
- Download and install Vagrant
- Download and install VirtualBox
- Clone the project
git clone https://github.com/psenger/vagrant-rabbitmq.git
- In the project dir run
vagrant up
Optionally, the VM will use the vagrant-hostmanager
plugin if it is installed.
vagrant plugin install vagrant-hostmanager
host: localhost
port: 5672
url: http://localhost:15672/
username: guest
password: guest
Puppet manifests are applied during vagrant provision
. To manually apply manifests on the VM, run:
sudo puppet apply --modulepath=/vagrant/puppet/modules/forge:/vagrant/puppet/modules/custom /vagrant/puppet/manifests
To view currently enabled RabbitMQ plugins, run on the VM:
sudo puppet resource rabbitmq_plugin --modulepath=/vagrant/puppet/modules/forge:/vagrant/puppet/modules/custom