aboutsummaryrefslogtreecommitdiff
path: root/manifests/init.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/init.pp')
-rw-r--r--manifests/init.pp11
1 files changed, 9 insertions, 2 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 932cd56..d050050 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -287,14 +287,13 @@ define sshd::ssh_authorized_key(
$type = 'ssh-dss',
$key,
$user = 'root',
- $target = undef,
+ $target = 'absent',
$options = 'absent'
){
ssh_authorized_key{$name:
type => $type,
key => $key,
user => $user,
- target => $target,
}
case $options {
@@ -305,4 +304,12 @@ define sshd::ssh_authorized_key(
}
}
}
+ case $target {
+ 'absent': { info("not setting any target for ssh_authorized_key: $name") }
+ default: {
+ Ssh_authorized_key[$name]{
+ target => $target,
+ }
+ }
+ }
}