Add optional host to ceilometer.conf

By default cfg.CONF.host is the `hostname` of local node, however, not all envs
register their hosts by the fqdn.  This allows a configurable attr to add to
the ceilometer.conf

Change-Id: If80cd5264a02eeb7c94655716839642dd7993906
This commit is contained in:
John Tran 2013-09-05 18:44:20 +00:00
parent 93e308a163
commit f19a0d9d00
3 changed files with 9 additions and 1 deletions

View File

@ -3,6 +3,11 @@ openstack-metering Cookbook CHANGELOG
This file is used to list changes made in each version of the openstack-metering cookbook.
v7.0.2
------
### Improvement
- Add optional host to the ceilometer.conf
v7.0.1
------
### Bug

View File

@ -4,7 +4,7 @@ maintainer_email "cookbooks@lists.tfoundry.com"
license "Apache 2.0"
description "The OpenStack Metering service Ceilometer."
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version "7.0.1"
version "7.0.2"
recipe "openstack-metering::agent-central", "Installs agent central service."
recipe "openstack-metering::agent-compute", "Installs agent compute service."

View File

@ -1,4 +1,7 @@
[DEFAULT]
<% if node["openstack"]["metering"]["host"] %>
host = <%= node["openstack"]["metering"]["host"] %>
<% end %>
os_auth_url = <%= @auth_uri %>
os_tenant_name = <%= @service_tenant_name %>
os_password = <%= @service_pass %>