}
# default backupninja::rdiff configuration
- define rdiff($port = '22', $ensure = present, $installkey = true) {
+ define rdiff($port = '22', $ensure = present) {
backupninja::rdiff { "rdiff-$title.$domain":
ensure => $ensure,
options => "--remote-schema 'ssh -p $port -C %s rdiff-backup --server'",
subfolder => "rdiff",
user => "$hostname",
sshoptions => "-p $port",
- installkey => $installkey,
+ installkey => false,
backupkeytype => "rsa",
- backupkeystore => "puppet:///ssh",
+ backupkeystore => "puppet:///pubkeys",
+ }
+
+ if !defined(Ssh_local_key['backup']) {
+ ssh_local_key { 'backup':
+ owner => root,
+ group => root,
+ home => /root,
+ }
}
}
define rsync($port = '22',
$ensure = present,
- $installkey = true,
$bandwidthlimit = false,
$use_domain = $::domain,
$use_fqdn = $::fqdn) {
backupninja::rsync { "rsync-$title.$use_domain":
# [general]
ensure => $ensure,
- installkey => $installkey,
+ installkey => false,
home => "$backupdir/remote/$use_fqdn",
backupdir => "$backupdir/remote/$use_fqdn/rsync",
backupkeytype => "rsa",
id_file => "/root/.ssh/id_rsa",
- backupkeystore => "puppet:///ssh",
+ backupkeystore => "puppet:///pubkeys",
keepdaily => '4',
keepweekly => '2',
keepmonthly => '2',
compress => '1',
testconnect => 'yes',
}
+
+ if !defined(Ssh_local_key['backup']) {
+ ssh_local_key { 'backup':
+ owner => root,
+ group => root,
+ home => /root,
+ }
+ }
}
# local backups using duplicity