aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2009-08-27 17:19:20 -0400
committerMicah Anderson <micah@riseup.net>2009-08-27 17:19:20 -0400
commit4c1bf41b5a0b7969043dd480f903d403d16c6994 (patch)
tree8c93c8cc22e09b87c80e8b0fc3b09754be1b9ff9
parente8b238bf014cefd1f4077b9d96113cf0463ab3b4 (diff)
downloadpuppet-backupninja-4c1bf41b5a0b7969043dd480f903d403d16c6994.tar.gz
puppet-backupninja-4c1bf41b5a0b7969043dd480f903d403d16c6994.tar.bz2
the $password variable also must be set, so spit an error if it is not defined
-rw-r--r--manifests/dup.pp1
1 files changed, 1 insertions, 0 deletions
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}":