added host to ceilometer.conf file

This commit is contained in:
yolanda.robla@canonical.com 2013-04-05 15:29:39 +02:00
parent 5d0e3a1207
commit b23db35bbb
3 changed files with 3 additions and 1 deletions

View File

@ -38,6 +38,7 @@ def render_ceilometer_conf(context):
if (context and os.path.exists(ceilometer_utils.CEILOMETER_CONF)):
# merge contexts
context['service_port'] = ceilometer_utils.CEILOMETER_PORT
context['ceilometer_host'] = utils.get_unit_hostname()
with open(ceilometer_utils.CEILOMETER_CONF, "w") as conf:
conf.write(utils.render_template(

View File

@ -1 +1 @@
16
17

View File

@ -12,3 +12,4 @@ os_tenant_name = {{ keystone_os_tenant }}
os_username = {{ keystone_os_username }}
os_password = {{ keystone_os_password }}
logdir = /var/log/ceilometer
host = {{ ceilometer_host }}