From 2dedb85d5fce4f48001cddfdf7ca048b593ccb66 Mon Sep 17 00:00:00 2001
From: Wolodja Wentland <w@babilen5.org>
Date: Tue, 17 Feb 2015 09:44:16 +0100
Subject: [PATCH] Sort options in my.cnf

Options in my.cnf are not sorted at this moment which introduces unnecessary
changes whenever the file is being rewritten.
---
 mysql/files/my.cnf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mysql/files/my.cnf b/mysql/files/my.cnf
index 86c892e..8e97641 100644
--- a/mysql/files/my.cnf
+++ b/mysql/files/my.cnf
@@ -26,7 +26,7 @@
 {%- if sdata %}
 
 [{{ sname }}]
-{%- for mparam, mvalue in sdata.items()|default([]) -%}
+{%- for mparam, mvalue in sdata.items()|default([])|sort -%}
 {%- set indents = 40 - mparam|count %}
 {% if mvalue == "noarg_present" -%}
 {{ mparam }}
-- 
GitLab