Enable leader-settings-changed

This commit is contained in:
James Page 2015-03-13 14:56:44 +00:00
parent 5426786561
commit 73534a4710
2 changed files with 9 additions and 0 deletions

View File

@ -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()

View File

@ -0,0 +1 @@
keystone_hooks.py