Added support for deploying BackupPC ssh keys.

This commit is contained in:
Timo Mkinen 2009-09-14 08:14:06 +03:00
parent 8a2939448f
commit e2cba471db

View file

@ -30,6 +30,16 @@ define backuppc::manualclient($ensure = "present", $operatingsystem = "default")
notify => Exec["generate-backuppc-hosts"], notify => Exec["generate-backuppc-hosts"],
} }
if $backuppc_sshkey {
ssh_authorized_key { "backuppc":
ensure => present,
key => "${backuppc_sshkey}",
type => "ssh-rsa",
user => root,
tag => "backuppc",
}
}
} }
# Install host into BackupPC server as client. # Install host into BackupPC server as client.