aboutsummaryrefslogtreecommitdiff
path: root/manifests/ssh_authorized_key.pp
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2009-12-18 19:06:43 +0100
committermh <mh@immerda.ch>2009-12-18 19:06:43 +0100
commitedcd0859b16583e0a328bd03b95a66e1125d2bc2 (patch)
tree30b884e1645ba7bae2049707b831c1418fb8f47f /manifests/ssh_authorized_key.pp
parent0f281c8d4d5250a5fb6159b603ed97f29ce6a010 (diff)
downloadpuppet-sshd-edcd0859b16583e0a328bd03b95a66e1125d2bc2.tar.gz
puppet-sshd-edcd0859b16583e0a328bd03b95a66e1125d2bc2.tar.bz2
make key removal a bit easier
Diffstat (limited to 'manifests/ssh_authorized_key.pp')
-rw-r--r--manifests/ssh_authorized_key.pp6
1 files changed, 5 insertions, 1 deletions
diff --git a/manifests/ssh_authorized_key.pp b/manifests/ssh_authorized_key.pp
index 9706018..bf188d8 100644
--- a/manifests/ssh_authorized_key.pp
+++ b/manifests/ssh_authorized_key.pp
@@ -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,