# default backupninja::rdiff configuration define backup::rdiff( $port = '22', $ensure = present ) { backupninja::rdiff { "rdiff-$title.$domain": ensure => $ensure, options => "--remote-schema 'ssh -p $port -C %s rdiff-backup --server'", # [source] keep => "10", include => $backup::params::include_encrypted, exclude => $backup::params::exclude_encrypted, # [dest] type => "remote", host => "$title.$domain", home => "${backup::params::backupdir}/remote/$fqdn", subfolder => "rdiff", user => "$hostname", sshoptions => "-p $port", backupkeytype => "rsa", backupkeystore => "puppet:///pubkeys", sandbox => false, } # Currently we're not managing ssh keys this way #if !defined(Ssh_local_key["$hostname"]) { # ssh_local_key { "$hostname": # owner => root, # group => root, # home => '/root', # } #} }