Force epmd listening to a specific address
authorMichele Baldessari <michele@acksyn.org>
Sat, 31 Dec 2016 16:55:00 +0000 (17:55 +0100)
committerMichele Baldessari <michele@acksyn.org>
Sat, 31 Dec 2016 22:01:30 +0000 (23:01 +0100)
With this change we export ERL_EPMD_ADDRESS set to the
address rabbitmq is listening too. We need to explicitely
export it so that epmd can pick it up and bind to the address.

Closes-Bug: #1645898

Change-Id: Iacb2ee262da419f61ec3511f42b395f69f5d14da

puppet/services/rabbitmq.yaml

index 08f3f6b..15a90b6 100644 (file)
@@ -77,6 +77,7 @@ outputs:
           NODE_IP_ADDRESS: ''
           RABBITMQ_NODENAME: "rabbit@%{::hostname}"
           RABBITMQ_SERVER_ERL_ARGS: '"+K true +P 1048576 -kernel inet_default_connect_options [{nodelay,true},{raw,6,18,<<5000:64/native>>}] -kernel inet_default_listen_options [{raw,6,18,<<5000:64/native>>}]"'
+          'export ERL_EPMD_ADDRESS': "%{hiera('rabbitmq::interface')}"
         rabbitmq_kernel_variables:
           inet_dist_listen_min: '25672'
           inet_dist_listen_max: '25672'