Enable ceilometer metering
Sets cronjob for audit and control_exchange Change-Id: Ib8626f0b756f8a4f0294a5451bdf759ff2ae675e
This commit is contained in:
@@ -2,8 +2,8 @@
|
|||||||
"sha": "ba71763fac936d414bd4a63f004357f86f6e1bfb",
|
"sha": "ba71763fac936d414bd4a63f004357f86f6e1bfb",
|
||||||
"sources": {
|
"sources": {
|
||||||
"openstack-block-storage": {
|
"openstack-block-storage": {
|
||||||
"locked_version": "7.0.0",
|
"locked_version": "7.0.1",
|
||||||
"constraint": "= 7.0.0",
|
"constraint": "= 7.0.1",
|
||||||
"path": "."
|
"path": "."
|
||||||
},
|
},
|
||||||
"openstack-image": {
|
"openstack-image": {
|
||||||
|
|||||||
9
CHANGELOG.md
Normal file
9
CHANGELOG.md
Normal 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
|
||||||
@@ -4,7 +4,7 @@ maintainer_email "cookbooks@lists.tfoundry.com"
|
|||||||
license "Apache 2.0"
|
license "Apache 2.0"
|
||||||
description "The OpenStack Advanced Volume Management service Cinder."
|
description "The OpenStack Advanced Volume Management service Cinder."
|
||||||
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
|
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::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"
|
recipe "openstack-block-storage::api", "Installs the cinder-api, sets up the cinder database, and cinder service/user/endpoints in keystone"
|
||||||
|
|||||||
@@ -54,3 +54,11 @@ service "cinder-scheduler" do
|
|||||||
action [ :enable, :start ]
|
action [ :enable, :start ]
|
||||||
subscribes :restart, "template[/etc/cinder/cinder.conf]"
|
subscribes :restart, "template[/etc/cinder/cinder.conf]"
|
||||||
end
|
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
|
||||||
|
|||||||
@@ -170,6 +170,9 @@ auth_strategy=keystone
|
|||||||
#### (StrOpt) The strategy to use for auth. Supports noauth, keystone, and
|
#### (StrOpt) The strategy to use for auth. Supports noauth, keystone, and
|
||||||
#### deprecated.
|
#### deprecated.
|
||||||
|
|
||||||
|
<% if node["openstack"]["block-storage"]["rabbit"]["control_exchange"] %>
|
||||||
|
control_exchange=<%=node["openstack"]["block-storage"]["rabbit"]["control_exchange"]%>
|
||||||
|
<% end %>
|
||||||
# control_exchange=cinder
|
# control_exchange=cinder
|
||||||
#### (StrOpt) AMQP exchange to connect to if using RabbitMQ or Qpid
|
#### (StrOpt) AMQP exchange to connect to if using RabbitMQ or Qpid
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user