]> gitweb.fluxo.info Git - puppet-sshd.git/commitdiff
fixed language problem
authormh <mh@d66ca3ae-40d7-4aa7-90d4-87d79ca94279>
Sat, 2 Feb 2008 00:42:12 +0000 (00:42 +0000)
committermh <mh@d66ca3ae-40d7-4aa7-90d4-87d79ca94279>
Sat, 2 Feb 2008 00:42:12 +0000 (00:42 +0000)
git-svn-id: https://svn/ipuppet/trunk/modules/sshd@736 d66ca3ae-40d7-4aa7-90d4-87d79ca94279

manifests/init.pp

index 75029b8e2f9ffc15c8e547552aa9aa1e073ec855..e5b5aaec2f43a12373a221a8eddf1ac13e54e739 100644 (file)
@@ -15,19 +15,16 @@ class sshd {
                }
                default: {
                        service{'sshd':
+                name => $operatingsystem ? {
+                    debian => 'ssh',
+                    ubuntu => 'ssh',
+                    default => 'sshd',
+                },
                 enable => true,
                 ensure => running,
                                require => Package[openssh],
             }
             
-            case $operatingsystem {
-                debian,ubuntu: {
-                    service{sshd:
-                        name => 'ssh',
-                    }
-                }
-            }
-                       
                        package{openssh:
                 name => $operatingsystem ? {
                     debian: => 'openssh-server',