Removed ssh keys from backuppc::manualclient to fix parse errors.
This commit is contained in:
parent
a1cec778f7
commit
4cd8bd12a0
1 changed files with 11 additions and 11 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue