]> gitweb.fluxo.info Git - puppet-backup.git/commitdiff
Make audit_rsync a parameter
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 25 Jan 2013 18:38:39 +0000 (16:38 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 25 Jan 2013 18:38:39 +0000 (16:38 -0200)
manifests/init.pp

index 06b08f621eb6b946fcf7a38ec3ea69091078c469..90882a917d741fe08b4105d93b64aaf45e66e5c6 100644 (file)
@@ -36,7 +36,8 @@ $backup_exclude_encrypted = [ "$backupdir/duplicity/.ssh", ]
 $backupninja_ensure_version = 'latest'
 
 class backup(
-  $when = hiera('backup::when', 'everyday at 01:00')
+  $when        = hiera('backup::when',        'everyday at 01:00'),
+  $audit_rsync = hiera('backup::audit_rsync', True)
 ) {
 
   include backupninja::server
@@ -109,7 +110,7 @@ class backup(
     user     => root,
     hour     => "0",
     minute   => "0",
-    weekday  => $backup_audit_rsync ? { 
+    weekday  => $audit_rsync ? {
       true    => '*',
       default => "0",
     },