Added support for deploying BackupPC ssh keys.
This commit is contained in:
parent
8a2939448f
commit
e2cba471db
1 changed files with 10 additions and 0 deletions
|
@ -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.
|
||||||
|
|
Loading…
Add table
Reference in a new issue