make key removal a bit easier

This commit is contained in:
mh 2009-12-18 19:06:43 +01:00
parent 0f281c8d4d
commit edcd0859b1

View file

@ -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,