# Generated by Puppet

<Plugin mysql>
  <Database "<%= @database %>">
    Host "<%= @host %>"
    User "<%= @username %>"
    Password "<%= @password %>"
<% if scope.lookupvar('collectd::collectd_version_real') and (scope.function_versioncmp([scope.lookupvar('collectd::collectd_version_real'), '5.0']) >= 0) -%>
    Port "<%= @port %>"
<% else -%>
    Port <%= @port %>
<% end -%>
    MasterStats <%= @masterstats %>
    SlaveStats <%= @slavestats %>
<%- if @socket -%>
    Socket "<%= @socket %>"
<%- end -%>
<% if scope.lookupvar('collectd::collectd_version_real') and (scope.function_versioncmp([scope.lookupvar('collectd::collectd_version_real'), '5.5']) >= 0) -%>
<%- if not @innodbstats.nil? -%>
    InnodbStats <%= @innodbstats %>
<%- end -%>
<%- if not @wsrepstats.nil? -%>
    WsrepStatsStats <%= @WsrepStats %>
<%- end -%>
<%- end -%>
<%- if not @slavenotifications.nil? -%>
    SlaveNotifications <%= @slavenotifications %>
<%- end -%>
  </Database>
</Plugin>

# Generated by Puppet

<Plugin mysql>
  <Database "<%= @database %>">
    Host "<%= @host %>"
    User "<%= @username %>"
    Password "<%= @password %>"
<% if scope.lookupvar('collectd::collectd_version_real') and (scope.function_versioncmp([scope.lookupvar('collectd::collectd_version_real'), '5.0']) >= 0) -%>
    Port "<%= @port %>"
<% else -%>
    Port <%= @port %>
<% end -%>
    MasterStats <%= @masterstats %>
    SlaveStats <%= @slavestats %>
<%- if @socket -%>
    Socket "<%= @socket %>"
<%- end -%>
<% if scope.lookupvar('collectd::collectd_version_real') and (scope.function_versioncmp([scope.lookupvar('collectd::collectd_version_real'), '5.5']) >= 0) -%>
<%- if not @innodbstats.nil? -%>
    InnodbStats <%= @innodbstats %>
<%- end -%>
<%- if not @wsrepstats.nil? -%>
    WsrepStats <%= @wsrepstats %>
<%- end -%>
<%- end -%>
<%- if not @slavenotifications.nil? -%>
    SlaveNotifications <%= @slavenotifications %>
<%- end -%>
  </Database>
</Plugin>

Correct the mysql WsrepStats parameter
Correct the mysql WsrepStats parameter
