diff options
author | Micah Anderson <micah@riseup.net> | 2008-07-08 20:56:14 +0000 |
---|---|---|
committer | Micah Anderson <micah@riseup.net> | 2008-07-08 20:56:14 +0000 |
commit | ef4832d9413f518e81aa13903de6f705ad1e5557 (patch) | |
tree | 782558a720dce853963ee68ca235cb19d55e6f8b | |
parent | 7aee1d35167f6937371ab7cf3eb6d0b6c1a9947a (diff) | |
download | puppet-backupninja-ef4832d9413f518e81aa13903de6f705ad1e5557.tar.gz puppet-backupninja-ef4832d9413f518e81aa13903de6f705ad1e5557.tar.bz2 |
add some error checks to make sure necessary values are set
-rw-r--r-- | manifests/maildir.pp | 7 |
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'), |