diff --git a/defaults/main.yml b/defaults/main.yml index 1092575e..6a6a28aa 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -16,6 +16,9 @@ # Defines that the role will be deployed on a host machine is_metal: true +# Enable/Disable ceilometer configurations +nova_ceilometer_enabled: False + ## Verbosity Options debug: False verbose: True diff --git a/templates/nova.conf.j2 b/templates/nova.conf.j2 index e3d8b5d9..8ac145e4 100644 --- a/templates/nova.conf.j2 +++ b/templates/nova.conf.j2 @@ -100,6 +100,14 @@ max_age = {{ nova_max_age }} # Common memcached_servers = {{ memcached_servers }} +# Ceilometer notification configurations +{% if nova_ceilometer_enabled %} +instance_usage_audit = True +instance_usage_audit_period = hour +notify_on_state_change = vm_and_task_state +notification_driver = messagingv2 +{% endif %} + # Cinder [cinder] catalog_info = volume:cinder:internalURL