Description: do not emit other ssl directives when ssl = false
 This is needed for newer versions of MariaDB, see issue #1509
Author: Thomas Goirand <zigo@debian.org>
Forwarded: no
Last-Update: 2023-02-17

--- puppet-module-puppetlabs-mysql-8.1.0.orig/templates/my.cnf.erb
+++ puppet-module-puppetlabs-mysql-8.1.0/templates/my.cnf.erb
@@ -4,7 +4,7 @@
 <%   if v.is_a?(Hash) -%>
 [<%=   k %>]
 <%     v.sort.map do |ki, vi| -%>
-<%       if ki == 'ssl-disable' or (ki =~ /^ssl/ and v['ssl-disable'] == true) -%>
+<%       if ki == 'ssl-disable' or (ki =~ /^ssl/ and v['ssl-disable'] == true) or (ki =~ /^ssl-/ and v['ssl'] == false) -%>
 <%         next %>
 <%       elsif vi == true or vi == '' -%>
 <%=        ki %>
