aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorMatt Taggart <taggart@lackof.org>2009-07-15 13:05:21 -0700
committerMatt Taggart <taggart@lackof.org>2009-07-15 13:05:21 -0700
commitcbcacb7da154f1be8105ef69466744889b2b6c45 (patch)
tree4d9a3663125986433140d486ec23e40bdc826568 /manifests
parent04f10d333b4978a2ce71782c3d94fc2a08f33573 (diff)
downloadpuppet-backupninja-cbcacb7da154f1be8105ef69466744889b2b6c45.tar.gz
puppet-backupninja-cbcacb7da154f1be8105ef69466744889b2b6c45.tar.bz2
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.
Diffstat (limited to 'manifests')
-rw-r--r--manifests/client.pp24
1 files changed, 24 insertions, 0 deletions
diff --git a/manifests/client.pp b/manifests/client.pp
index 66dbd1c..999108c 100644
--- a/manifests/client.pp
+++ b/manifests/client.pp
@@ -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,
+ }
+ }
+}