aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2012-09-05 13:10:28 -0300
committerSilvio Rhatto <rhatto@riseup.net>2012-09-05 13:10:28 -0300
commit6c081113990344c14c96586024258ebc7dfa6de8 (patch)
treed9c14f95a190c0b421068e12d3ab7e3cd49c26c6
parent3815377799754d09f5ca28efdda8b78d9d3e2aa4 (diff)
downloadpuppet-backupninja-6c081113990344c14c96586024258ebc7dfa6de8.tar.gz
puppet-backupninja-6c081113990344c14c96586024258ebc7dfa6de8.tar.bz2
Adding sqldumpoptions parameter to backupninja::mysql
-rw-r--r--manifests/mysql.pp2
-rw-r--r--templates/mysql.conf.erb2
2 files changed, 2 insertions, 2 deletions
diff --git a/manifests/mysql.pp b/manifests/mysql.pp
index 83d8f8f..ee2e71d 100644
--- a/manifests/mysql.pp
+++ b/manifests/mysql.pp
@@ -18,7 +18,7 @@ define backupninja::mysql(
$order = 10, $ensure = present, $user = false, $dbusername = false, $dbpassword = false,
$dbhost = 'localhost', $databases = 'all', $backupdir = false, $hotcopy = false,
$sqldump = false, $compress = false, $configfile = true,
- $vsname = false)
+ $vsname = false, $sqldumpoptions = '--lock-tables --complete-insert --add-drop-table --quick --quote-names')
{
$real_configfile = $configfile ? {
diff --git a/templates/mysql.conf.erb b/templates/mysql.conf.erb
index 14905fd..82dc368 100644
--- a/templates/mysql.conf.erb
+++ b/templates/mysql.conf.erb
@@ -3,7 +3,7 @@
# the next time Puppet runs. Please make configuration changes to this
# service in Puppet.
-<% %w{user dbusername dbpassword dbhost databases backupdir vsname}.each do |v|
+<% %w{user dbusername dbpassword dbhost databases backupdir vsname sqldumpoptions}.each do |v|
if send(v)
-%><%= v + ' = ' + send(v) + "\n" %><%
end