sync creds to peers
This commit is contained in:
parent
35fb2406bd
commit
a364275604
|
@ -79,10 +79,11 @@ def amqp_changed(relation_id=None, remote_unit=None, needs_leader=True):
|
|||
relation_settings['rid'] = relation_id
|
||||
utils.relation_set(**relation_settings)
|
||||
|
||||
unison.ssh_authorized_peers(user=rabbit.SSH_USER,
|
||||
group='rabbit',
|
||||
peer_interface='cluster',
|
||||
ensure_local_user=True)
|
||||
# sync new creds to all peers
|
||||
unison.sync_to_peers(peer_interface='cluster',
|
||||
paths=[rabbit.LIB_PATH],
|
||||
user=SSH_USER,
|
||||
verbose=True)
|
||||
|
||||
|
||||
def cluster_joined():
|
||||
|
|
Loading…
Reference in New Issue