Use FQDNs for RabbitMQ's cluster configuration
authorJuan Antonio Osorio Robles <jaosorior@redhat.com>
Mon, 28 Nov 2016 07:46:39 +0000 (09:46 +0200)
committerJuan Antonio Osorio Robles <jaosorior@redhat.com>
Mon, 28 Nov 2016 13:45:07 +0000 (15:45 +0200)
This sets the cluster_nodes configuration in RabbitMQ to use FQDNs
instead of IP addresses. Note that in HA, RabbitMQ is already
configured using FQDNs.

Change-Id: I2b1cec25ff25f4afd72a28246c2cda9c58d7b61e

manifests/profile/base/rabbitmq.pp

index d90805a..15bab44 100644 (file)
@@ -36,7 +36,7 @@
 #
 # [*nodes*]
 #   (Optional) Array of host(s) for RabbitMQ nodes.
-#   Defaults to hiera('rabbitmq_node_ips', []).
+#   Defaults to hiera('rabbitmq_node_names', []).
 #
 # [*step*]
 #   (Optional) The current step in deployment. See tripleo-heat-templates
@@ -48,7 +48,7 @@ class tripleo::profile::base::rabbitmq (
   $environment      = hiera('rabbitmq_environment'),
   $ipv6             = str2bool(hiera('rabbit_ipv6', false)),
   $kernel_variables = hiera('rabbitmq_kernel_variables'),
-  $nodes            = hiera('rabbitmq_node_ips', []),
+  $nodes            = hiera('rabbitmq_node_names', []),
   $step             = hiera('step'),
 ) {
   # IPv6 environment, necessary for RabbitMQ.