summaryrefslogtreecommitdiff
path: root/manifests/rdiff.pp
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2009-08-28 17:17:25 -0300
committerSilvio Rhatto <rhatto@riseup.net>2009-08-28 17:17:25 -0300
commitb432d94fa72162aa9635217b703ad100b9d39fa2 (patch)
tree238a150b9968c52c3b17aab62cbc5e615b80f94e /manifests/rdiff.pp
parentf96267fe354a9df417afdc09899c58edf3e67d24 (diff)
New backupninja::client::defaults to avoid duplicates.
Adding part of client.pp code into new class backupninja::client::defaults in an attempt to avoid duplicate definitions inside backupninja::client::key.
Diffstat (limited to 'manifests/rdiff.pp')
-rw-r--r--manifests/rdiff.pp6
1 files changed, 3 insertions, 3 deletions
diff --git a/manifests/rdiff.pp b/manifests/rdiff.pp
index 904c68f..9f81d8f 100644
--- a/manifests/rdiff.pp
+++ b/manifests/rdiff.pp
@@ -27,7 +27,7 @@ define backupninja::rdiff(
$ssh_dir = false, $authorized_keys_file = false, $installuser = true, $installkey = true,
$backuptag = false, $home = false, $backupkeytype = "rsa")
{
- include backupninja::client
+ include backupninja::client::defaults
case $directory { false: { err("need to define a directory for where the backups should go!") } }
@@ -55,13 +55,13 @@ define backupninja::rdiff(
}
}
}
- file { "${backupninja::client::configdir}/${order}_${name}.rdiff":
+ file { "${backupninja::client::defaults::configdir}/${order}_${name}.rdiff":
ensure => $ensure,
content => template('backupninja/rdiff.conf.erb'),
owner => root,
group => root,
mode => 0600,
- require => File["${backupninja::client::configdir}"]
+ require => File["${backupninja::client::defaults::configdir}"]
}
}