From: Micah Anderson Date: Thu, 27 Aug 2009 21:19:20 +0000 (-0400) Subject: the $password variable also must be set, so spit an error if it is not defined X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=4c1bf41b5a0b7969043dd480f903d403d16c6994;p=puppet-backupninja.git the $password variable also must be set, so spit an error if it is not defined --- diff --git a/manifests/dup.pp b/manifests/dup.pp index f734e5d..ca996b8 100644 --- a/manifests/dup.pp +++ b/manifests/dup.pp @@ -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}":