Added management_plugin configuration setting to enable the management web interface

This commit is contained in:
Thomas Leonard 2012-11-21 15:30:39 +00:00
parent 41148268bf
commit add08ae35a
3 changed files with 15 additions and 1 deletions

View File

@ -3,6 +3,10 @@ options:
type: boolean
default: False
description: enable SSL
management_plugin:
type: boolean
default: False
description: enable the management plugin
ssl_port:
type: int
default: 5671

View File

@ -3,6 +3,16 @@ set -eu
juju-log "rabbitmq-server: Firing config hook"
export HOME=/root # (HOME is not set on first run)
RABBIT_PLUGINS=/usr/lib/rabbitmq/lib/rabbitmq_server-*/sbin/rabbitmq-plugins
if [ "`config-get management_plugin`" == "True" ]; then
$RABBIT_PLUGINS enable rabbitmq_management
open-port 55672/tcp
else
$RABBIT_PLUGINS disable rabbitmq_management
close-port 55672/tcp
fi
ssl_enabled=`config-get ssl_enabled`
cd /etc/rabbitmq

View File

@ -1 +1 @@
36
37