aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2009-08-27 17:13:11 -0400
committerMicah Anderson <micah@riseup.net>2009-08-27 17:13:11 -0400
commite8b238bf014cefd1f4077b9d96113cf0463ab3b4 (patch)
treecdd2c8a5ff9557b765b8ef94c68626d374c50fee
parentaaa46561012ac8ab6070f8cd53a111346c586f5f (diff)
downloadpuppet-backupninja-e8b238bf014cefd1f4077b9d96113cf0463ab3b4.tar.gz
puppet-backupninja-e8b238bf014cefd1f4077b9d96113cf0463ab3b4.tar.bz2
set a requirement that the rdiff-backup directory variable must be set
-rw-r--r--manifests/rdiff.pp3
1 files changed, 3 insertions, 0 deletions
diff --git a/manifests/rdiff.pp b/manifests/rdiff.pp
index e3964d0..1207cb1 100644
--- a/manifests/rdiff.pp
+++ b/manifests/rdiff.pp
@@ -28,6 +28,9 @@ define backupninja::rdiff(
$backuptag = false)
{
include backupninja::client
+
+ case $directory { false: { err("need to define a directory for where the backups should go!") } }
+
case $type {
'remote': {
case $host { false: { err("need to define a host for remote backups!") } }