Change-Id: Iec2d27cc4fdab9ba7772e9c26be66ba54f5aadfc Depends-On: Ice4f38abfb0d870c56763dfeda2140032fa752a1revert-bumpto57-2
@@ -0,0 +1,18 @@ | |||
{%- if pillar.galera is defined %} | |||
{%- if pillar.galera.master is defined %} | |||
{%- from "galera/map.jinja" import master with context %} | |||
{%- set server = master %} | |||
{%- elif pillar.galera.slave is defined %} | |||
{%- from "galera/map.jinja" import slave with context %} | |||
{%- set server = slave %} | |||
{%- endif %} | |||
{%- endif %} | |||
{%- if server is defined %} | |||
agent: | |||
input: | |||
mysql: | |||
address: {{ server.socket }} | |||
username: {{ server.admin.user }} | |||
password: {{ server.admin.password }} | |||
{%- endif %} |
@@ -13,3 +13,5 @@ parameters: | |||
enabled: true | |||
grafana: | |||
enabled: true | |||
telegraf: | |||
enabled: true |