Skip to content

Instantly share code, notes, and snippets.

@sabcio
Created February 18, 2015 10:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sabcio/0067456c38e5448118be to your computer and use it in GitHub Desktop.
Save sabcio/0067456c38e5448118be to your computer and use it in GitHub Desktop.
Diff mariadb cookbook
diff --git a/templates/default/my.cnf.erb b/templates/default/my.cnf.erb
index 5f4f737..fcc41da 100644
--- a/templates/default/my.cnf.erb
+++ b/templates/default/my.cnf.erb
@@ -323,6 +323,12 @@ skip-show-database
# ssl-cert=/etc/mysql/server-cert.pem
# ssl-key=/etc/mysql/server-key.pem
+<% if node['mariadb'].key?('options') -%>
+<% node['mariadb']['options'].each { |key, value| -%>
+<%= key %> = <%= value %>
+<% } -%>
+<% end -%>
+
[mysqldump]
quick
quote-names
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment