Skip to content

Instantly share code, notes, and snippets.

@bhdrkn bhdrkn/Vagrantfile
Last active Aug 29, 2015

What would you like to do?
RabbitMQ Vagrant
# -*- mode: ruby -*-
# vi: set ft=ruby ts=2 sw=2 expandtab:
Vagrant.configure(2) do |config| = "ubuntu/trusty64" "private_network", ip: ""
config.vm.provision "shell", inline: <<-SHELL
echo 'deb testing main' >/etc/apt/sources.list.d/rabbitmq.list
apt-key add rabbitmq-signing-key-public.asc
apt-get update
apt-get install -q -y rabbitmq-server
# RabbitMQ Plugins
service rabbitmq-server stop
rabbitmq-plugins enable rabbitmq_management
config.vm.provision "file", source:"./rabbitmq.config", destination:"~/rabbitmq.config"
config.vm.provision "shell", inline: <<-SHELL
cp /home/vagrant/rabbitmq.config /etc/rabbitmq/rabbitmq.config
# Start service
service rabbitmq-server start
rabbitmq-plugins list
# see also
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.