Change-Id: Iec2d27cc4fdab9ba7772e9c26be66ba54f5aadfc Depends-On: Ice4f38abfb0d870c56763dfeda2140032fa752a1pull/26/merge
{%- 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 %} |
enabled: true | enabled: true | ||||
grafana: | grafana: | ||||
enabled: true | enabled: true | ||||
telegraf: | |||||
enabled: true |