summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorGabriel Filion <gabster@lelutin.ca>2013-12-05 16:19:52 -0500
committerGabriel Filion <gabster@lelutin.ca>2013-12-05 16:19:52 -0500
commitfc6458e9e438a76220af57edaef54ccf3228f6f7 (patch)
tree1766dff731857b2a5ba0ff9d95efb2460d009860 /templates
parent6d9a84686734e598249410bf60eedf2d7fd2e521 (diff)
manage configuration snippets in a conf.d directory
this should make it easier to override values from my.cnf, or to set other values that aren't in the main config file.
Diffstat (limited to 'templates')
-rw-r--r--templates/conf.erb9
1 files changed, 9 insertions, 0 deletions
diff --git a/templates/conf.erb b/templates/conf.erb
new file mode 100644
index 0000000..c7e332a
--- /dev/null
+++ b/templates/conf.erb
@@ -0,0 +1,9 @@
+# THIS FILE IS MANAGED BY PUPPET
+[<%= @section -%>]
+<% @config.each do |key, value| -%>
+<% if value != '' -%>
+<%= key -%> = <%= value %>
+<% else -%>
+<%= key %>
+<% end -%>
+<% end %>