diff --git a/hooks/ceilometer_hooks.py b/hooks/ceilometer_hooks.py index bfc598b..1496307 100755 --- a/hooks/ceilometer_hooks.py +++ b/hooks/ceilometer_hooks.py @@ -109,6 +109,14 @@ def upgrade_charm(): any_changed() +@hooks.hook('cluster-relation-joined', + 'cluster-relation-changed', + 'cluster-relation-departed') +@restart_on_change(restart_map(), stopstart=True) +def cluster_changed(): + CONFIGS.write_all() + + @hooks.hook('ha-relation-joined') def ha_joined(): cluster_config = get_hacluster_config() diff --git a/hooks/cluster-relation-changed b/hooks/cluster-relation-changed new file mode 120000 index 0000000..c948469 --- /dev/null +++ b/hooks/cluster-relation-changed @@ -0,0 +1 @@ +ceilometer_hooks.py \ No newline at end of file diff --git a/hooks/cluster-relation-departed b/hooks/cluster-relation-departed new file mode 120000 index 0000000..c948469 --- /dev/null +++ b/hooks/cluster-relation-departed @@ -0,0 +1 @@ +ceilometer_hooks.py \ No newline at end of file diff --git a/hooks/cluster-relation-joined b/hooks/cluster-relation-joined new file mode 120000 index 0000000..c948469 --- /dev/null +++ b/hooks/cluster-relation-joined @@ -0,0 +1 @@ +ceilometer_hooks.py \ No newline at end of file