From e2cba471db1b5eaecb3ecec47ba59eebf91b9892 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20M=E4kinen?= Date: Mon, 14 Sep 2009 08:14:06 +0300 Subject: [PATCH] Added support for deploying BackupPC ssh keys. --- backuppc/manifests/init.pp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/backuppc/manifests/init.pp b/backuppc/manifests/init.pp index 5e784b3..07947c4 100644 --- a/backuppc/manifests/init.pp +++ b/backuppc/manifests/init.pp @@ -30,6 +30,16 @@ define backuppc::manualclient($ensure = "present", $operatingsystem = "default") 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.