]> gitweb.fluxo.info Git - puppet-backupninja.git/commitdiff
the $password variable also must be set, so spit an error if it is not defined
authorMicah Anderson <micah@riseup.net>
Thu, 27 Aug 2009 21:19:20 +0000 (17:19 -0400)
committerMicah Anderson <micah@riseup.net>
Thu, 27 Aug 2009 21:19:20 +0000 (17:19 -0400)
manifests/dup.pp

index f734e5d0de58bf954ae4bd37cec9642d20a03917..ca996b8389279559f4fb8a4abe24e8a6ecdb3178 100644 (file)
@@ -90,6 +90,7 @@ define backupninja::duplicity( $order  = 90,
 
   case $desthost { false: { err("need to define a destination host for remote backups!") } }
   case $destdir { false: { err("need to define a destination directory for remote backups!") } }
+  case $password { false: { err("a password is necessary either to unlock the GPG key, or for symmetric encryption!") } }
   
   # guarantees there's a configured backup space for this backup
   backupninja::server::sandbox { "${user}-${name}":