Ensure rabbitmq ports are integer

The latest puppet-rabbitmq commits require the "port" parameter to
be an integer [1]. Even though we are still pinning to a previous
version without this requirement, we should get ready for the future
bump.

[1] - 5cd873e065/manifests/init.pp (L45)

Change-Id: I830e59595a4bcdc60a5cec29d5b8672b7cd8e082
This commit is contained in:
Javier Pena 2017-09-04 13:06:40 +02:00
parent 3fadea0a99
commit 385f75b9c4
1 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ define enable_rabbitmq {
class { '::rabbitmq':
port => undef,
ssl_port => hiera('CONFIG_AMQP_CLIENTS_PORT'),
ssl_port => 0 + hiera('CONFIG_AMQP_CLIENTS_PORT'),
ssl_only => true,
ssl => true,
ssl_cacert => $kombu_ssl_ca_certs,
@ -37,7 +37,7 @@ define enable_rabbitmq {
}
} else {
class { '::rabbitmq':
port => hiera('CONFIG_AMQP_CLIENTS_PORT'),
port => 0 + hiera('CONFIG_AMQP_CLIENTS_PORT'),
ssl => false,
default_user => hiera('CONFIG_AMQP_AUTH_USER'),
default_pass => hiera('CONFIG_AMQP_AUTH_PASSWORD'),