Add hostname to node name.

This commit is contained in:
Adam Gandelman 2013-03-08 12:12:23 -08:00
parent f9f43c3e65
commit 9020570186
2 changed files with 3 additions and 4 deletions

View File

@ -130,9 +130,8 @@ def ha_joined():
# rabbit node-name need to match on all nodes.
utils.juju_log('INFO','Stopping rabbitmq-server.')
utils.stop('rabbitmq-server')
rabbit.set_node_name(SERVICE_NAME)
with open('/etc/rabbitmq/rabbitmq.conf.d/node-name', 'wb') as out:
out.write('RABBITMQ_NODENAME=%s@localhost' % SERVICE_NAME)
rabbit.set_node_name('%s@localhost' % SERVICE_NAME)
relation_settings = {}
relation_settings['corosync_bindiface'] = corosync_bindiface

View File

@ -1 +1 @@
79
80