aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
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",
}
}