Commit b380f1de authored by anarcat's avatar anarcat

use the client classes for dependencies instead of directly defining packages

parent 222ebf64
......@@ -22,7 +22,7 @@ define backupninja::maildir(
$remove = false, $multiconnection = yes, $keepdaily='4', $keepweekly='2',
$keepmonthly='2')
{
include backupninja::client::defaults
include backupninja::client::maildir
case $srcdir { false: { err("need to define a source directory to backup!") } }
case $destdir { false: { err("need to define a destination directory to backup!") } }
......@@ -38,5 +38,4 @@ define backupninja::maildir(
mode => 0600,
require => File["${backupninja::client::defaults::configdir}"]
}
package { rsync: ensure => installed }
}
......@@ -27,7 +27,7 @@ define backupninja::rdiff(
$ssh_dir = false, $authorized_keys_file = false, $installuser = true, $installkey = true, $key = false,
$backuptag = false, $home = false, $backupkeytype = "rsa", $backupkeystore = false, $extras = false)
{
include backupninja::client::defaults
include backupninja::client::rdiff-backup
case $type {
'remote': {
......@@ -68,14 +68,5 @@ define backupninja::rdiff(
mode => 0600,
require => File["${backupninja::client::defaults::configdir}"]
}
include backupninja::rdiff-installed
}
class backupninja::rdiff-installed {
case $lsbdistcodename {
"etch": { $version = "1.2.5-1~bpo40+1" }
default: { $version = "installed" }
}
package { "rdiff-backup": ensure => $version }
}
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