Add hostname to node name.
This commit is contained in:
parent
f9f43c3e65
commit
9020570186
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue