aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/server.pp8
1 files changed, 6 insertions, 2 deletions
diff --git a/manifests/server.pp b/manifests/server.pp
index efc30ab..54a283a 100644
--- a/manifests/server.pp
+++ b/manifests/server.pp
@@ -43,8 +43,12 @@ class backupninja::server {
File <<| tag == "backupninja-$real_backupserver_tag" |>>
Ssh_authorized_key <<| tag == "backupninja-$real_backupserver_tag" |>>
- package { "rsync": ensure => installed }
- include backupninja::rdiff-installed
+ if !defined(Package["rsync"]) {
+ if $rsync_ensure_version == '' { $rsync_ensure_version = 'installed' }
+ package { 'rsync':
+ ensure => $rsync_ensure_version,
+ }
+ }
# this define allows nodes to declare a remote backup sandbox, that have to
# get created on the server