diff options
author | mh <mh@immerda.ch> | 2009-02-21 16:24:23 +0000 |
---|---|---|
committer | Micah Anderson <micah@riseup.net> | 2009-12-07 16:03:42 -0500 |
commit | d92fa7579311b85bf6d02724089b97e5d3a4dcd5 (patch) | |
tree | e9d5608d55c65003a01f80ac737a80671db3b086 /manifests/init.pp | |
parent | 6bf0a1bbc75d7b352b01c58911176411a5de8f41 (diff) | |
download | puppet-sshd-d92fa7579311b85bf6d02724089b97e5d3a4dcd5.tar.gz puppet-sshd-d92fa7579311b85bf6d02724089b97e5d3a4dcd5.tar.bz2 |
changed target behaviour
Diffstat (limited to 'manifests/init.pp')
-rw-r--r-- | manifests/init.pp | 11 |
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, + } + } + } } |