]> gitweb.fluxo.info Git - puppet-sshd.git/commitdiff
changed target behaviour
authormh <mh@immerda.ch>
Sat, 21 Feb 2009 16:24:23 +0000 (16:24 +0000)
committerMicah Anderson <micah@riseup.net>
Mon, 7 Dec 2009 21:03:42 +0000 (16:03 -0500)
manifests/init.pp

index 932cd568ba8c7f54fcb56230ef866df8a3a86ba4..d050050b5429d4975d26b946dbf96757ca992af1 100644 (file)
@@ -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,
+            }
+        }
+    }
 }