Enable compute vm notifications
In case when controller and compute are deployed on the same host
we need to have ability to set compute notifications options in controller
conf.
Change-Id: I987d0790dc0c4dc70f10e5bc4ed15963008337e0
diff --git a/nova/files/pike/nova-controller.conf.Debian b/nova/files/pike/nova-controller.conf.Debian
index d8d58d2..87f80e2 100644
--- a/nova/files/pike/nova-controller.conf.Debian
+++ b/nova/files/pike/nova-controller.conf.Debian
@@ -94,6 +94,9 @@
# starting on 15th day of month.
# (string value)
#instance_usage_audit_period=month
+{% if controller.instance_usage_audit_period is defined %}
+instance_usage_audit_period = {{ controller.instance_usage_audit_period }}
+{%- endif %}
#
# Start and use a daemon that can run the commands that need to be run with
@@ -639,6 +642,9 @@
# notifications are consumed by OpenStack Telemetry service.
# (boolean value)
#instance_usage_audit=false
+{% if controller.instance_usage_audit is defined %}
+instance_usage_audit = {{ controller.instance_usage_audit }}
+{%- endif %}
#
# Maximum number of 1 second retries in live_migration. It specifies number
@@ -7291,6 +7297,11 @@
# Allowed values: <None>, vm_state, vm_and_task_state
# Deprecated group/name - [DEFAULT]/notify_on_state_change
#notify_on_state_change=<None>
+{%- if controller.get('notification', {}).notify_on is defined %}
+{%- for key, value in controller.notification.notify_on.iteritems() %}
+notify_on_{{ key }} = {{ value }}
+{%- endfor %}
+{%- endif %}
#
# If enabled, send api.fault notifications on caught exceptions in the