X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/faf8ae12e85eabb050b0f5eceb2cb67ad1de5261..6308ad8a8eb6ead04c2a1b9be15ee3a496cd09de:/cookbooks/mysql/templates/default/my.cnf.erb?ds=inline diff --git a/cookbooks/mysql/templates/default/my.cnf.erb b/cookbooks/mysql/templates/default/my.cnf.erb index a03aebc8d..65740ec67 100644 --- a/cookbooks/mysql/templates/default/my.cnf.erb +++ b/cookbooks/mysql/templates/default/my.cnf.erb @@ -1 +1,12 @@ # DO NOT EDIT - This file is being maintained by Chef +<% node[:mysql][:settings].each do |section,settings| -%> + +[<%= section %>] +<% settings.each do |name, value| -%> +<% if value.is_a?(TrueClass) -%> +<%= name %> +<% else -%> +<%= name %> = <%= value %> +<% end -%> +<% end -%> +<% end -%>