diff --git a/charms/glance-k8s/config.yaml b/charms/glance-k8s/config.yaml index 3b36e24f..8631c2d7 100644 --- a/charms/glance-k8s/config.yaml +++ b/charms/glance-k8s/config.yaml @@ -255,3 +255,7 @@ options: description: | Value of bluestore compression max blob size for solid state media on pools requested by this charm. + enable-telemetry-notifications: + type: boolean + default: False + description: Enable notifications to send to telemetry. diff --git a/charms/glance-k8s/src/templates/glance-api.conf.j2 b/charms/glance-k8s/src/templates/glance-api.conf.j2 index 9c5739f6..57da88c0 100644 --- a/charms/glance-k8s/src/templates/glance-api.conf.j2 +++ b/charms/glance-k8s/src/templates/glance-api.conf.j2 @@ -22,6 +22,8 @@ enabled_backends = filestore:file {% include "parts/section-service-user" %} +{% include "parts/section-oslo-notifications" %} + [glance_store] {% if ceph.auth %} default_backend = ceph diff --git a/charms/glance-k8s/src/templates/parts/section-oslo-notifications b/charms/glance-k8s/src/templates/parts/section-oslo-notifications new file mode 100644 index 00000000..ce559feb --- /dev/null +++ b/charms/glance-k8s/src/templates/parts/section-oslo-notifications @@ -0,0 +1,4 @@ +{% if options.enable_telemetry_notifications -%} +[oslo_messaging_notifications] +driver = messagingv2 +{%- endif %}