Enable ceilometer metering

Sets cronjob for audit and control_exchange

Change-Id: Ib8626f0b756f8a4f0294a5451bdf759ff2ae675e
This commit is contained in:
John Tran 2013-09-09 00:17:57 +00:00
parent 1c95ddcaba
commit a5cff83f5c
5 changed files with 23 additions and 3 deletions

View File

@ -2,8 +2,8 @@
"sha": "ba71763fac936d414bd4a63f004357f86f6e1bfb",
"sources": {
"openstack-block-storage": {
"locked_version": "7.0.0",
"constraint": "= 7.0.0",
"locked_version": "7.0.1",
"constraint": "= 7.0.1",
"path": "."
},
"openstack-image": {

9
CHANGELOG.md Normal file
View File

@ -0,0 +1,9 @@
openstack-block-storage Cookbook CHANGELOG
==============================
This file is used to list changes made in each version of the openstack-block-storage cookbook.
v7.0.1
------
### Improvement
- Add audit cronjob and enable control_exchange, when metering enabled

View File

@ -4,7 +4,7 @@ maintainer_email "cookbooks@lists.tfoundry.com"
license "Apache 2.0"
description "The OpenStack Advanced Volume Management service Cinder."
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version "7.0.0"
version "7.0.1"
recipe "openstack-block-storage::common", "Defines the common pieces of repeated code from the other recipes"
recipe "openstack-block-storage::api", "Installs the cinder-api, sets up the cinder database, and cinder service/user/endpoints in keystone"

View File

@ -54,3 +54,11 @@ service "cinder-scheduler" do
action [ :enable, :start ]
subscribes :restart, "template[/etc/cinder/cinder.conf]"
end
if node["openstack"]["metering"]
cron "cinder-volume-usage-audit" do
command "cinder-volume-usage-audit > /var/log/cinder/audit.log 2>&1"
action :create
user node["openstack"]["block-storage"]["user"]
end
end

View File

@ -170,6 +170,9 @@ auth_strategy=keystone
#### (StrOpt) The strategy to use for auth. Supports noauth, keystone, and
#### deprecated.
<% if node["openstack"]["block-storage"]["rabbit"]["control_exchange"] %>
control_exchange=<%=node["openstack"]["block-storage"]["rabbit"]["control_exchange"]%>
<% end %>
# control_exchange=cinder
#### (StrOpt) AMQP exchange to connect to if using RabbitMQ or Qpid