From f70f0434a099bdbff402e86d19a2d4223367b143 Mon Sep 17 00:00:00 2001 From: Miguel Cantu Date: Mon, 6 Apr 2015 14:39:11 +0000 Subject: [PATCH] Implement Ceilometer This patch implements the implement-ceilometer blueprint. It addes the necessary role/variables to deploy ceilometer with a Mongodb backend. The Monogdb backend is assumed to be up and configured and the playbooks only require a few values to be set in user_variables to establish a connection. Change-Id: I2164a1f27f632ce254cc2711ada2c449a9961fed Implements: blueprint implement-ceilometer --- defaults/main.yml | 3 +++ templates/nova.conf.j2 | 8 ++++++++ 2 files changed, 11 insertions(+) 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