Commit 6c081113 authored by Silvio Rhatto's avatar Silvio Rhatto

Adding sqldumpoptions parameter to backupninja::mysql

parent 38153777
...@@ -18,7 +18,7 @@ define backupninja::mysql( ...@@ -18,7 +18,7 @@ define backupninja::mysql(
$order = 10, $ensure = present, $user = false, $dbusername = false, $dbpassword = false, $order = 10, $ensure = present, $user = false, $dbusername = false, $dbpassword = false,
$dbhost = 'localhost', $databases = 'all', $backupdir = false, $hotcopy = false, $dbhost = 'localhost', $databases = 'all', $backupdir = false, $hotcopy = false,
$sqldump = false, $compress = false, $configfile = true, $sqldump = false, $compress = false, $configfile = true,
$vsname = false) $vsname = false, $sqldumpoptions = '--lock-tables --complete-insert --add-drop-table --quick --quote-names')
{ {
$real_configfile = $configfile ? { $real_configfile = $configfile ? {
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
# the next time Puppet runs. Please make configuration changes to this # the next time Puppet runs. Please make configuration changes to this
# service in Puppet. # 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) if send(v)
-%><%= v + ' = ' + send(v) + "\n" %><% -%><%= v + ' = ' + send(v) + "\n" %><%
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment