From a7c710bda474a08a8902978069bcc3227ba5f223 Mon Sep 17 00:00:00 2001 From: Micah Anderson Date: Thu, 27 Aug 2009 15:43:52 -0400 Subject: * 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 --- manifests/client.pp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'manifests/client.pp') 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, + } + } +} + -- cgit v1.2.3