summaryrefslogtreecommitdiff
path: root/templates/mysql.conf.erb
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2007-11-20 03:14:55 +0000
committerMicah Anderson <micah@riseup.net>2007-11-20 03:14:55 +0000
commit794856bfff4f93066570f06280170609794e157a (patch)
tree47443fdbd76cf220711cfb4c2c1457b865e25598 /templates/mysql.conf.erb
add backupninja module
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' %>