Install RabbitMQ 3.5.4 on Ubuntu systems

RabbitMQ 3.5.5 has a bug [1] that prevent puppetlabs-rabbitmq module to
create permissions:

Could not evaluate: cannot parse line from
list_user_permissions:/usr/sbin/rabbitmqctl: 19: [: Linux: unexpected
operator]

This patch is a workaround to make sure we install the previous stable
version of RabbitMQ (3.5.4). Since puppetlabs-rabbitmq module will only
check if the package is 'installed', it won't try to update it.

[1] https://github.com/rabbitmq/rabbitmq-server/issues/321

Change-Id: I8e0fa8e62e93b62317011fd7c8a2730cd293d4c7
This commit is contained in:
Emilien Macchi 2015-09-24 13:29:00 -04:00
parent 4f1d2571f7
commit 9da87065f5

View File

@ -57,6 +57,11 @@ if type "apt-get" 2>/dev/null; then
# apt-get update needs to be run to be able (later) to install # apt-get update needs to be run to be able (later) to install
# ubuntu-cloud-keyring package with puppet # ubuntu-cloud-keyring package with puppet
/usr/bin/apt-get update /usr/bin/apt-get update
# install rabbitmq-server from ubuntu repository until
# rabbitmq repository contains the fix mentionned in:
# https://github.com/rabbitmq/rabbitmq-server/issues/321
/usr/bin/apt-get install -y rabbitmq-server
else else
# disable SElinux # disable SElinux
# something is python-cffi is preventing Nova & Keystone to # something is python-cffi is preventing Nova & Keystone to