aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
Diffstat (limited to 'manifests')
-rw-r--r--manifests/maildir.pp7
1 files changed, 7 insertions, 0 deletions
diff --git a/manifests/maildir.pp b/manifests/maildir.pp
index c9da50c..87fc39d 100644
--- a/manifests/maildir.pp
+++ b/manifests/maildir.pp
@@ -28,6 +28,13 @@ define backupninja::maildir($order = 40,
$multiconnection = yes
) {
include backupninja::client
+
+ case $srcdir { false: { err("need to define a source directory to backup!") } }
+ case $destdir { false: { err("need to define a destination directory to backup!") } }
+ case $desthost { false: { err("need to define a destination host for backups!") } }
+ case $destuser { false: { err("need to define a destination user for backups!") } }
+ case $destid_file { false: { err("need to define a ssh key id file to use!") } }
+
file { "${backupninja::client::configdir}/${order}_${name}.maildir":
ensure => $ensure,
content => template('backupninja/maildir.conf.erb'),