aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2009-08-26 22:30:59 -0300
committerSilvio Rhatto <rhatto@riseup.net>2009-08-26 22:30:59 -0300
commitc8c169a0a4ab3ecbbfc7016bf0b98bd3f8eac221 (patch)
tree8fa76a6911ecfd6366399fcc6cefe156d30f9071 /manifests
parent3c0208869854d71fde284e3c2d6515a6a3d037df (diff)
downloadpuppet-backup-c8c169a0a4ab3ecbbfc7016bf0b98bd3f8eac221.tar.gz
puppet-backup-c8c169a0a4ab3ecbbfc7016bf0b98bd3f8eac221.tar.bz2
Adding backupkeytype parameter at backup::rdiff
Diffstat (limited to 'manifests')
-rw-r--r--manifests/init.pp27
1 files changed, 14 insertions, 13 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 30a28ad..50cb9f2 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -39,22 +39,23 @@ class backup {
}
# default backupninja::rdiff configuration
- define rdiff($port = '22', $ensure = present, $installkey = false) {
+ define rdiff($port = '22', $ensure = present, $installkey = true) {
backupninja::rdiff { "rdiff-$title.$domain":
- ensure => $ensure,
- options => "--remote-schema 'ssh -p $port -C %s rdiff-backup --server'",
+ ensure => $ensure,
+ options => "--remote-schema 'ssh -p $port -C %s rdiff-backup --server'",
# [source]
- keep => "10",
- include => $backup_include_encrypted,
- exclude => $backup_exclude_encrypted,
+ keep => "10",
+ include => $backup_include_encrypted,
+ exclude => $backup_exclude_encrypted,
# [dest]
- type => "remote",
- host => "$title.$domain",
- home => "/var/backups/remote/$fqdn",
- directory => "/var/backups/remote/$fqdn/rdiff",
- user => "$hostname",
- sshoptions => "-p $port",
- installkey => $installkey,
+ type => "remote",
+ host => "$title.$domain",
+ home => "/var/backups/remote/$fqdn",
+ directory => "/var/backups/remote/$fqdn/rdiff",
+ user => "$hostname",
+ sshoptions => "-p $port",
+ installkey => $installkey,
+ backupkeytype => "dsa",
}
}