aboutsummaryrefslogtreecommitdiff
path: root/templates/mysql.conf.erb
diff options
context:
space:
mode:
Diffstat (limited to 'templates/mysql.conf.erb')
-rw-r--r--templates/mysql.conf.erb14
1 files changed, 14 insertions, 0 deletions
diff --git a/templates/mysql.conf.erb b/templates/mysql.conf.erb
new file mode 100644
index 0000000..a26976a
--- /dev/null
+++ b/templates/mysql.conf.erb
@@ -0,0 +1,14 @@
+# This configuration file was auto-generated by the Puppet configuration
+# management system. Any changes you make to this file will be overwritten
+# the next time Puppet runs. Please make configuration changes to this
+# service in Puppet.
+
+<% %w{user dbusername dbpassword dbhost databases backupdir}.each do |v|
+ if send(v)
+ -%><%= v + ' = ' + send(v) + "\n" %><%
+ end
+end -%>
+
+hotcopy = <%= hotcopy ? 'yes' : 'no' %>
+sqldump = <%= sqldump ? 'yes' : 'no' %>
+compress = <%= compress ? 'yes' : 'no' %>