aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2009-08-29 13:21:31 -0300
committerSilvio Rhatto <rhatto@riseup.net>2009-08-29 13:21:31 -0300
commit1187241365f98231643254ac6cfce18f91f97f7f (patch)
tree84f3cd79a02fdb327d88abc86218cb303b042b3d /manifests
parent798a3865425e037db14f935d95a04c191baae521 (diff)
downloadpuppet-backup-1187241365f98231643254ac6cfce18f91f97f7f.tar.gz
puppet-backup-1187241365f98231643254ac6cfce18f91f97f7f.tar.bz2
Adding backupkeystore 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 f87308e..adb259a 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -44,21 +44,22 @@ class backup {
# default backupninja::rdiff configuration
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,
- backupkeytype => "dsa",
+ 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",
+ backupkeystore => "puppet://$server/files/keys",
}
}