aboutsummaryrefslogtreecommitdiff
path: root/manifests/client.pp
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2009-08-27 15:43:52 -0400
committerMicah Anderson <micah@riseup.net>2009-08-27 15:43:52 -0400
commita7c710bda474a08a8902978069bcc3227ba5f223 (patch)
treee17b63ca650b69aa0d3f174330f44203df6446cc /manifests/client.pp
parentdae31bd0aa6cb47122b080acaee584e7df354da3 (diff)
downloadpuppet-backupninja-a7c710bda474a08a8902978069bcc3227ba5f223.tar.gz
puppet-backupninja-a7c710bda474a08a8902978069bcc3227ba5f223.tar.bz2
* add duplicity package management class to the client class
* update the README to be more clear about how this works, provide more examples and included details about the addition of the backupninja::client::duplicity class
Diffstat (limited to 'manifests/client.pp')
-rw-r--r--manifests/client.pp11
1 files changed, 11 insertions, 0 deletions
diff --git a/manifests/client.pp b/manifests/client.pp
index a3d2242..ef449f5 100644
--- a/manifests/client.pp
+++ b/manifests/client.pp
@@ -105,3 +105,14 @@ class backupninja::client::rdiff_backup inherits backupninja::client {
}
}
}
+
+class backupninja::client::duplicity inherits backupninja::client {
+
+ if !defined(Package["duplicity"]) {
+ if $duplicity_ensure_version == '' { $duplicity_ensure_version = 'installed' }
+ package { 'duplicity':
+ ensure => $duplicity_ensure_version,
+ }
+ }
+}
+