diff options
| author | mh <mh@d66ca3ae-40d7-4aa7-90d4-87d79ca94279> | 2008-09-29 22:45:39 +0000 | 
|---|---|---|
| committer | mh <mh@d66ca3ae-40d7-4aa7-90d4-87d79ca94279> | 2008-09-29 22:45:39 +0000 | 
| commit | 1afa887a2e99bc97ebae388d74185ec4e11a38ed (patch) | |
| tree | 9addc23cb64d3620009586905f233cc94f096a1b /manifests | |
| parent | 1bda0022c19b49a3079105e0c8322d32a1280812 (diff) | |
| download | puppet-sshd-1afa887a2e99bc97ebae388d74185ec4e11a38ed.tar.gz puppet-sshd-1afa887a2e99bc97ebae388d74185ec4e11a38ed.tar.bz2 | |
factored out the package to some subclasses as openbsd doesn't need such a package
git-svn-id: https://svn/ipuppet/trunk/modules/sshd@2265 d66ca3ae-40d7-4aa7-90d4-87d79ca94279
Diffstat (limited to 'manifests')
| -rw-r--r-- | manifests/client.pp | 17 | 
1 files changed, 12 insertions, 5 deletions
| diff --git a/manifests/client.pp b/manifests/client.pp index f0b05c5..0ad85cf 100644 --- a/manifests/client.pp +++ b/manifests/client.pp @@ -3,15 +3,16 @@  class sshd::client {      case $operatingsystem {          debian: { include sshd::client::debian } -        default: { include sshd::client::base } +        default: {  +            case $kernel { +                linux: { include sshd::client::linux } +                default:  { include sshd::client::base } +            } +        }      }  }  class sshd::client::base { -    package {'openssh-clients': -        ensure => installed, -    } -      # this is needed because the gid might have changed      file { '/etc/ssh/ssh_known_hosts':              mode => 0644, owner => root, group => 0; @@ -21,6 +22,12 @@ class sshd::client::base {      Sshkey <<||>>  } +class sshd::client::linux inherits sshd::client::base { +    package {'openssh-clients': +        ensure => installed, +    } +} +  class sshd::client::debian inherits sshd::client::base {      Package['openssh-clients']{          name => 'openssh-client', | 
