From c3e2cc6c26abdf8505c66cb35d2036f5d7d01318 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fran=C3=A7ois=20Charlier?= Date: Mon, 18 Feb 2013 14:32:06 +0100 Subject: [PATCH] Add required parameters to nova.conf --- manifests/agent/compute.pp | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/manifests/agent/compute.pp b/manifests/agent/compute.pp index 4ad6353..a8e1059 100644 --- a/manifests/agent/compute.pp +++ b/manifests/agent/compute.pp @@ -49,4 +49,27 @@ class ceilometer::agent::compute( 'DEFAULT/os_tenant_id' : value => $auth_tenant_id; } } + + nova_config { + 'instance_usage_audit' : value => 'True'; + 'instance_usage_audit_period' : value => 'hour'; + } + + Nova_config<| |> { + before +> Exec[ + 'nova-notification-driver-common', + 'nova-notification-driver-ceilometer' + ], + } + + exec { 'nova-notification-driver-common': + command => 'git config --file nova.conf --add notification_driver nova.openstack.common.notifier.rabbit_notifier', + onlyif => 'git config --file nova.conf --get notification_driver nova.openstack.common.notifier.rabbit_notifier', + } + + exec { 'nova-notification-driver-ceilometer': + command => 'git config --file nova.conf --add notification_driver ceilometer.compute.nova_notifier', + onlyif => 'git config --file nova.conf --get notification_driver ceilometer.compute.nova_notifier', + } + } -- 2.45.2