From fc6458e9e438a76220af57edaef54ccf3228f6f7 Mon Sep 17 00:00:00 2001 From: Gabriel Filion Date: Thu, 5 Dec 2013 16:19:52 -0500 Subject: 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. --- templates/conf.erb | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 templates/conf.erb (limited to 'templates') 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 %> -- cgit v1.2.3