From 4cd8bd12a06d6551a02c6d0aa28dae2b2f16acc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20M=E4kinen?= Date: Mon, 14 Sep 2009 22:45:26 +0300 Subject: [PATCH] Removed ssh keys from backuppc::manualclient to fix parse errors. --- backuppc/manifests/init.pp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/backuppc/manifests/init.pp b/backuppc/manifests/init.pp index 183d38b..bc33502 100644 --- a/backuppc/manifests/init.pp +++ b/backuppc/manifests/init.pp @@ -30,17 +30,6 @@ 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, - target => "/root/.ssh/authorized_keys", - tag => "backuppc", - } - } - } # Install host into BackupPC server as client. @@ -52,6 +41,17 @@ class backuppc::client { operatingsystem => "${operatingsystem}", } + if $backuppc_sshkey { + ssh_authorized_key { "backuppc": + ensure => present, + key => "${backuppc_sshkey}", + type => "ssh-rsa", + user => root, + target => "/root/.ssh/authorized_keys", + tag => "backuppc", + } + } + } # Install BackupPC server and add defined clients.