diff --git a/templates/nova.conf.j2 b/templates/nova.conf.j2 index d0ca0b6..f0acc9a 100644 --- a/templates/nova.conf.j2 +++ b/templates/nova.conf.j2 @@ -36,6 +36,11 @@ ram_allocation_ratio = 1.0 {% if sev and sev.reserved_host_memory_mb -%} reserved_host_memory_mb = {{ sev.reserved_host_memory_mb }} {% endif %} +{% endif -%} + +{%- if telemetry.enable %} +instance_usage_audit = True +instance_usage_audit_period = hour {% endif %} [workarounds] @@ -199,7 +204,7 @@ cafile = {{ snap_common }}/etc/ssl/certs/receive-ca-bundle.pem {% if credentials.ovn_metadata_proxy_shared_secret is defined -%} service_metadata_proxy = True metadata_proxy_shared_secret = {{ credentials.ovn_metadata_proxy_shared_secret }} -{% endif -%} +{% endif %} [placement] auth_url = {{ identity.auth_url }} @@ -232,7 +237,7 @@ password = {{ identity.password }} {% if ca and ca.bundle -%} verify_ssl_path = {{ snap_common }}/etc/ssl/certs/receive-ca-bundle.pem {% endif -%} -{% endif -%} +{% endif %} {% if telemetry.enable -%} [oslo_messaging_notifications] @@ -240,7 +245,7 @@ driver = messagingv2 [notifications] notify_on_state_change = vm_and_task_state -notification_format = versioned +notification_format = both {%- endif %} [oslo_messaging_rabbit]