Edward Hope-Morley 294634b2c0 Add hardening support
Add charmhelpers.contrib.hardening and calls to install,
config-changed, upgrade-charm and update-status hooks.
Also add new config option to allow one or more hardening
modules to be applied at runtime.

Change-Id: I035d8d959f5217801b296a4975fce605b25b4b24
2016-03-24 11:38:33 +00:00
2016-03-24 11:38:33 +00:00
2016-03-24 11:38:33 +00:00
2016-03-24 11:38:33 +00:00
2016-03-02 12:11:05 +00:00
2013-03-18 11:06:15 +00:00
2013-03-18 11:06:15 +00:00
2016-02-16 07:52:08 +00:00
2016-03-24 11:38:33 +00:00
2016-03-24 11:38:33 +00:00
2011-07-18 17:36:10 -07:00
2016-03-24 11:38:33 +00:00
2013-04-25 14:23:14 -04:00
2016-03-15 20:14:01 -07:00
2015-11-18 10:48:28 +00:00
2014-03-25 11:07:10 +00:00
2016-02-16 07:52:08 +00:00
2015-01-19 15:02:29 -03:00
2016-03-23 09:30:17 +00:00

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
Description
Juju Charm - RabbitMQ
Readme 6.5 MiB
Languages
Python 99.5%
Shell 0.5%