Installing the latest RabbitMQ on Ubuntu 18.04

I wasted a morning trying to install RabbitMQ v3.7.12 (the latest version as of Feb 2019) on an Ubuntu 18.04 machine using Puppet. This as tricky as:

  1. Only RabbitMQ version 3.6.10 is available from the default repositories;
  2. Getting Puppet to install packages from custom locations can be painful.

Solution

Use these Puppet modules in your Puppetfile:

mod 'computology-packagecloud', '0.3.2'
mod 'garethr-erlang', '0.3.0'
mod 'puppet-rabbitmq', "9.0.0"

and something like this in your manifest code:

include "erlang"

packagecloud::repo { "rabbitmq/rabbitmq-server":
    type => "deb",
}

class { "rabbitmq":
    require => [
        Packagecloud::Repo["rabbitmq/rabbitmq-server"],
        Class["erlang"],
    ]
}
——————

Something wrong? Suggest an improvement or add a comment (see article history)
Tagged with: puppet, rabbitmq, ubuntu
Filed in: tips

Previous: Easy to change
Next: Avoiding package lock-out when provisioning Ubuntu 18.04 machines

Copyright © 2005-2023 David Winterbottom
Content licensed under CC BY-NC-SA 4.0.