view modules/mysql/templates/my.cnf.erb @ 317:2a20a5b7f65a

Swap IPv6 Postfix to "all" protocols to support PROXY Without this the proxied connection sends "PROXY TCPv4" and Postfix rejects it
author IBBoard <dev@ibboard.co.uk>
date Sat, 29 Feb 2020 13:21:01 +0000
parents 48d3a1948e4d
children c6c9a2cfcfbd
line wrap: on
line source

### MANAGED BY PUPPET ###

<% @options.sort.map do |k,v| -%>
<%   if v.is_a?(Hash) -%>
[<%=   k %>]
<%     v.sort.map do |ki, vi| -%>
<%       if ki == 'ssl-disable' or (ki =~ /^ssl/ and v['ssl-disable'] == true) -%>
<%         next %>
<%       elsif vi == true or vi == '' -%>
<%=        ki %>
<%       elsif vi.is_a?(Array) -%>
<%         vi.each do |vii| -%>
<%=          ki %> = <%= vii %>
<%         end -%>
<%       elsif ![nil, '', :undef].include?(vi) -%>
<%=        ki %> = <%= vi %>
<%       end -%>
<%     end -%>
<%   end %>
<% end -%>

<% if @includedir and @includedir != '' %>
!includedir <%= @includedir %>
<% end %>