diff options
author | Jerome Charaoui <jcharaoui@cmaisonneuve.qc.ca> | 2015-03-27 12:51:24 -0400 |
---|---|---|
committer | Jerome Charaoui <jcharaoui@cmaisonneuve.qc.ca> | 2015-04-17 17:11:20 -0400 |
commit | 32c44017f80fe617935d35cd4207599baf9ab7d8 (patch) | |
tree | e465ce4437b1669e90b066c88becbcce2b53aa5f /manifests/duplicity.pp | |
parent | 058ebe28086cd53f6fe86b794d6b658c95124ed7 (diff) | |
download | puppet-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.pp | 4 |
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 |