Skip to content

Instantly share code, notes, and snippets.

@lukebakken
Last active November 19, 2020 03:54
Show Gist options
  • Save lukebakken/44f2fe3770d43dd12acfe6dfbc1818d3 to your computer and use it in GitHub Desktop.
Save lukebakken/44f2fe3770d43dd12acfe6dfbc1818d3 to your computer and use it in GitHub Desktop.
Ubuntu 16 + RabbitMQ
# -*- mode: ruby -*-
# vi: set ft=ruby :
$script = <<SCRIPT
export DEBIAN_FRONTEND=noninteractive
echo "deb https://dl.bintray.com/rabbitmq/debian xenial main" | sudo tee /etc/apt/sources.list.d/bintray.rabbitmq.list
wget -O- https://dl.bintray.com/rabbitmq/Keys/rabbitmq-release-signing-key.asc | sudo apt-key add -
wget https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb
dpkg -i erlang-solutions_1.0_all.deb
apt-get -yq update
apt-get -yq --no-install-suggests --no-install-recommends \
--allow-downgrades --allow-remove-essential \
--allow-change-held-packages install rabbitmq-server
date > /etc/vagrant_provisioned_at
SCRIPT
Vagrant.configure('2') do |config|
config.vm.box = 'ubuntu/xenial64'
config.vm.hostname = 'UBUNTU-16'
config.vm.provision 'shell', inline: $script
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment