Enable leader-settings-changed
This commit is contained in:
parent
5426786561
commit
73534a4710
@ -406,6 +406,14 @@ def cluster_changed():
|
|||||||
CONFIGS.write_all()
|
CONFIGS.write_all()
|
||||||
|
|
||||||
|
|
||||||
|
@hooks.hook('leader-settings-changed')
|
||||||
|
def leader_settings_changed():
|
||||||
|
log('Firing identity_changed hook for all related services.')
|
||||||
|
for rid in relation_ids('identity-service'):
|
||||||
|
for unit in related_units(rid):
|
||||||
|
identity_changed(relation_id=rid, remote_unit=unit)
|
||||||
|
|
||||||
|
|
||||||
@hooks.hook('ha-relation-joined')
|
@hooks.hook('ha-relation-joined')
|
||||||
def ha_joined(relation_id=None):
|
def ha_joined(relation_id=None):
|
||||||
cluster_config = get_hacluster_config()
|
cluster_config = get_hacluster_config()
|
||||||
|
1
hooks/leader-settings-changed
Symbolic link
1
hooks/leader-settings-changed
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
keystone_hooks.py
|
Loading…
Reference in New Issue
Block a user