2013-09-13 19:13:26 +02:00
|
|
|
<% @options.sort.map do |k,v| -%>
|
2014-01-23 01:53:51 +01:00
|
|
|
<% if v.is_a?(Hash) -%>
|
|
|
|
[<%= k %>]
|
|
|
|
<% v.sort.map do |ki, vi| -%>
|
2014-03-06 14:03:13 +01:00
|
|
|
<% if ki == 'ssl-disable' or (ki =~ /^ssl/ and v['ssl-disable'] == true) -%>
|
2014-02-28 19:07:48 +01:00
|
|
|
<% next %>
|
|
|
|
<% elsif vi == true or v == '' -%>
|
2014-01-23 01:53:51 +01:00
|
|
|
<%= ki %>
|
|
|
|
<% elsif vi.is_a?(Array) -%>
|
|
|
|
<% vi.each do |vii| -%>
|
|
|
|
<%= ki %> = <%= vii %>
|
|
|
|
<% end -%>
|
2014-01-24 01:55:48 +01:00
|
|
|
<% elsif vi != :undef -%>
|
2014-01-23 01:53:51 +01:00
|
|
|
<%= ki %> = <%= vi %>
|
|
|
|
<% end -%>
|
|
|
|
<% end -%>
|
|
|
|
<% end %>
|
2013-04-07 22:20:36 +02:00
|
|
|
<% end -%>
|
2012-03-20 00:24:01 +01:00
|
|
|
|
2011-06-22 20:38:11 +02:00
|
|
|
!includedir /etc/mysql/conf.d/
|