view modules/mysql/templates/my.cnf.erb @ 102:47ddb26af9bd puppet-3.6

Avoid SELinux warnings by disabling bytecode support ClamAV claims to have it locked down tight, but executing JITed byte code from assorted rules in an AV product *does* seem a little risky. Since it is optional, don't do it.
author IBBoard <dev@ibboard.co.uk>
date Tue, 22 Mar 2016 21:09:25 +0000
parents 58d1818c2ded
children 48d3a1948e4d
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 v == '' -%>
<%=        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 %>