From b76a613f4733e88d4bdda1060ecada5b094829a5 Mon Sep 17 00:00:00 2001 From: Christian Berendt Date: Thu, 15 Sep 2016 12:27:04 +0200 Subject: [PATCH] Fix ceilometer.conf template mongodb_port is already part of ceilometer_database_address TrivialFix Change-Id: I1eabd5e6d59215eea624d1b242b4e3820cf206ce --- ansible/roles/ceilometer/templates/ceilometer.conf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/roles/ceilometer/templates/ceilometer.conf.j2 b/ansible/roles/ceilometer/templates/ceilometer.conf.j2 index 6ffe3b476f..e54211d1fe 100644 --- a/ansible/roles/ceilometer/templates/ceilometer.conf.j2 +++ b/ansible/roles/ceilometer/templates/ceilometer.conf.j2 @@ -13,7 +13,7 @@ host = {{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['addr [database] {% if ceilometer_database_type == "mongodb" %} -connection = mongodb://{{ ceilometer_database_user }}:{{ ceilometer_database_password }}@{{ ceilometer_database_address }}:{{ mongodb_port }}/{{ ceilometer_database_name }} +connection = mongodb://{{ ceilometer_database_user }}:{{ ceilometer_database_password }}@{{ ceilometer_database_address }}/{{ ceilometer_database_name }} {% elif ceilometer_database_type == "mysql" %} connection = mysql+pymysql://{{ ceilometer_database_user }}:{{ ceilometer_database_password }}@{{ ceilometer_database_address }}/{{ ceilometer_database_name }} {% endif %}