Add generic relation broken hook.

This commit is contained in:
Adam Gandelman 2013-08-20 12:09:15 -07:00
parent acd9ff2785
commit d6d2583133
5 changed files with 12 additions and 0 deletions

1
hooks/ceph-relation-broken Symbolic link
View File

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

View File

@ -282,6 +282,14 @@ def ha_relation_changed():
[image_service_joined(rid) for rid in relation_ids('image-service')]
@hooks.hook('ceph-relation-broken',
'identity-service-relation-broken',
'object-store-relation-broken',
'shared-db-relation-broken')
def relation_broken():
CONFIGS.write_all()
def configure_https():
'''
Enables SSL API Apache config if appropriate and kicks

View File

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

View File

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

View File

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