diff --git a/hooks/ceph-relation-broken b/hooks/ceph-relation-broken new file mode 120000 index 00000000..e955ca43 --- /dev/null +++ b/hooks/ceph-relation-broken @@ -0,0 +1 @@ +glance_relations.py \ No newline at end of file diff --git a/hooks/glance_relations.py b/hooks/glance_relations.py index 058a71d6..3c2e5f27 100755 --- a/hooks/glance_relations.py +++ b/hooks/glance_relations.py @@ -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 diff --git a/hooks/identity-service-relation-broken b/hooks/identity-service-relation-broken new file mode 120000 index 00000000..e955ca43 --- /dev/null +++ b/hooks/identity-service-relation-broken @@ -0,0 +1 @@ +glance_relations.py \ No newline at end of file diff --git a/hooks/object-store-relation-broken b/hooks/object-store-relation-broken new file mode 120000 index 00000000..e955ca43 --- /dev/null +++ b/hooks/object-store-relation-broken @@ -0,0 +1 @@ +glance_relations.py \ No newline at end of file diff --git a/hooks/shared-db-relation-broken b/hooks/shared-db-relation-broken new file mode 120000 index 00000000..e955ca43 --- /dev/null +++ b/hooks/shared-db-relation-broken @@ -0,0 +1 @@ +glance_relations.py \ No newline at end of file