Last active
November 19, 2020 03:54
-
-
Save lukebakken/44f2fe3770d43dd12acfe6dfbc1818d3 to your computer and use it in GitHub Desktop.
Ubuntu 16 + RabbitMQ
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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