diff --git a/ansible/roles/ceilometer/templates/ceilometer.conf.j2 b/ansible/roles/ceilometer/templates/ceilometer.conf.j2 index 413aab5fe3..bba77f04aa 100644 --- a/ansible/roles/ceilometer/templates/ceilometer.conf.j2 +++ b/ansible/roles/ceilometer/templates/ceilometer.conf.j2 @@ -4,6 +4,10 @@ debug = {{ ceilometer_logging_debug }} log_dir = /var/log/kolla/ceilometer rpc_backend = rabbit +[api] +port = {{ ceilometer_api_port }} +host = {{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }} + [collector] [database]