summaryrefslogtreecommitdiff
path: root/manifests/rsync.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/rsync.pp
parent058ebe28086cd53f6fe86b794d6b658c95124ed7 (diff)
move package declarations in base resources and wrap with ensure_resource
Diffstat (limited to 'manifests/rsync.pp')
-rw-r--r--manifests/rsync.pp6
1 files changed, 4 insertions, 2 deletions
diff --git a/manifests/rsync.pp b/manifests/rsync.pp
index 1c82889..7398265 100644
--- a/manifests/rsync.pp
+++ b/manifests/rsync.pp
@@ -2,7 +2,8 @@
# Based on backupninja::rdiff
define backupninja::rsync(
- $order = 90, $ensure = present, $user = false, $home = false, $host = false,
+ $order = 90, $ensure = present, $ensure_rsync_version = 'installed',
+ $user = false, $home = false, $host = false,
$ssh_dir_manage = true, $ssh_dir = false, $authorized_keys_file = false,
$installuser = true, $installkey = true, $key = false, $backuptag = false,
$home = false, $backupkeytype = "rsa", $backupkeystore = false, $extras = false,
@@ -29,7 +30,8 @@ define backupninja::rsync(
$rm = false, $cp = false, $touch = false, $mv = false, $fsck = false)
{
- include backupninja::client::rsync
+ # install client dependencies
+ ensure_resource('package', 'rsync', {'ensure' => $ensure_rsync_version})
# Right now just local origin with remote destination is supported.
$from = 'local'