]> gitweb.fluxo.info Git - puppet-sshd.git/commitdiff
factored out the package to some subclasses as openbsd doesn't need such a package
authormh <mh@d66ca3ae-40d7-4aa7-90d4-87d79ca94279>
Mon, 29 Sep 2008 22:45:39 +0000 (22:45 +0000)
committermh <mh@d66ca3ae-40d7-4aa7-90d4-87d79ca94279>
Mon, 29 Sep 2008 22:45:39 +0000 (22:45 +0000)
git-svn-id: https://svn/ipuppet/trunk/modules/sshd@2265 d66ca3ae-40d7-4aa7-90d4-87d79ca94279

manifests/client.pp

index f0b05c56a6ac049d9d6a0f7c27179c9e9bfa0d5c..0ad85cfe7e8254cb8ee6d9348e6dc5ae40d62331 100644 (file)
@@ -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',