make key removal a bit easier
This commit is contained in:
parent
0f281c8d4d
commit
edcd0859b1
1 changed files with 5 additions and 1 deletions
|
@ -2,12 +2,16 @@
|
|||
define sshd::ssh_authorized_key(
|
||||
$ensure = 'present',
|
||||
$type = 'ssh-dss',
|
||||
$key,
|
||||
$key = 'absent',
|
||||
$user = 'root',
|
||||
$target = undef,
|
||||
$options = 'absent'
|
||||
){
|
||||
|
||||
if ($ensure=='present') and ($key=='absent') {
|
||||
fail("You have to set \$key for Sshd::Ssh_authorized_key[${name}]!")
|
||||
}
|
||||
|
||||
$real_user = $user ? {
|
||||
false => $name,
|
||||
'' => $name,
|
||||
|
|
Loading…
Reference in a new issue