File: do-not-emit-other-ssl-directives-when-ssl-is-false.patch

package info (click to toggle)
puppet-module-puppetlabs-mysql 8.1.0-7
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,020 kB
  • sloc: ruby: 4,234; sh: 26; makefile: 5
file content (17 lines) | stat: -rw-r--r-- 717 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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 %>