Fix telegraf with zookeeper (wrong port variable reference)

Change-Id: I29f65c83b9bd45e463d868cf9a55611f33fe3177
Closes-bug: #1867179
(cherry picked from commit 939b6f795825b88663096bf97deb7a2db634bc45)
This commit is contained in:
Radosław Piliszek 2020-03-12 19:15:56 +01:00 committed by Mark Goddard
parent d2a0786065
commit 0f99f5aa08
2 changed files with 7 additions and 1 deletions

View File

@ -82,7 +82,7 @@
{% endif %}
{% if inventory_hostname in groups['zookeeper'] and enable_zookeeper | bool %}
[[inputs.zookeeper]]
servers = ["{{ api_interface_address }}:{{ zookeeper_port }}"]
servers = ["{{ api_interface_address }}:{{ zookeeper_client_port }}"]
{% endif %}
{% if inventory_hostname in groups['mariadb'] and (enable_mariadb or enable_external_mariadb_load_balancer) | bool %}
[[inputs.mysql]]

View File

@ -0,0 +1,6 @@
---
fixes:
- |
Fixes failure to deploy telegraf with monitoring of zookeeper due
to wrong variable being referenced.
`LP#1867179 <https://launchpad.net/bugs/1867179>`__