aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJamie McClelland <jm@mayfirst.org>2011-03-15 21:13:11 -0400
committerJamie McClelland <jm@mayfirst.org>2011-03-15 21:13:11 -0400
commit54d77c688d6193da2d8f96f6e1937ecb13225d97 (patch)
tree98ef9c585f29e50417db30dcc8a03fef1c60286f
parent93851f9f3677009885e54fd53d9150aa5f527078 (diff)
downloadpuppet-backupninja-54d77c688d6193da2d8f96f6e1937ecb13225d97.tar.gz
puppet-backupninja-54d77c688d6193da2d8f96f6e1937ecb13225d97.tar.bz2
Take advantage of nodata option in mysql backupninja config
-rw-r--r--manifests/mysql.pp2
-rw-r--r--templates/mysql.conf.erb5
2 files changed, 6 insertions, 1 deletions
diff --git a/manifests/mysql.pp b/manifests/mysql.pp
index 83d8f8f..f968cf9 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, $nodata = false)
{
$real_configfile = $configfile ? {
diff --git a/templates/mysql.conf.erb b/templates/mysql.conf.erb
index 14905fd..2efa4b1 100644
--- a/templates/mysql.conf.erb
+++ b/templates/mysql.conf.erb
@@ -16,3 +16,8 @@ compress = <%= compress ? 'yes' : 'no' %>
<% if real_configfile %>
configfile = <%= real_configfile %>
<% end %>
+
+<% if nodata %>
+nodata = <% nodata.each do |dbtable| -%><%= dbtable %> <% end -%>
+<% end %>
+