Skip to content

Instantly share code, notes, and snippets.

@koenkarsten
Last active August 28, 2018 12:21
Show Gist options
  • Save koenkarsten/6d387f88e5942ad6e2200b9c28f4bebd to your computer and use it in GitHub Desktop.
Save koenkarsten/6d387f88e5942ad6e2200b9c28f4bebd to your computer and use it in GitHub Desktop.
RabbitMQ Vagrantfile
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.network "forwarded_port", guest: 5672, host: 5672
config.vm.network "forwarded_port", guest: 15672, host: 15672
config.vm.provision "shell", inline: <<-SHELL
wget -O - 'https://dl.bintray.com/rabbitmq/Keys/rabbitmq-release-signing-key.asc' | sudo apt-key add -
echo "deb https://dl.bintray.com/rabbitmq/debian trusty main" | sudo tee
apt-get update
apt-get install -y erlang rabbitmq-server
rabbitmq-plugins enable rabbitmq_management
service rabbitmq-server restart
SHELL
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment