Juju Charm - RabbitMQ
Go to file
James Page 68e0417294 Only toggle the cluster relation on a successful join_cluster and use a unique setting. 2015-10-22 09:11:36 +01:00
hooks Set something unique 2015-10-21 19:05:54 -07:00
scripts fix wily rmq+nrpe lockfile issue bug 1508537 2015-10-21 16:21:46 +00:00
templates Enable cert files etc when ssl_mode is 'only' 2015-10-20 12:18:49 +01:00
tests enable wily-liberty amulet test 2015-10-21 14:54:59 +00:00
unit_tests Fix unit test 2015-10-21 20:03:48 -07:00
.bzrignore Create virtualenv to run unit tests 2015-01-19 15:02:29 -03:00
.coveragerc [wolson,r=jamespage,t=osci] Update restart logic around config-change hook to avoid extra restarts. 2015-01-22 15:37:28 +00:00
.project Added pydev project 2013-03-18 11:06:15 +00:00
.pydevproject Redux take 1 2014-03-05 12:57:20 +00:00
Makefile Move 00-setup to prevent unnecessary boostrap/destroy loop in amulet test runs 2015-10-21 13:36:00 +00:00
README Add some README for source options 2014-03-25 11:07:10 +00:00
charm-helpers-hooks.yaml update sync target 2015-10-06 18:43:11 +00:00
charm-helpers-tests.yaml refactor amulet tests, update makefile, deprecate old amulet tests 2015-09-03 18:58:14 +00:00
config.yaml Rebase 2015-09-23 10:16:23 -03:00
copyright Add license 2011-07-18 17:36:10 -07:00
icon.svg Added icon.svg 2013-04-25 14:23:14 -04:00
metadata.yaml refactor amulet tests, update makefile, deprecate old amulet tests 2015-09-03 18:58:14 +00:00
revision Added stats cronjob and queue monitoring nagios plugin 2014-05-07 10:52:24 +01:00
setup.cfg Create virtualenv to run unit tests 2015-01-19 15:02:29 -03:00
test-requirements.txt Run flake8 from venv as well 2015-01-23 09:01:50 +00:00

README

Configuring SSL
---------------
Generate an unencrypted RSA private key for the servers and a certificate:

  openssl genrsa -out rabbit-server-privkey.pem 2048

Get an X.509 certificate. This can be self-signed, for example:

  openssl req -batch -new -x509 -key rabbit-server-privkey.pem -out rabbit-server-cert.pem -days 10000

Deploy the service:

  juju deploy rabbitmq-server rabbit

Enable SSL, passing in the key and certificate as configuration settings:

  juju set rabbit ssl_enabled=True ssl_key="`cat rabbit-server-privkey.pem`" ssl_cert="`cat rabbit-server-cert.pem`"

To change the source that the charm uses for packages:

  juju set rabbit source="cloud:precise-icehouse"

This will enable the Icehouse pocket of the Cloud Archive (which contains a new version of RabbitMQ) and upgrade the install to the new version.

The source option can be used in a few different ways:

  source="ppa:james-page/testing" - use the testing PPA owned by james-page
  source="http://myrepo/ubuntu main" - use the repository located at the provided URL

The charm also supports use of arbitary archive key's for use with private repositories:

  juju set rabbit key="C6CEA0C9"

Note that in clustered configurations, the upgrade can be a bit racey as the services restart and re-cluster; this is resolvable using:

  juju resolved --retry rabbitmq/1