aboutsummaryrefslogtreecommitdiff
path: root/manifests/duplicity.pp
diff options
context:
space:
mode:
authorJerome Charaoui <jcharaoui@cmaisonneuve.qc.ca>2015-03-27 12:51:24 -0400
committerJerome Charaoui <jcharaoui@cmaisonneuve.qc.ca>2015-04-17 17:11:20 -0400
commit32c44017f80fe617935d35cd4207599baf9ab7d8 (patch)
treee465ce4437b1669e90b066c88becbcce2b53aa5f /manifests/duplicity.pp
parent058ebe28086cd53f6fe86b794d6b658c95124ed7 (diff)
downloadpuppet-backupninja-32c44017f80fe617935d35cd4207599baf9ab7d8.tar.gz
puppet-backupninja-32c44017f80fe617935d35cd4207599baf9ab7d8.tar.bz2
move package declarations in base resources and wrap with ensure_resource
Diffstat (limited to 'manifests/duplicity.pp')
-rw-r--r--manifests/duplicity.pp4
1 files changed, 4 insertions, 0 deletions
diff --git a/manifests/duplicity.pp b/manifests/duplicity.pp
index 99b64f8..8313eb9 100644
--- a/manifests/duplicity.pp
+++ b/manifests/duplicity.pp
@@ -39,6 +39,7 @@
# testing debian repositories by the time of this writing.
define backupninja::duplicity( $order = 90,
$ensure = present,
+ $ensure_duplicity_version = 'installed',
# options to the config file
$options = false,
$nicelevel = false,
@@ -96,6 +97,9 @@ define backupninja::duplicity( $order = 90,
$createkey = false,
$installkey = true ) {
+ # install client dependencies
+ ensure_resource('package', 'duplicity', {'ensure' => $ensure_duplicity_version})
+
# the client with configs for this machine
include backupninja::client::duplicity