diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2012-09-05 13:10:28 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2012-09-05 13:10:28 -0300 |
commit | 6c081113990344c14c96586024258ebc7dfa6de8 (patch) | |
tree | d9c14f95a190c0b421068e12d3ab7e3cd49c26c6 | |
parent | 3815377799754d09f5ca28efdda8b78d9d3e2aa4 (diff) | |
download | puppet-backupninja-6c081113990344c14c96586024258ebc7dfa6de8.tar.gz puppet-backupninja-6c081113990344c14c96586024258ebc7dfa6de8.tar.bz2 |
Adding sqldumpoptions parameter to backupninja::mysql
-rw-r--r-- | manifests/mysql.pp | 2 | ||||
-rw-r--r-- | templates/mysql.conf.erb | 2 |
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 |