Commit ef4832d9 authored by Micah Anderson's avatar Micah Anderson

add some error checks to make sure necessary values are set

parent 7aee1d35
......@@ -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'),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment