Commit cbcacb7d authored by Matt Taggart's avatar Matt Taggart

create subclasses for maildir and rdiff-backup. If you are using these...

create subclasses for maildir and rdiff-backup. If you are using these features of backupninja, you'll want to switch to doing "include backupninja::client::maildir" for the machines that need it and this will pull in backupninja::client, so you don't need to include that anymore if you were explicitly doing so for those machines (although it shouldn't hurt). Right now what using these new subclasses will get you is dependencies on needed packages, but in the future there might be more.
parent 04f10d33
......@@ -86,4 +86,28 @@ class backupninja::client {
}
}
class backupninja::client::maildir inherits backupninja::client {
case $rsync_ensure_version {
'': { $rsync_ensure_version = "present" }
}
if !defined(Package["rsync"]) {
if $rsync_ensure_version == '' { $rsync_ensure_version = 'installed' }
package { 'rsync':
ensure => $rsync_ensure_version,
}
}
}
class backupninja::client::rdiff-backup inherits backupninja::client {
case $rdiff-backup_ensure_version {
'': { $rdiff-backup_ensure_version = "present" }
}
if !defined(Package["rdiff-backup"]) {
if $rdiff-backup_ensure_version == '' { $rdiff-backup_ensure_version = 'installed' }
package { 'rdiff-backup':
ensure => $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