ZC Buildout recipe for setting up RabbitMQ.
Project description
Buildout recipe for downloading and installing RabbitMQ.
A brief documentation
This recipe takes a number of options:
- erlang-path
The path where to find the erlc command (default = /usr/local/bin).
- url
The URL to download the RabbitMQ source distribution.
- prefix
Prefix path (default = <buildout directory>).
- cookie
Optional string passed as cookie to the erl runtime (-setcookie).
- make
Alternate make command (e.g. gmake).
Tests
We will define a buildout template used by the recipe:
>>> buildout_cfg = """ ... [buildout] ... parts = rabbitmq ... offline = true ... ... [rabbitmq] ... recipe = rod.recipe.rabbitmq ... url = http://www.rabbitmq.com/releases/rabbitmq-server/v2.4.0/rabbitmq-server-2.4.0.tar.gz ... """
We’ll start by creating a buildout:
>>> import os.path >>> write('buildout.cfg', buildout_cfg)
Running the buildout gives us:
>>> output = system(buildout) >>> if output.endswith("ebin ebin/rabbit.app < ebin/rabbit_app.in\n"): True ... else: print output True
Changes
1.1.7 2011-04-11
Added ‘make’ buildout option to specify an alternate make command (e.g. gmake).
1.1.6 2010-06-21
Using rabbit@localhost as NODENAME in order to provide portability of the database across machines independent of the hostname since you can not start RabbitMQ on a different machine with a different hostname (the database is tied to the hostname).
1.1.5 2010-06-21
Added support for setting an optional erlang cookie (-setcookie) through the ‘cookie’ option.
1.1.4 2010-05-09
Fixed issue where rabbitmq scripts used an incorrect default Erlang path when no erlang-path option was specified.
1.1.3 2010-05-03
Fixed parameter in generated rabbitmqctl script (-sname instead of -name).
1.1.2 2010-05-02
Fixed parameter in generated rabbitmq-server script (-sname instead of -name).
1.1.1 2010-03-21
Fixes an issue where the Erlang path wasn’t set correctly.
1.1.0 2010-03-20
Updated for RabbitMQ 1.7.2.
1.0.0 2009-08-23
Initial release.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for rod.recipe.rabbitmq-1.1.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 03e3bcef20bd298a9bb223c6f96e76f0631c0a0f6714b48d48980b42e01d2113 |
|
MD5 | 452822dcd677446bc127f9c784387213 |
|
BLAKE2b-256 | 443b9ce8b18ed70518408cfe6d1c8fa79582e68c6dd4ca5d50ecb48d4566f904 |